Changeset 276554 in webkit
- Timestamp:
- Apr 24, 2021 12:36:27 PM (15 months ago)
- Location:
- trunk
- Files:
-
- 11 edited
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-transforms/animation/rotate-composition-expected.txt (modified) (3 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-transforms/parsing/rotate-parsing-valid-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-transforms/parsing/rotate-parsing-valid.html (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/css/CSSComputedStyleDeclaration.cpp (modified) (1 diff)
-
Source/WebCore/css/TransformFunctions.cpp (modified) (1 diff)
-
Source/WebCore/css/parser/CSSPropertyParser.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r276553 r276554 1 2021-04-24 Antoine Quint <graouts@webkit.org> 2 3 Improve parsing and computed style of the rotate CSS property 4 https://bugs.webkit.org/show_bug.cgi?id=225019 5 6 Reviewed by Dean Jackson. 7 8 Mark 2 WPT progressions and add some new parsing WPT tests for rotate. 9 10 * web-platform-tests/css/css-transforms/animation/rotate-composition-expected.txt: We don't support additive interpolation, 11 the FAIL result is most likely a test that passed without proper support for the feature which now fails due to lack of 12 support for this feature. 13 * web-platform-tests/css/css-transforms/parsing/rotate-parsing-valid-expected.txt: 14 * web-platform-tests/css/css-transforms/parsing/rotate-parsing-valid.html: 15 * web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt: 16 * web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt: 17 * web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt: 18 1 19 2021-04-24 Antoine Quint <graouts@webkit.org> 2 20 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-transforms/animation/rotate-composition-expected.txt
r276231 r276554 6 6 FAIL Compositing: property <rotate> underlying [100deg] from add [10deg] to add [30deg] at (1) should be [130deg] assert_equals: expected "130deg " but got "30deg " 7 7 FAIL Compositing: property <rotate> underlying [100deg] from add [10deg] to add [30deg] at (2) should be [150deg] assert_equals: expected "150deg " but got "50deg " 8 FAIL Compositing: property <rotate> underlying [1 0 0 200deg] from add [1 0 0 -100deg] to replace [1 0 0 40deg] at (-1) should be [1 0 0 160deg] assert_equals: expected " 1 0 0 160deg " but got "1 0 0- 240deg "9 FAIL Compositing: property <rotate> underlying [1 0 0 200deg] from add [1 0 0 -100deg] to replace [1 0 0 40deg] at (0) should be [1 0 0 100deg] assert_equals: expected " 1 0 0 100deg " but got "1 0 0- 100deg "10 FAIL Compositing: property <rotate> underlying [1 0 0 200deg] from add [1 0 0 -100deg] to replace [1 0 0 40deg] at (0.25) should be [1 0 0 85deg] assert_equals: expected " 1 0 0 85deg " but got "1 0 0- 65deg "11 FAIL Compositing: property <rotate> underlying [1 0 0 200deg] from add [1 0 0 -100deg] to replace [1 0 0 40deg] at (0.75) should be [1 0 0 55deg] assert_equals: expected " 1 0 0 55deg " but got "1 0 05deg "8 FAIL Compositing: property <rotate> underlying [1 0 0 200deg] from add [1 0 0 -100deg] to replace [1 0 0 40deg] at (-1) should be [1 0 0 160deg] assert_equals: expected "x 160deg " but got "x - 240deg " 9 FAIL Compositing: property <rotate> underlying [1 0 0 200deg] from add [1 0 0 -100deg] to replace [1 0 0 40deg] at (0) should be [1 0 0 100deg] assert_equals: expected "x 100deg " but got "x - 100deg " 10 FAIL Compositing: property <rotate> underlying [1 0 0 200deg] from add [1 0 0 -100deg] to replace [1 0 0 40deg] at (0.25) should be [1 0 0 85deg] assert_equals: expected "x 85deg " but got "x - 65deg " 11 FAIL Compositing: property <rotate> underlying [1 0 0 200deg] from add [1 0 0 -100deg] to replace [1 0 0 40deg] at (0.75) should be [1 0 0 55deg] assert_equals: expected "x 55deg " but got "x 5deg " 12 12 PASS Compositing: property <rotate> underlying [1 0 0 200deg] from add [1 0 0 -100deg] to replace [1 0 0 40deg] at (1) should be [1 0 0 40deg] 13 FAIL Compositing: property <rotate> underlying [1 0 0 200deg] from add [1 0 0 -100deg] to replace [1 0 0 40deg] at (2) should be [1 0 0 -20deg] assert_equals: expected " 1 0 0 - 20deg " but got "1 0 0180deg "14 FAIL Compositing: property <rotate> underlying [0 1 0 -40deg] from replace [0 1 0 50deg] to add [0 1 0 10deg] at (-1) should be [0 1 0 130deg] assert_equals: expected " 0 1 0 130deg " but got "0 1 090deg "13 FAIL Compositing: property <rotate> underlying [1 0 0 200deg] from add [1 0 0 -100deg] to replace [1 0 0 40deg] at (2) should be [1 0 0 -20deg] assert_equals: expected "x - 20deg " but got "x 180deg " 14 FAIL Compositing: property <rotate> underlying [0 1 0 -40deg] from replace [0 1 0 50deg] to add [0 1 0 10deg] at (-1) should be [0 1 0 130deg] assert_equals: expected "y 130deg " but got "y 90deg " 15 15 PASS Compositing: property <rotate> underlying [0 1 0 -40deg] from replace [0 1 0 50deg] to add [0 1 0 10deg] at (0) should be [0 1 0 50deg] 16 FAIL Compositing: property <rotate> underlying [0 1 0 -40deg] from replace [0 1 0 50deg] to add [0 1 0 10deg] at (0.25) should be [0 1 0 30deg] assert_equals: expected " 0 1 0 30deg " but got "0 1 040deg "17 FAIL Compositing: property <rotate> underlying [0 1 0 -40deg] from replace [0 1 0 50deg] to add [0 1 0 10deg] at (0.75) should be [0 1 0 -10deg] assert_equals: expected " 0 1 0 - 10deg " but got "0 1 020deg "18 FAIL Compositing: property <rotate> underlying [0 1 0 -40deg] from replace [0 1 0 50deg] to add [0 1 0 10deg] at (1) should be [0 1 0 -30deg] assert_equals: expected " 0 1 0 - 30deg " but got "0 1 010deg "19 FAIL Compositing: property <rotate> underlying [0 1 0 -40deg] from replace [0 1 0 50deg] to add [0 1 0 10deg] at (2) should be [0 1 0 -110deg] assert_equals: expected " 0 1 0 - 110deg " but got "0 1 0- 30deg "16 FAIL Compositing: property <rotate> underlying [0 1 0 -40deg] from replace [0 1 0 50deg] to add [0 1 0 10deg] at (0.25) should be [0 1 0 30deg] assert_equals: expected "y 30deg " but got "y 40deg " 17 FAIL Compositing: property <rotate> underlying [0 1 0 -40deg] from replace [0 1 0 50deg] to add [0 1 0 10deg] at (0.75) should be [0 1 0 -10deg] assert_equals: expected "y - 10deg " but got "y 20deg " 18 FAIL Compositing: property <rotate> underlying [0 1 0 -40deg] from replace [0 1 0 50deg] to add [0 1 0 10deg] at (1) should be [0 1 0 -30deg] assert_equals: expected "y - 30deg " but got "y 10deg " 19 FAIL Compositing: property <rotate> underlying [0 1 0 -40deg] from replace [0 1 0 50deg] to add [0 1 0 10deg] at (2) should be [0 1 0 -110deg] assert_equals: expected "y - 110deg " but got "y - 30deg " 20 20 FAIL Compositing: property <rotate> underlying [1 2 3 40deg] from add [2 4 6 10deg] to add [3 6 9 50deg] at (-1) should be [1 2 3 10deg] assert_equals: expected "1 2 3 10deg " but got "- 0.27 - 0.53 - 0.8 30deg " 21 21 FAIL Compositing: property <rotate> underlying [1 2 3 40deg] from add [2 4 6 10deg] to add [3 6 9 50deg] at (0) should be [1 2 3 50deg] assert_equals: expected "1 2 3 50deg " but got "0.27 0.53 0.8 10deg " … … 36 36 PASS Compositing: property <rotate> underlying [1 2 3 90deg] from add [2 4 6 270deg] to replace [0 1 0 100deg] at (1) should be [0 1 0 100deg] 37 37 FAIL Compositing: property <rotate> underlying [1 2 3 90deg] from add [2 4 6 270deg] to replace [0 1 0 100deg] at (2) should be [-3.3235e-17 -1 -9.97049e-17 160deg] assert_equals: expected "0 - 1 0 160deg " but got "- 0.22 - 0.73 - 0.65 120.66deg " 38 FAIL Compositing: property <rotate> underlying [1 0 0 90deg] from add [0 1 0 180deg] to replace [0 0 1 90deg] at (-1) should be [-6.12323e-17 -1 1.57009e-16 90deg] assert_equals: expected "0 - 1 0 90deg " but got " y90deg "39 FAIL Compositing: property <rotate> underlying [1 0 0 90deg] from add [0 1 0 180deg] to replace [0 0 1 90deg] at (0) should be [-4.32978e-17 -0.707107 -0.707107 180deg] assert_equals: expected "0 - 0.71 - 0.71 180deg " but got " 0 - 1 0180deg "38 FAIL Compositing: property <rotate> underlying [1 0 0 90deg] from add [0 1 0 180deg] to replace [0 0 1 90deg] at (-1) should be [-6.12323e-17 -1 1.57009e-16 90deg] assert_equals: expected "0 - 1 0 90deg " but got "0 0 1 90deg " 39 FAIL Compositing: property <rotate> underlying [1 0 0 90deg] from add [0 1 0 180deg] to replace [0 0 1 90deg] at (0) should be [-4.32978e-17 -0.707107 -0.707107 180deg] assert_equals: expected "0 - 0.71 - 0.71 180deg " but got "y 180deg " 40 40 FAIL Compositing: property <rotate> underlying [1 0 0 90deg] from add [0 1 0 180deg] to replace [0 0 1 90deg] at (0.25) should be [-1.48952e-16 -0.894427 -0.447214 131.81deg] assert_equals: expected "0 - 0.89 - 0.45 131.81deg " but got "0 0.96 0.28 148.6deg " 41 41 FAIL Compositing: property <rotate> underlying [1 0 0 90deg] from add [0 1 0 180deg] to replace [0 0 1 90deg] at (0.75) should be [-2.94392e-17 -0.707107 0.707107 70.5288deg] assert_equals: expected "0 - 0.71 0.71 70.53deg " but got "0 0.51 0.86 98.42deg " 42 PASS Compositing: property <rotate> underlying [1 0 0 90deg] from add [0 1 0 180deg] to replace [0 0 1 90deg] at (1) should be [90deg] 42 FAIL Compositing: property <rotate> underlying [1 0 0 90deg] from add [0 1 0 180deg] to replace [0 0 1 90deg] at (1) should be [90deg] assert_equals: expected "90deg " but got "z 90deg " 43 43 FAIL Compositing: property <rotate> underlying [1 0 0 90deg] from add [0 1 0 180deg] to replace [0 0 1 90deg] at (2) should be [-6.12323e-17 -1 -4.71028e-16 90deg] assert_equals: expected "0 - 1 0 90deg " but got "0 - 1 0 180deg " 44 44 PASS Compositing: property <rotate> underlying [none] from add [none] to replace [0 1 0 100deg] at (-1) should be [0 1 0 -100deg] … … 54 54 PASS Compositing: property <rotate> underlying [none] from add [2 4 6 270deg] to replace [none] at (1) should be [none] 55 55 FAIL Compositing: property <rotate> underlying [none] from add [2 4 6 270deg] to replace [none] at (2) should be [2 4 6 -270deg] assert_equals: expected "2 4 6 - 270deg " but got "0.27 0.53 0.8 - 270deg " 56 FAIL Compositing: property <rotate> underlying [1 2 3 90deg] from add [none] to replace [0 1 0 100deg] at (-1) should be [0.31 -0.22 0.92 131.66deg] assert_equals: expected "0.31 - 0.22 0.92 131.66deg " but got " 0 1 0- 100deg "56 FAIL Compositing: property <rotate> underlying [1 2 3 90deg] from add [none] to replace [0 1 0 100deg] at (-1) should be [0.31 -0.22 0.92 131.66deg] assert_equals: expected "0.31 - 0.22 0.92 131.66deg " but got "y - 100deg " 57 57 FAIL Compositing: property <rotate> underlying [1 2 3 90deg] from add [none] to replace [0 1 0 100deg] at (0) should be [1 2 3 90deg] assert_equals: expected "1 2 3 90deg " but got "none " 58 FAIL Compositing: property <rotate> underlying [1 2 3 90deg] from add [none] to replace [0 1 0 100deg] at (0.25) should be [0.21 0.73 0.64 86.72deg] assert_equals: expected "0.21 0.73 0.64 86.72deg " but got " 0 1 025deg "59 FAIL Compositing: property <rotate> underlying [1 2 3 90deg] from add [none] to replace [0 1 0 100deg] at (0.75) should be [0.07 0.97 0.21 92.05deg] assert_equals: expected "0.07 0.97 0.21 92.05deg " but got " 0 1 075deg "58 FAIL Compositing: property <rotate> underlying [1 2 3 90deg] from add [none] to replace [0 1 0 100deg] at (0.25) should be [0.21 0.73 0.64 86.72deg] assert_equals: expected "0.21 0.73 0.64 86.72deg " but got "y 25deg " 59 FAIL Compositing: property <rotate> underlying [1 2 3 90deg] from add [none] to replace [0 1 0 100deg] at (0.75) should be [0.07 0.97 0.21 92.05deg] assert_equals: expected "0.07 0.97 0.21 92.05deg " but got "y 75deg " 60 60 PASS Compositing: property <rotate> underlying [1 2 3 90deg] from add [none] to replace [0 1 0 100deg] at (1) should be [0 1 0 100deg] 61 FAIL Compositing: property <rotate> underlying [1 2 3 90deg] from add [none] to replace [0 1 0 100deg] at (2) should be [-0.2 0.79 -0.59 151.11deg] assert_equals: expected "- 0.2 0.79 - 0.59 151.11deg " but got " 0 1 0200deg "61 FAIL Compositing: property <rotate> underlying [1 2 3 90deg] from add [none] to replace [0 1 0 100deg] at (2) should be [-0.2 0.79 -0.59 151.11deg] assert_equals: expected "- 0.2 0.79 - 0.59 151.11deg " but got "y 200deg " 62 62 FAIL Compositing: property <rotate> underlying [1 2 3 90deg] from add [2 4 6 270deg] to replace [none] at (-1) should be [1 2 3 720deg] assert_equals: expected "1 2 3 720deg " but got "0.27 0.53 0.8 540deg " 63 63 FAIL Compositing: property <rotate> underlying [1 2 3 90deg] from add [2 4 6 270deg] to replace [none] at (0) should be [1 2 3 360deg] assert_equals: expected "1 2 3 360deg " but got "0.27 0.53 0.8 270deg " -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-transforms/parsing/rotate-parsing-valid-expected.txt
r267985 r276554 4 4 PASS e.style['rotate'] = "100 200 300 400grad" should set the property value 5 5 PASS e.style['rotate'] = "400grad 100 200 300" should set the property value 6 PASS e.style['rotate'] = "0 0 0 400grad" should set the property value 6 7 PASS e.style['rotate'] = "x 400grad" should set the property value 7 8 PASS e.style['rotate'] = "400grad x" should set the property value 9 PASS e.style['rotate'] = "0.5 0 0 400grad" should set the property value 8 10 PASS e.style['rotate'] = "1 0 0 400grad" should set the property value 9 11 PASS e.style['rotate'] = "y 400grad" should set the property value 10 12 PASS e.style['rotate'] = "400grad y" should set the property value 13 PASS e.style['rotate'] = "0 0.5 0 400grad" should set the property value 11 14 PASS e.style['rotate'] = "0 1 0 400grad" should set the property value 12 15 PASS e.style['rotate'] = "z 400grad" should set the property value 13 16 PASS e.style['rotate'] = "400grad z" should set the property value 17 PASS e.style['rotate'] = "0 0 0.5 400grad" should set the property value 14 18 PASS e.style['rotate'] = "0 0 1 400grad" should set the property value 15 19 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-transforms/parsing/rotate-parsing-valid.html
r267570 r276554 23 23 test_valid_value("rotate", "100 200 300 400grad"); 24 24 test_valid_value("rotate", "400grad 100 200 300", "100 200 300 400grad"); 25 test_valid_value("rotate", "0 0 0 400grad", "0 0 0 400grad"); 25 26 26 27 // If the axis is parallel with the x, y, or z axis, it must serialize as the appropriate keyword. 27 28 test_valid_value("rotate", "x 400grad"); 28 29 test_valid_value("rotate", "400grad x", "x 400grad"); 30 test_valid_value("rotate", "0.5 0 0 400grad", "x 400grad"); 29 31 test_valid_value("rotate", "1 0 0 400grad", "x 400grad"); 30 32 31 33 test_valid_value("rotate", "y 400grad"); 32 34 test_valid_value("rotate", "400grad y", "y 400grad"); 35 test_valid_value("rotate", "0 0.5 0 400grad", "y 400grad"); 33 36 test_valid_value("rotate", "0 1 0 400grad", "y 400grad"); 34 37 35 38 test_valid_value("rotate", "z 400grad"); 36 39 test_valid_value("rotate", "400grad z", "z 400grad"); 40 test_valid_value("rotate", "0 0 0.5 400grad", "z 400grad"); 37 41 test_valid_value("rotate", "0 0 1 400grad", "z 400grad"); 38 42 </script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt
r276231 r276554 173 173 PASS rotate (type: rotateList) has testAccumulation function 174 174 FAIL rotate without rotation axes assert_equals: The value should be -45deg at 0ms expected "-45deg" but got "-90deg" 175 FAIL rotate with underlying transform assert_equals: The value should be x 45deg at 0ms expected "x 45deg" but got " 1 0 090deg"175 FAIL rotate with underlying transform assert_equals: The value should be x 45deg at 0ms expected "x 45deg" but got "x 90deg" 176 176 PASS rotate with different rotation axes 177 177 PASS translate (type: translateList) has testAccumulation function -
trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt
r276231 r276554 168 168 PASS rotate (type: rotateList) has testAddition function 169 169 FAIL rotate without rotation axes assert_equals: The value should be -45deg at 0ms expected "-45deg" but got "-90deg" 170 FAIL rotate with underlying transform assert_equals: The value should be y 45deg at 0ms expected "y 45deg" but got " 0 1 090deg"170 FAIL rotate with underlying transform assert_equals: The value should be y 45deg at 0ms expected "y 45deg" but got "y 90deg" 171 171 PASS rotate with different rotation axes 172 172 PASS translate (type: translateList) has testAddition function -
trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt
r276551 r276554 211 211 PASS rotate (type: rotateList) has testInterpolation function 212 212 PASS rotate without rotation axes 213 FAIL rotate with rotation axes assert_equals: The value should be y 45deg at 500ms expected "y 45deg" but got "0 1 0 45deg" 214 FAIL rotate with rotation axes and range over 360 degrees assert_equals: The value should be y 180deg at 250ms expected "y 180deg" but got "0 1 0 180deg" 213 PASS rotate with rotation axes 214 PASS rotate with rotation axes and range over 360 degrees 215 215 PASS rotate with different rotation axes 216 216 PASS translate (type: translateList) has testInterpolation function -
trunk/Source/WebCore/ChangeLog
r276553 r276554 1 2021-04-24 Antoine Quint <graouts@webkit.org> 2 3 Improve parsing and computed style of the rotate CSS property 4 https://bugs.webkit.org/show_bug.cgi?id=225019 5 6 Reviewed by Dean Jackson. 7 8 There were a few issues with how we parsed the rotate CSS property and how we dealt with it 9 when resolving the computed style. 10 11 When parsing, we required individual vector coordinates to be 1 when others were 0 for a vector 12 to be considered parallel with the x, y or z axis. We now support any positive value. Then, as 13 we create the TransformOperation from the CSSValue, we must set the type to ROTATE_3D instead 14 of ROTATE_Z if the z axis was specified through the CSS value. Indeed, ROTATE_Z is equivalent 15 to ROTATE and without setting this type to ROTATE_3D, TransformOperation::is3DOperation() would 16 return false. 17 18 This is important because when figuring out the computed style, we should only return an angle 19 without a rotation vector if TransformOperation::is3DOperation() is false. For the case where 20 the operation was specified in 3D, we now use the same rule used when parsing to determine 21 whether the rotation vector is parallel with the x, y or z axis to use the matching keywords. 22 23 * css/CSSComputedStyleDeclaration.cpp: 24 (WebCore::computedRotate): 25 * css/TransformFunctions.cpp: 26 (WebCore::rotateForValue): 27 * css/parser/CSSPropertyParser.cpp: 28 (WebCore::consumeRotate): 29 1 30 2021-04-24 Antoine Quint <graouts@webkit.org> 2 31 -
trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
r276551 r276554 654 654 return cssValuePool.createIdentifierValue(CSSValueNone); 655 655 656 if (!rotate->is3DOperation()) 657 return cssValuePool.createValue(rotate->angle(), CSSUnitType::CSS_DEG); 658 656 659 auto list = CSSValueList::createSpaceSeparated(); 657 660 658 bool hasImplicitX = !rotate->x(); 659 bool hasImplicitY = !rotate->y(); 660 bool hasImplicitZ = rotate->z() == 1; 661 662 if (!hasImplicitX && hasImplicitY && hasImplicitZ) 661 if (rotate->x() && !rotate->y() && !rotate->z()) 663 662 list->append(cssValuePool.createIdentifierValue(CSSValueX)); 664 else if ( hasImplicitX && !hasImplicitY && hasImplicitZ)663 else if (!rotate->x() && rotate->y() && !rotate->z()) 665 664 list->append(cssValuePool.createIdentifierValue(CSSValueY)); 666 else if ( hasImplicitX && hasImplicitY && !hasImplicitZ)665 else if (!rotate->x() && !rotate->y() && rotate->z()) 667 666 list->append(cssValuePool.createIdentifierValue(CSSValueZ)); 668 else if (!hasImplicitX || !hasImplicitY || !hasImplicitZ){667 else { 669 668 list->append(cssValuePool.createValue(rotate->x(), CSSUnitType::CSS_NUMBER)); 670 669 list->append(cssValuePool.createValue(rotate->y(), CSSUnitType::CSS_NUMBER)); -
trunk/Source/WebCore/css/TransformFunctions.cpp
r272805 r276554 452 452 y = 1.0; 453 453 } else if (axisIdentifier == CSSValueZ) { 454 type = TransformOperation::ROTATE_ Z;454 type = TransformOperation::ROTATE_3D; 455 455 z = 1.0; 456 456 } else -
trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp
r276550 r276554 2071 2071 auto z = downcast<CSSPrimitiveValue>(*list->itemWithoutBoundsCheck(2)).doubleValue(); 2072 2072 2073 if (x == 1&& !y && !z) {2073 if (x && !y && !z) { 2074 2074 list = CSSValueList::createSpaceSeparated(); 2075 2075 list->append(CSSPrimitiveValue::createIdentifier(CSSValueX)); 2076 } else if (!x && y == 1&& !z) {2076 } else if (!x && y && !z) { 2077 2077 list = CSSValueList::createSpaceSeparated(); 2078 2078 list->append(CSSPrimitiveValue::createIdentifier(CSSValueY)); 2079 } else if (!x && !y && z == 1) {2079 } else if (!x && !y && z) { 2080 2080 list = CSSValueList::createSpaceSeparated(); 2081 2081 list->append(CSSPrimitiveValue::createIdentifier(CSSValueZ));
Note: See TracChangeset
for help on using the changeset viewer.