Skip to content

Commit e20e0c0

Browse files
committed
Make the value comparator compatible with css4j 5.0
1 parent f2e57cd commit e20e0c0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ci/io/github/css4j/ci/ValueComparator.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
import io.sf.carte.doc.style.css.CSSValue;
2626
import io.sf.carte.doc.style.css.CSSValue.CssType;
2727
import io.sf.carte.doc.style.css.CSSValue.Type;
28+
import io.sf.carte.doc.style.css.CSSValueList;
2829
import io.sf.carte.doc.style.css.RGBAColor;
2930
import io.sf.carte.doc.style.css.nsac.LexicalUnit;
3031
import io.sf.carte.doc.style.css.om.BaseCSSStyleDeclaration;
3132
import io.sf.carte.doc.style.css.om.CSSOMBridge;
3233
import io.sf.carte.doc.style.css.parser.ParseHelper;
33-
import io.sf.carte.doc.style.css.property.LinkedCSSValueList;
3434
import io.sf.carte.doc.style.css.property.NumberValue;
3535
import io.sf.carte.doc.style.css.property.PropertyDatabase;
3636
import io.sf.carte.doc.style.css.property.StyleValue;
@@ -222,14 +222,14 @@ && similarAlphaValue(color.getAlpha(), otherColor.getAlpha())) {
222222
if (gradient.getGradientType() != gradientOther.getGradientType()) {
223223
return 2;
224224
}
225-
LinkedCSSValueList args = gradient.getArguments();
226-
LinkedCSSValueList argsOther = gradientOther.getArguments();
225+
CSSValueList<? extends CSSValue> args = gradient.getArguments();
226+
CSSValueList<? extends CSSValue> argsOther = gradientOther.getArguments();
227227
if (args.getLength() != argsOther.getLength()) {
228228
return 2;
229229
}
230230
for (int i = 0; i < args.getLength(); i++) {
231-
StyleValue arg = args.item(i);
232-
StyleValue argOther = argsOther.item(i);
231+
CSSValue arg = args.item(i);
232+
CSSValue argOther = argsOther.item(i);
233233
if (!arg.equals(argOther)) {
234234
int result = testDifferentValue(arg, argOther);
235235
if (result != 1) {

0 commit comments

Comments
 (0)