Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Implement CSSNumericValue.equals
https://bugs.webkit.org/show_bug.cgi?id=241378 Reviewed by Chris Dumez. This is an off-by-default experimental feature. * LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-subclasses/numeric-objects/equals.tentative-expected.txt: * Source/WebCore/bindings/js/JSCSSStyleValueCustom.cpp: (WebCore::toJSNewlyCreated): * Source/WebCore/css/typedom/CSSNumericValue.cpp: (WebCore::CSSNumericValue::equals): * Source/WebCore/css/typedom/CSSNumericValue.h: (): Deleted. * Source/WebCore/css/typedom/CSSStyleValue.h: (WebCore::isCSSNumericValue): (WebCore::isCSSMathValue): * Source/WebCore/css/typedom/CSSUnitValue.cpp: (WebCore::CSSUnitValue::equals const): * Source/WebCore/css/typedom/CSSUnitValue.h: * Source/WebCore/css/typedom/numeric/CSSMathInvert.cpp: (WebCore::CSSMathInvert::CSSMathInvert): (WebCore::CSSMathInvert::equals const): * Source/WebCore/css/typedom/numeric/CSSMathInvert.h: * Source/WebCore/css/typedom/numeric/CSSMathMax.h: * Source/WebCore/css/typedom/numeric/CSSMathMin.h: * Source/WebCore/css/typedom/numeric/CSSMathNegate.cpp: (WebCore::CSSMathNegate::CSSMathNegate): (WebCore::CSSMathNegate::equals const): * Source/WebCore/css/typedom/numeric/CSSMathNegate.h: * Source/WebCore/css/typedom/numeric/CSSMathProduct.h: * Source/WebCore/css/typedom/numeric/CSSMathSum.h: * Source/WebCore/css/typedom/numeric/CSSMathValue.h: (WebCore::CSSMathValue::CSSMathValue): (WebCore::CSSMathValue::equalsImpl const): Canonical link: https://commits.webkit.org/251721@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@295716 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
d5e81d9
commit a2fdaa5
Showing
16 changed files
with
74 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
|
||
FAIL Two CSSUnitValues with same value and unit are equal assert_true: expected true got false | ||
PASS Two CSSUnitValues with same value and unit are equal | ||
PASS Two CSSUnitValues with different values are not equal | ||
PASS Two CSSUnitValues with different units are not equal | ||
PASS Two CSSMathValues with different types are not equal | ||
PASS Two CSSMathValues with different number of values are not equal | ||
PASS Two CSSMathValues with different values are not equal | ||
FAIL Two CSSMathValues with same structure are equal assert_true: expected true got false | ||
FAIL Multiple CSSMathValues with same structure are equal assert_true: expected true got false | ||
PASS Two CSSMathValues with same structure are equal | ||
PASS Multiple CSSMathValues with same structure are equal | ||
PASS Multiple CSSMathValues with one different are not equal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters