Changeset 274147 in webkit
- Timestamp:
- Mar 9, 2021 7:51:48 AM (17 months ago)
- Location:
- trunk
- Files:
-
- 8 edited
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-multicol/animation/column-count-interpolation-expected.txt (modified) (5 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-multicol/animation/column-width-interpolation-expected.txt (modified) (3 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-001-expected.txt (modified) (2 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-001-expected.txt (modified) (2 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-001-expected.txt (modified) (2 diffs)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/animation/CSSPropertyAnimation.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r274142 r274147 1 2021-03-09 Antoine Quint <graouts@webkit.org> 2 3 Correctly blend column-width and column-count CSS properties 4 https://bugs.webkit.org/show_bug.cgi?id=222969 5 6 Reviewed by Antti Koivisto. 7 8 Add an extra 160 PASS results. We now pass all the column-width and column-count interpolation tests. 9 10 * web-platform-tests/css/css-multicol/animation/column-count-interpolation-expected.txt: 11 * web-platform-tests/css/css-multicol/animation/column-width-interpolation-expected.txt: 12 * web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-001-expected.txt: 13 * web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-001-expected.txt: 14 * web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-001-expected.txt: 15 1 16 2021-03-08 Antoine Quint <graouts@webkit.org> 2 17 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-multicol/animation/column-count-interpolation-expected.txt
r272904 r274147 24 24 PASS Web Animations: property <column-count> from neutral to [20] at (1) should be [20] 25 25 PASS Web Animations: property <column-count> from neutral to [20] at (1.5) should be [25] 26 FAIL CSS Transitions: property <column-count> from [auto] to [20] at (-0.3) should be [20] assert_equals: expected "20 " but got "65530 " 27 FAIL CSS Transitions: property <column-count> from [auto] to [20] at (0) should be [20] assert_equals: expected "20 " but got "0 " 28 FAIL CSS Transitions: property <column-count> from [auto] to [20] at (0.3) should be [20] assert_equals: expected "20 " but got "6 " 29 FAIL CSS Transitions: property <column-count> from [auto] to [20] at (0.5) should be [20] assert_equals: expected "20 " but got "10 " 30 FAIL CSS Transitions: property <column-count> from [auto] to [20] at (0.6) should be [20] assert_equals: expected "20 " but got "12 " 26 PASS CSS Transitions: property <column-count> from [auto] to [20] at (-0.3) should be [20] 27 PASS CSS Transitions: property <column-count> from [auto] to [20] at (0) should be [20] 28 PASS CSS Transitions: property <column-count> from [auto] to [20] at (0.3) should be [20] 29 PASS CSS Transitions: property <column-count> from [auto] to [20] at (0.5) should be [20] 30 PASS CSS Transitions: property <column-count> from [auto] to [20] at (0.6) should be [20] 31 31 PASS CSS Transitions: property <column-count> from [auto] to [20] at (1) should be [20] 32 FAIL CSS Transitions: property <column-count> from [auto] to [20] at (1.5) should be [20] assert_equals: expected "20 " but got "30 " 33 FAIL CSS Transitions with transition: all: property <column-count> from [auto] to [20] at (-0.3) should be [20] assert_equals: expected "20 " but got "65530 " 34 FAIL CSS Transitions with transition: all: property <column-count> from [auto] to [20] at (0) should be [20] assert_equals: expected "20 " but got "0 " 35 FAIL CSS Transitions with transition: all: property <column-count> from [auto] to [20] at (0.3) should be [20] assert_equals: expected "20 " but got "6 " 36 FAIL CSS Transitions with transition: all: property <column-count> from [auto] to [20] at (0.5) should be [20] assert_equals: expected "20 " but got "10 " 37 FAIL CSS Transitions with transition: all: property <column-count> from [auto] to [20] at (0.6) should be [20] assert_equals: expected "20 " but got "12 " 32 PASS CSS Transitions: property <column-count> from [auto] to [20] at (1.5) should be [20] 33 PASS CSS Transitions with transition: all: property <column-count> from [auto] to [20] at (-0.3) should be [20] 34 PASS CSS Transitions with transition: all: property <column-count> from [auto] to [20] at (0) should be [20] 35 PASS CSS Transitions with transition: all: property <column-count> from [auto] to [20] at (0.3) should be [20] 36 PASS CSS Transitions with transition: all: property <column-count> from [auto] to [20] at (0.5) should be [20] 37 PASS CSS Transitions with transition: all: property <column-count> from [auto] to [20] at (0.6) should be [20] 38 38 PASS CSS Transitions with transition: all: property <column-count> from [auto] to [20] at (1) should be [20] 39 FAIL CSS Transitions with transition: all: property <column-count> from [auto] to [20] at (1.5) should be [20] assert_equals: expected "20 " but got "30 " 40 FAIL CSS Animations: property <column-count> from [auto] to [20] at (-0.3) should be [auto] assert_equals: expected "auto " but got "65530 " 41 FAIL CSS Animations: property <column-count> from [auto] to [20] at (0) should be [auto] assert_equals: expected "auto " but got "0 " 42 FAIL CSS Animations: property <column-count> from [auto] to [20] at (0.3) should be [auto] assert_equals: expected "auto " but got "6 " 43 FAIL CSS Animations: property <column-count> from [auto] to [20] at (0.5) should be [20] assert_equals: expected "20 " but got "10 " 44 FAIL CSS Animations: property <column-count> from [auto] to [20] at (0.6) should be [20] assert_equals: expected "20 " but got "12 " 39 PASS CSS Transitions with transition: all: property <column-count> from [auto] to [20] at (1.5) should be [20] 40 PASS CSS Animations: property <column-count> from [auto] to [20] at (-0.3) should be [auto] 41 PASS CSS Animations: property <column-count> from [auto] to [20] at (0) should be [auto] 42 PASS CSS Animations: property <column-count> from [auto] to [20] at (0.3) should be [auto] 43 PASS CSS Animations: property <column-count> from [auto] to [20] at (0.5) should be [20] 44 PASS CSS Animations: property <column-count> from [auto] to [20] at (0.6) should be [20] 45 45 PASS CSS Animations: property <column-count> from [auto] to [20] at (1) should be [20] 46 FAIL CSS Animations: property <column-count> from [auto] to [20] at (1.5) should be [20] assert_equals: expected "20 " but got "30 " 47 FAIL Web Animations: property <column-count> from [auto] to [20] at (-0.3) should be [auto] assert_equals: expected "auto " but got "65530 " 48 FAIL Web Animations: property <column-count> from [auto] to [20] at (0) should be [auto] assert_equals: expected "auto " but got "0 " 49 FAIL Web Animations: property <column-count> from [auto] to [20] at (0.3) should be [auto] assert_equals: expected "auto " but got "6 " 50 FAIL Web Animations: property <column-count> from [auto] to [20] at (0.5) should be [20] assert_equals: expected "20 " but got "10 " 51 FAIL Web Animations: property <column-count> from [auto] to [20] at (0.6) should be [20] assert_equals: expected "20 " but got "12 " 46 PASS CSS Animations: property <column-count> from [auto] to [20] at (1.5) should be [20] 47 PASS Web Animations: property <column-count> from [auto] to [20] at (-0.3) should be [auto] 48 PASS Web Animations: property <column-count> from [auto] to [20] at (0) should be [auto] 49 PASS Web Animations: property <column-count> from [auto] to [20] at (0.3) should be [auto] 50 PASS Web Animations: property <column-count> from [auto] to [20] at (0.5) should be [20] 51 PASS Web Animations: property <column-count> from [auto] to [20] at (0.6) should be [20] 52 52 PASS Web Animations: property <column-count> from [auto] to [20] at (1) should be [20] 53 FAIL Web Animations: property <column-count> from [auto] to [20] at (1.5) should be [20] assert_equals: expected "20 " but got "30 " 53 PASS Web Animations: property <column-count> from [auto] to [20] at (1.5) should be [20] 54 54 PASS CSS Transitions: property <column-count> from [inherit] to [20] at (-0.5) should be [35] 55 55 PASS CSS Transitions: property <column-count> from [inherit] to [20] at (0) should be [30] … … 81 81 PASS CSS Transitions: property <column-count> from [10] to [1] at (0.7) should be [4] 82 82 PASS CSS Transitions: property <column-count> from [10] to [1] at (1) should be [1] 83 FAIL CSS Transitions: property <column-count> from [10] to [1] at (1.5) should be [1] assert_equals: expected "1 " but got "65532 " 83 PASS CSS Transitions: property <column-count> from [10] to [1] at (1.5) should be [1] 84 84 PASS CSS Transitions with transition: all: property <column-count> from [10] to [1] at (-0.5) should be [15] 85 85 PASS CSS Transitions with transition: all: property <column-count> from [10] to [1] at (0) should be [10] … … 87 87 PASS CSS Transitions with transition: all: property <column-count> from [10] to [1] at (0.7) should be [4] 88 88 PASS CSS Transitions with transition: all: property <column-count> from [10] to [1] at (1) should be [1] 89 FAIL CSS Transitions with transition: all: property <column-count> from [10] to [1] at (1.5) should be [1] assert_equals: expected "1 " but got "65532 " 89 PASS CSS Transitions with transition: all: property <column-count> from [10] to [1] at (1.5) should be [1] 90 90 PASS CSS Animations: property <column-count> from [10] to [1] at (-0.5) should be [15] 91 91 PASS CSS Animations: property <column-count> from [10] to [1] at (0) should be [10] … … 93 93 PASS CSS Animations: property <column-count> from [10] to [1] at (0.7) should be [4] 94 94 PASS CSS Animations: property <column-count> from [10] to [1] at (1) should be [1] 95 FAIL CSS Animations: property <column-count> from [10] to [1] at (1.5) should be [1] assert_equals: expected "1 " but got "65532 " 95 PASS CSS Animations: property <column-count> from [10] to [1] at (1.5) should be [1] 96 96 PASS Web Animations: property <column-count> from [10] to [1] at (-0.5) should be [15] 97 97 PASS Web Animations: property <column-count> from [10] to [1] at (0) should be [10] … … 99 99 PASS Web Animations: property <column-count> from [10] to [1] at (0.7) should be [4] 100 100 PASS Web Animations: property <column-count> from [10] to [1] at (1) should be [1] 101 FAIL Web Animations: property <column-count> from [10] to [1] at (1.5) should be [1] assert_equals: expected "1 " but got "65532 " 102 FAIL CSS Transitions: property <column-count> from [initial] to [5] at (-0.3) should be [5] assert_equals: expected "5 " but got "65535 " 103 FAIL CSS Transitions: property <column-count> from [initial] to [5] at (0) should be [5] assert_equals: expected "5 " but got "0 " 104 FAIL CSS Transitions: property <column-count> from [initial] to [5] at (0.3) should be [5] assert_equals: expected "5 " but got "2 " 105 FAIL CSS Transitions: property <column-count> from [initial] to [5] at (0.5) should be [5] assert_equals: expected "5 " but got "3 " 106 FAIL CSS Transitions: property <column-count> from [initial] to [5] at (0.6) should be [5] assert_equals: expected "5 " but got "3 " 101 PASS Web Animations: property <column-count> from [10] to [1] at (1.5) should be [1] 102 PASS CSS Transitions: property <column-count> from [initial] to [5] at (-0.3) should be [5] 103 PASS CSS Transitions: property <column-count> from [initial] to [5] at (0) should be [5] 104 PASS CSS Transitions: property <column-count> from [initial] to [5] at (0.3) should be [5] 105 PASS CSS Transitions: property <column-count> from [initial] to [5] at (0.5) should be [5] 106 PASS CSS Transitions: property <column-count> from [initial] to [5] at (0.6) should be [5] 107 107 PASS CSS Transitions: property <column-count> from [initial] to [5] at (1) should be [5] 108 FAIL CSS Transitions: property <column-count> from [initial] to [5] at (1.5) should be [5] assert_equals: expected "5 " but got "8 " 109 FAIL CSS Transitions with transition: all: property <column-count> from [initial] to [5] at (-0.3) should be [5] assert_equals: expected "5 " but got "65535 " 110 FAIL CSS Transitions with transition: all: property <column-count> from [initial] to [5] at (0) should be [5] assert_equals: expected "5 " but got "0 " 111 FAIL CSS Transitions with transition: all: property <column-count> from [initial] to [5] at (0.3) should be [5] assert_equals: expected "5 " but got "2 " 112 FAIL CSS Transitions with transition: all: property <column-count> from [initial] to [5] at (0.5) should be [5] assert_equals: expected "5 " but got "3 " 113 FAIL CSS Transitions with transition: all: property <column-count> from [initial] to [5] at (0.6) should be [5] assert_equals: expected "5 " but got "3 " 108 PASS CSS Transitions: property <column-count> from [initial] to [5] at (1.5) should be [5] 109 PASS CSS Transitions with transition: all: property <column-count> from [initial] to [5] at (-0.3) should be [5] 110 PASS CSS Transitions with transition: all: property <column-count> from [initial] to [5] at (0) should be [5] 111 PASS CSS Transitions with transition: all: property <column-count> from [initial] to [5] at (0.3) should be [5] 112 PASS CSS Transitions with transition: all: property <column-count> from [initial] to [5] at (0.5) should be [5] 113 PASS CSS Transitions with transition: all: property <column-count> from [initial] to [5] at (0.6) should be [5] 114 114 PASS CSS Transitions with transition: all: property <column-count> from [initial] to [5] at (1) should be [5] 115 FAIL CSS Transitions with transition: all: property <column-count> from [initial] to [5] at (1.5) should be [5] assert_equals: expected "5 " but got "8 " 116 FAIL CSS Animations: property <column-count> from [initial] to [5] at (-0.3) should be [initial] assert_equals: expected "auto " but got "65535 " 117 FAIL CSS Animations: property <column-count> from [initial] to [5] at (0) should be [initial] assert_equals: expected "auto " but got "0 " 118 FAIL CSS Animations: property <column-count> from [initial] to [5] at (0.3) should be [initial] assert_equals: expected "auto " but got "2 " 119 FAIL CSS Animations: property <column-count> from [initial] to [5] at (0.5) should be [5] assert_equals: expected "5 " but got "3 " 120 FAIL CSS Animations: property <column-count> from [initial] to [5] at (0.6) should be [5] assert_equals: expected "5 " but got "3 " 115 PASS CSS Transitions with transition: all: property <column-count> from [initial] to [5] at (1.5) should be [5] 116 PASS CSS Animations: property <column-count> from [initial] to [5] at (-0.3) should be [initial] 117 PASS CSS Animations: property <column-count> from [initial] to [5] at (0) should be [initial] 118 PASS CSS Animations: property <column-count> from [initial] to [5] at (0.3) should be [initial] 119 PASS CSS Animations: property <column-count> from [initial] to [5] at (0.5) should be [5] 120 PASS CSS Animations: property <column-count> from [initial] to [5] at (0.6) should be [5] 121 121 PASS CSS Animations: property <column-count> from [initial] to [5] at (1) should be [5] 122 FAIL CSS Animations: property <column-count> from [initial] to [5] at (1.5) should be [5] assert_equals: expected "5 " but got "8 " 123 FAIL Web Animations: property <column-count> from [initial] to [5] at (-0.3) should be [initial] assert_equals: expected "auto " but got "65535 " 124 FAIL Web Animations: property <column-count> from [initial] to [5] at (0) should be [initial] assert_equals: expected "auto " but got "0 " 125 FAIL Web Animations: property <column-count> from [initial] to [5] at (0.3) should be [initial] assert_equals: expected "auto " but got "2 " 126 FAIL Web Animations: property <column-count> from [initial] to [5] at (0.5) should be [5] assert_equals: expected "5 " but got "3 " 127 FAIL Web Animations: property <column-count> from [initial] to [5] at (0.6) should be [5] assert_equals: expected "5 " but got "3 " 122 PASS CSS Animations: property <column-count> from [initial] to [5] at (1.5) should be [5] 123 PASS Web Animations: property <column-count> from [initial] to [5] at (-0.3) should be [initial] 124 PASS Web Animations: property <column-count> from [initial] to [5] at (0) should be [initial] 125 PASS Web Animations: property <column-count> from [initial] to [5] at (0.3) should be [initial] 126 PASS Web Animations: property <column-count> from [initial] to [5] at (0.5) should be [5] 127 PASS Web Animations: property <column-count> from [initial] to [5] at (0.6) should be [5] 128 128 PASS Web Animations: property <column-count> from [initial] to [5] at (1) should be [5] 129 FAIL Web Animations: property <column-count> from [initial] to [5] at (1.5) should be [5] assert_equals: expected "5 " but got "8 " 130 FAIL CSS Transitions: property <column-count> from [unset] to [5] at (-0.3) should be [5] assert_equals: expected "5 " but got "65535 " 131 FAIL CSS Transitions: property <column-count> from [unset] to [5] at (0) should be [5] assert_equals: expected "5 " but got "0 " 132 FAIL CSS Transitions: property <column-count> from [unset] to [5] at (0.3) should be [5] assert_equals: expected "5 " but got "2 " 133 FAIL CSS Transitions: property <column-count> from [unset] to [5] at (0.5) should be [5] assert_equals: expected "5 " but got "3 " 134 FAIL CSS Transitions: property <column-count> from [unset] to [5] at (0.6) should be [5] assert_equals: expected "5 " but got "3 " 129 PASS Web Animations: property <column-count> from [initial] to [5] at (1.5) should be [5] 130 PASS CSS Transitions: property <column-count> from [unset] to [5] at (-0.3) should be [5] 131 PASS CSS Transitions: property <column-count> from [unset] to [5] at (0) should be [5] 132 PASS CSS Transitions: property <column-count> from [unset] to [5] at (0.3) should be [5] 133 PASS CSS Transitions: property <column-count> from [unset] to [5] at (0.5) should be [5] 134 PASS CSS Transitions: property <column-count> from [unset] to [5] at (0.6) should be [5] 135 135 PASS CSS Transitions: property <column-count> from [unset] to [5] at (1) should be [5] 136 FAIL CSS Transitions: property <column-count> from [unset] to [5] at (1.5) should be [5] assert_equals: expected "5 " but got "8 " 137 FAIL CSS Transitions with transition: all: property <column-count> from [unset] to [5] at (-0.3) should be [5] assert_equals: expected "5 " but got "65535 " 138 FAIL CSS Transitions with transition: all: property <column-count> from [unset] to [5] at (0) should be [5] assert_equals: expected "5 " but got "0 " 139 FAIL CSS Transitions with transition: all: property <column-count> from [unset] to [5] at (0.3) should be [5] assert_equals: expected "5 " but got "2 " 140 FAIL CSS Transitions with transition: all: property <column-count> from [unset] to [5] at (0.5) should be [5] assert_equals: expected "5 " but got "3 " 141 FAIL CSS Transitions with transition: all: property <column-count> from [unset] to [5] at (0.6) should be [5] assert_equals: expected "5 " but got "3 " 136 PASS CSS Transitions: property <column-count> from [unset] to [5] at (1.5) should be [5] 137 PASS CSS Transitions with transition: all: property <column-count> from [unset] to [5] at (-0.3) should be [5] 138 PASS CSS Transitions with transition: all: property <column-count> from [unset] to [5] at (0) should be [5] 139 PASS CSS Transitions with transition: all: property <column-count> from [unset] to [5] at (0.3) should be [5] 140 PASS CSS Transitions with transition: all: property <column-count> from [unset] to [5] at (0.5) should be [5] 141 PASS CSS Transitions with transition: all: property <column-count> from [unset] to [5] at (0.6) should be [5] 142 142 PASS CSS Transitions with transition: all: property <column-count> from [unset] to [5] at (1) should be [5] 143 FAIL CSS Transitions with transition: all: property <column-count> from [unset] to [5] at (1.5) should be [5] assert_equals: expected "5 " but got "8 " 144 FAIL CSS Animations: property <column-count> from [unset] to [5] at (-0.3) should be [unset] assert_equals: expected "auto " but got "65535 " 145 FAIL CSS Animations: property <column-count> from [unset] to [5] at (0) should be [unset] assert_equals: expected "auto " but got "0 " 146 FAIL CSS Animations: property <column-count> from [unset] to [5] at (0.3) should be [unset] assert_equals: expected "auto " but got "2 " 147 FAIL CSS Animations: property <column-count> from [unset] to [5] at (0.5) should be [5] assert_equals: expected "5 " but got "3 " 148 FAIL CSS Animations: property <column-count> from [unset] to [5] at (0.6) should be [5] assert_equals: expected "5 " but got "3 " 143 PASS CSS Transitions with transition: all: property <column-count> from [unset] to [5] at (1.5) should be [5] 144 PASS CSS Animations: property <column-count> from [unset] to [5] at (-0.3) should be [unset] 145 PASS CSS Animations: property <column-count> from [unset] to [5] at (0) should be [unset] 146 PASS CSS Animations: property <column-count> from [unset] to [5] at (0.3) should be [unset] 147 PASS CSS Animations: property <column-count> from [unset] to [5] at (0.5) should be [5] 148 PASS CSS Animations: property <column-count> from [unset] to [5] at (0.6) should be [5] 149 149 PASS CSS Animations: property <column-count> from [unset] to [5] at (1) should be [5] 150 FAIL CSS Animations: property <column-count> from [unset] to [5] at (1.5) should be [5] assert_equals: expected "5 " but got "8 " 151 FAIL Web Animations: property <column-count> from [unset] to [5] at (-0.3) should be [unset] assert_equals: expected "auto " but got "65535 " 152 FAIL Web Animations: property <column-count> from [unset] to [5] at (0) should be [unset] assert_equals: expected "auto " but got "0 " 153 FAIL Web Animations: property <column-count> from [unset] to [5] at (0.3) should be [unset] assert_equals: expected "auto " but got "2 " 154 FAIL Web Animations: property <column-count> from [unset] to [5] at (0.5) should be [5] assert_equals: expected "5 " but got "3 " 155 FAIL Web Animations: property <column-count> from [unset] to [5] at (0.6) should be [5] assert_equals: expected "5 " but got "3 " 150 PASS CSS Animations: property <column-count> from [unset] to [5] at (1.5) should be [5] 151 PASS Web Animations: property <column-count> from [unset] to [5] at (-0.3) should be [unset] 152 PASS Web Animations: property <column-count> from [unset] to [5] at (0) should be [unset] 153 PASS Web Animations: property <column-count> from [unset] to [5] at (0.3) should be [unset] 154 PASS Web Animations: property <column-count> from [unset] to [5] at (0.5) should be [5] 155 PASS Web Animations: property <column-count> from [unset] to [5] at (0.6) should be [5] 156 156 PASS Web Animations: property <column-count> from [unset] to [5] at (1) should be [5] 157 FAIL Web Animations: property <column-count> from [unset] to [5] at (1.5) should be [5] assert_equals: expected "5 " but got "8 " 157 PASS Web Animations: property <column-count> from [unset] to [5] at (1.5) should be [5] 158 158 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-multicol/animation/column-width-interpolation-expected.txt
r274142 r274147 32 32 PASS Web Animations: property <column-width> from neutral to [20px] at (1) should be [20px] 33 33 PASS Web Animations: property <column-width> from neutral to [20px] at (1.5) should be [25px] 34 FAIL CSS Transitions: property <column-width> from [initial] to [20px] at (-0.3) should be [20px] assert_equals: expected "20px " but got "0px " 35 FAIL CSS Transitions: property <column-width> from [initial] to [20px] at (0) should be [20px] assert_equals: expected "20px " but got "0px " 36 FAIL CSS Transitions: property <column-width> from [initial] to [20px] at (0.3) should be [20px] assert_equals: expected "20px " but got "6px " 37 FAIL CSS Transitions: property <column-width> from [initial] to [20px] at (0.5) should be [20px] assert_equals: expected "20px " but got "10px " 38 FAIL CSS Transitions: property <column-width> from [initial] to [20px] at (0.6) should be [20px] assert_equals: expected "20px " but got "12px " 34 PASS CSS Transitions: property <column-width> from [initial] to [20px] at (-0.3) should be [20px] 35 PASS CSS Transitions: property <column-width> from [initial] to [20px] at (0) should be [20px] 36 PASS CSS Transitions: property <column-width> from [initial] to [20px] at (0.3) should be [20px] 37 PASS CSS Transitions: property <column-width> from [initial] to [20px] at (0.5) should be [20px] 38 PASS CSS Transitions: property <column-width> from [initial] to [20px] at (0.6) should be [20px] 39 39 PASS CSS Transitions: property <column-width> from [initial] to [20px] at (1) should be [20px] 40 FAIL CSS Transitions: property <column-width> from [initial] to [20px] at (1.5) should be [20px] assert_equals: expected "20px " but got "30px " 41 FAIL CSS Transitions with transition: all: property <column-width> from [initial] to [20px] at (-0.3) should be [20px] assert_equals: expected "20px " but got "0px " 42 FAIL CSS Transitions with transition: all: property <column-width> from [initial] to [20px] at (0) should be [20px] assert_equals: expected "20px " but got "0px " 43 FAIL CSS Transitions with transition: all: property <column-width> from [initial] to [20px] at (0.3) should be [20px] assert_equals: expected "20px " but got "6px " 44 FAIL CSS Transitions with transition: all: property <column-width> from [initial] to [20px] at (0.5) should be [20px] assert_equals: expected "20px " but got "10px " 45 FAIL CSS Transitions with transition: all: property <column-width> from [initial] to [20px] at (0.6) should be [20px] assert_equals: expected "20px " but got "12px " 40 PASS CSS Transitions: property <column-width> from [initial] to [20px] at (1.5) should be [20px] 41 PASS CSS Transitions with transition: all: property <column-width> from [initial] to [20px] at (-0.3) should be [20px] 42 PASS CSS Transitions with transition: all: property <column-width> from [initial] to [20px] at (0) should be [20px] 43 PASS CSS Transitions with transition: all: property <column-width> from [initial] to [20px] at (0.3) should be [20px] 44 PASS CSS Transitions with transition: all: property <column-width> from [initial] to [20px] at (0.5) should be [20px] 45 PASS CSS Transitions with transition: all: property <column-width> from [initial] to [20px] at (0.6) should be [20px] 46 46 PASS CSS Transitions with transition: all: property <column-width> from [initial] to [20px] at (1) should be [20px] 47 FAIL CSS Transitions with transition: all: property <column-width> from [initial] to [20px] at (1.5) should be [20px] assert_equals: expected "20px " but got "30px " 48 FAIL CSS Animations: property <column-width> from [initial] to [20px] at (-0.3) should be [initial] assert_equals: expected "auto " but got "0px " 49 FAIL CSS Animations: property <column-width> from [initial] to [20px] at (0) should be [initial] assert_equals: expected "auto " but got "0px " 50 FAIL CSS Animations: property <column-width> from [initial] to [20px] at (0.3) should be [initial] assert_equals: expected "auto " but got "6px " 51 FAIL CSS Animations: property <column-width> from [initial] to [20px] at (0.5) should be [20px] assert_equals: expected "20px " but got "10px " 52 FAIL CSS Animations: property <column-width> from [initial] to [20px] at (0.6) should be [20px] assert_equals: expected "20px " but got "12px " 47 PASS CSS Transitions with transition: all: property <column-width> from [initial] to [20px] at (1.5) should be [20px] 48 PASS CSS Animations: property <column-width> from [initial] to [20px] at (-0.3) should be [initial] 49 PASS CSS Animations: property <column-width> from [initial] to [20px] at (0) should be [initial] 50 PASS CSS Animations: property <column-width> from [initial] to [20px] at (0.3) should be [initial] 51 PASS CSS Animations: property <column-width> from [initial] to [20px] at (0.5) should be [20px] 52 PASS CSS Animations: property <column-width> from [initial] to [20px] at (0.6) should be [20px] 53 53 PASS CSS Animations: property <column-width> from [initial] to [20px] at (1) should be [20px] 54 FAIL CSS Animations: property <column-width> from [initial] to [20px] at (1.5) should be [20px] assert_equals: expected "20px " but got "30px " 55 FAIL Web Animations: property <column-width> from [initial] to [20px] at (-0.3) should be [initial] assert_equals: expected "auto " but got "0px " 56 FAIL Web Animations: property <column-width> from [initial] to [20px] at (0) should be [initial] assert_equals: expected "auto " but got "0px " 57 FAIL Web Animations: property <column-width> from [initial] to [20px] at (0.3) should be [initial] assert_equals: expected "auto " but got "6px " 58 FAIL Web Animations: property <column-width> from [initial] to [20px] at (0.5) should be [20px] assert_equals: expected "20px " but got "10px " 59 FAIL Web Animations: property <column-width> from [initial] to [20px] at (0.6) should be [20px] assert_equals: expected "20px " but got "12px " 54 PASS CSS Animations: property <column-width> from [initial] to [20px] at (1.5) should be [20px] 55 PASS Web Animations: property <column-width> from [initial] to [20px] at (-0.3) should be [initial] 56 PASS Web Animations: property <column-width> from [initial] to [20px] at (0) should be [initial] 57 PASS Web Animations: property <column-width> from [initial] to [20px] at (0.3) should be [initial] 58 PASS Web Animations: property <column-width> from [initial] to [20px] at (0.5) should be [20px] 59 PASS Web Animations: property <column-width> from [initial] to [20px] at (0.6) should be [20px] 60 60 PASS Web Animations: property <column-width> from [initial] to [20px] at (1) should be [20px] 61 FAIL Web Animations: property <column-width> from [initial] to [20px] at (1.5) should be [20px] assert_equals: expected "20px " but got "30px " 61 PASS Web Animations: property <column-width> from [initial] to [20px] at (1.5) should be [20px] 62 62 PASS CSS Transitions: property <column-width> from [inherit] to [20px] at (-20) should be [230px] 63 63 PASS CSS Transitions: property <column-width> from [inherit] to [20px] at (-1) should be [40px] … … 92 92 PASS Web Animations: property <column-width> from [inherit] to [20px] at (1) should be [20px] 93 93 PASS Web Animations: property <column-width> from [inherit] to [20px] at (1.5) should be [15px] 94 FAIL CSS Transitions: property <column-width> from [unset] to [20px] at (-0.3) should be [20px] assert_equals: expected "20px " but got "0px " 95 FAIL CSS Transitions: property <column-width> from [unset] to [20px] at (0) should be [20px] assert_equals: expected "20px " but got "0px " 96 FAIL CSS Transitions: property <column-width> from [unset] to [20px] at (0.3) should be [20px] assert_equals: expected "20px " but got "6px " 97 FAIL CSS Transitions: property <column-width> from [unset] to [20px] at (0.5) should be [20px] assert_equals: expected "20px " but got "10px " 98 FAIL CSS Transitions: property <column-width> from [unset] to [20px] at (0.6) should be [20px] assert_equals: expected "20px " but got "12px " 94 PASS CSS Transitions: property <column-width> from [unset] to [20px] at (-0.3) should be [20px] 95 PASS CSS Transitions: property <column-width> from [unset] to [20px] at (0) should be [20px] 96 PASS CSS Transitions: property <column-width> from [unset] to [20px] at (0.3) should be [20px] 97 PASS CSS Transitions: property <column-width> from [unset] to [20px] at (0.5) should be [20px] 98 PASS CSS Transitions: property <column-width> from [unset] to [20px] at (0.6) should be [20px] 99 99 PASS CSS Transitions: property <column-width> from [unset] to [20px] at (1) should be [20px] 100 FAIL CSS Transitions: property <column-width> from [unset] to [20px] at (1.5) should be [20px] assert_equals: expected "20px " but got "30px " 101 FAIL CSS Transitions with transition: all: property <column-width> from [unset] to [20px] at (-0.3) should be [20px] assert_equals: expected "20px " but got "0px " 102 FAIL CSS Transitions with transition: all: property <column-width> from [unset] to [20px] at (0) should be [20px] assert_equals: expected "20px " but got "0px " 103 FAIL CSS Transitions with transition: all: property <column-width> from [unset] to [20px] at (0.3) should be [20px] assert_equals: expected "20px " but got "6px " 104 FAIL CSS Transitions with transition: all: property <column-width> from [unset] to [20px] at (0.5) should be [20px] assert_equals: expected "20px " but got "10px " 105 FAIL CSS Transitions with transition: all: property <column-width> from [unset] to [20px] at (0.6) should be [20px] assert_equals: expected "20px " but got "12px " 100 PASS CSS Transitions: property <column-width> from [unset] to [20px] at (1.5) should be [20px] 101 PASS CSS Transitions with transition: all: property <column-width> from [unset] to [20px] at (-0.3) should be [20px] 102 PASS CSS Transitions with transition: all: property <column-width> from [unset] to [20px] at (0) should be [20px] 103 PASS CSS Transitions with transition: all: property <column-width> from [unset] to [20px] at (0.3) should be [20px] 104 PASS CSS Transitions with transition: all: property <column-width> from [unset] to [20px] at (0.5) should be [20px] 105 PASS CSS Transitions with transition: all: property <column-width> from [unset] to [20px] at (0.6) should be [20px] 106 106 PASS CSS Transitions with transition: all: property <column-width> from [unset] to [20px] at (1) should be [20px] 107 FAIL CSS Transitions with transition: all: property <column-width> from [unset] to [20px] at (1.5) should be [20px] assert_equals: expected "20px " but got "30px " 108 FAIL CSS Animations: property <column-width> from [unset] to [20px] at (-0.3) should be [unset] assert_equals: expected "auto " but got "0px " 109 FAIL CSS Animations: property <column-width> from [unset] to [20px] at (0) should be [unset] assert_equals: expected "auto " but got "0px " 110 FAIL CSS Animations: property <column-width> from [unset] to [20px] at (0.3) should be [unset] assert_equals: expected "auto " but got "6px " 111 FAIL CSS Animations: property <column-width> from [unset] to [20px] at (0.5) should be [20px] assert_equals: expected "20px " but got "10px " 112 FAIL CSS Animations: property <column-width> from [unset] to [20px] at (0.6) should be [20px] assert_equals: expected "20px " but got "12px " 107 PASS CSS Transitions with transition: all: property <column-width> from [unset] to [20px] at (1.5) should be [20px] 108 PASS CSS Animations: property <column-width> from [unset] to [20px] at (-0.3) should be [unset] 109 PASS CSS Animations: property <column-width> from [unset] to [20px] at (0) should be [unset] 110 PASS CSS Animations: property <column-width> from [unset] to [20px] at (0.3) should be [unset] 111 PASS CSS Animations: property <column-width> from [unset] to [20px] at (0.5) should be [20px] 112 PASS CSS Animations: property <column-width> from [unset] to [20px] at (0.6) should be [20px] 113 113 PASS CSS Animations: property <column-width> from [unset] to [20px] at (1) should be [20px] 114 FAIL CSS Animations: property <column-width> from [unset] to [20px] at (1.5) should be [20px] assert_equals: expected "20px " but got "30px " 115 FAIL Web Animations: property <column-width> from [unset] to [20px] at (-0.3) should be [unset] assert_equals: expected "auto " but got "0px " 116 FAIL Web Animations: property <column-width> from [unset] to [20px] at (0) should be [unset] assert_equals: expected "auto " but got "0px " 117 FAIL Web Animations: property <column-width> from [unset] to [20px] at (0.3) should be [unset] assert_equals: expected "auto " but got "6px " 118 FAIL Web Animations: property <column-width> from [unset] to [20px] at (0.5) should be [20px] assert_equals: expected "20px " but got "10px " 119 FAIL Web Animations: property <column-width> from [unset] to [20px] at (0.6) should be [20px] assert_equals: expected "20px " but got "12px " 114 PASS CSS Animations: property <column-width> from [unset] to [20px] at (1.5) should be [20px] 115 PASS Web Animations: property <column-width> from [unset] to [20px] at (-0.3) should be [unset] 116 PASS Web Animations: property <column-width> from [unset] to [20px] at (0) should be [unset] 117 PASS Web Animations: property <column-width> from [unset] to [20px] at (0.3) should be [unset] 118 PASS Web Animations: property <column-width> from [unset] to [20px] at (0.5) should be [20px] 119 PASS Web Animations: property <column-width> from [unset] to [20px] at (0.6) should be [20px] 120 120 PASS Web Animations: property <column-width> from [unset] to [20px] at (1) should be [20px] 121 FAIL Web Animations: property <column-width> from [unset] to [20px] at (1.5) should be [20px] assert_equals: expected "20px " but got "30px " 121 PASS Web Animations: property <column-width> from [unset] to [20px] at (1.5) should be [20px] 122 122 PASS CSS Transitions: property <column-width> from [50px] to [100px] at (-20) should be [1em] 123 123 PASS CSS Transitions: property <column-width> from [50px] to [100px] at (-1) should be [1em] … … 152 152 PASS Web Animations: property <column-width> from [50px] to [100px] at (1) should be [100px] 153 153 PASS Web Animations: property <column-width> from [50px] to [100px] at (1.5) should be [125px] 154 FAIL CSS Transitions: property <column-width> from [50px] to [auto] at (-0.3) should be [auto] assert_equals: expected "auto " but got "65px " 155 FAIL CSS Transitions: property <column-width> from [50px] to [auto] at (0) should be [auto] assert_equals: expected "auto " but got "50px " 156 FAIL CSS Transitions: property <column-width> from [50px] to [auto] at (0.3) should be [auto] assert_equals: expected "auto " but got "35px " 157 FAIL CSS Transitions: property <column-width> from [50px] to [auto] at (0.5) should be [auto] assert_equals: expected "auto " but got "25px " 158 FAIL CSS Transitions: property <column-width> from [50px] to [auto] at (0.6) should be [auto] assert_equals: expected "auto " but got "20px " 159 FAIL CSS Transitions: property <column-width> from [50px] to [auto] at (1) should be [auto] assert_equals: expected "auto " but got "0px " 160 FAIL CSS Transitions: property <column-width> from [50px] to [auto] at (1.5) should be [auto] assert_equals: expected "auto " but got "0px " 161 FAIL CSS Transitions with transition: all: property <column-width> from [50px] to [auto] at (-0.3) should be [auto] assert_equals: expected "auto " but got "65px " 162 FAIL CSS Transitions with transition: all: property <column-width> from [50px] to [auto] at (0) should be [auto] assert_equals: expected "auto " but got "50px " 163 FAIL CSS Transitions with transition: all: property <column-width> from [50px] to [auto] at (0.3) should be [auto] assert_equals: expected "auto " but got "35px " 164 FAIL CSS Transitions with transition: all: property <column-width> from [50px] to [auto] at (0.5) should be [auto] assert_equals: expected "auto " but got "25px " 165 FAIL CSS Transitions with transition: all: property <column-width> from [50px] to [auto] at (0.6) should be [auto] assert_equals: expected "auto " but got "20px " 166 FAIL CSS Transitions with transition: all: property <column-width> from [50px] to [auto] at (1) should be [auto] assert_equals: expected "auto " but got "0px " 167 FAIL CSS Transitions with transition: all: property <column-width> from [50px] to [auto] at (1.5) should be [auto] assert_equals: expected "auto " but got "0px " 168 FAIL CSS Animations: property <column-width> from [50px] to [auto] at (-0.3) should be [50px] assert_equals: expected "50px " but got "65px " 154 PASS CSS Transitions: property <column-width> from [50px] to [auto] at (-0.3) should be [auto] 155 PASS CSS Transitions: property <column-width> from [50px] to [auto] at (0) should be [auto] 156 PASS CSS Transitions: property <column-width> from [50px] to [auto] at (0.3) should be [auto] 157 PASS CSS Transitions: property <column-width> from [50px] to [auto] at (0.5) should be [auto] 158 PASS CSS Transitions: property <column-width> from [50px] to [auto] at (0.6) should be [auto] 159 PASS CSS Transitions: property <column-width> from [50px] to [auto] at (1) should be [auto] 160 PASS CSS Transitions: property <column-width> from [50px] to [auto] at (1.5) should be [auto] 161 PASS CSS Transitions with transition: all: property <column-width> from [50px] to [auto] at (-0.3) should be [auto] 162 PASS CSS Transitions with transition: all: property <column-width> from [50px] to [auto] at (0) should be [auto] 163 PASS CSS Transitions with transition: all: property <column-width> from [50px] to [auto] at (0.3) should be [auto] 164 PASS CSS Transitions with transition: all: property <column-width> from [50px] to [auto] at (0.5) should be [auto] 165 PASS CSS Transitions with transition: all: property <column-width> from [50px] to [auto] at (0.6) should be [auto] 166 PASS CSS Transitions with transition: all: property <column-width> from [50px] to [auto] at (1) should be [auto] 167 PASS CSS Transitions with transition: all: property <column-width> from [50px] to [auto] at (1.5) should be [auto] 168 PASS CSS Animations: property <column-width> from [50px] to [auto] at (-0.3) should be [50px] 169 169 PASS CSS Animations: property <column-width> from [50px] to [auto] at (0) should be [50px] 170 FAIL CSS Animations: property <column-width> from [50px] to [auto] at (0.3) should be [50px] assert_equals: expected "50px " but got "35px " 171 FAIL CSS Animations: property <column-width> from [50px] to [auto] at (0.5) should be [auto] assert_equals: expected "auto " but got "25px " 172 FAIL CSS Animations: property <column-width> from [50px] to [auto] at (0.6) should be [auto] assert_equals: expected "auto " but got "20px " 173 FAIL CSS Animations: property <column-width> from [50px] to [auto] at (1) should be [auto] assert_equals: expected "auto " but got "0px " 174 FAIL CSS Animations: property <column-width> from [50px] to [auto] at (1.5) should be [auto] assert_equals: expected "auto " but got "0px " 175 FAIL Web Animations: property <column-width> from [50px] to [auto] at (-0.3) should be [50px] assert_equals: expected "50px " but got "65px " 170 PASS CSS Animations: property <column-width> from [50px] to [auto] at (0.3) should be [50px] 171 PASS CSS Animations: property <column-width> from [50px] to [auto] at (0.5) should be [auto] 172 PASS CSS Animations: property <column-width> from [50px] to [auto] at (0.6) should be [auto] 173 PASS CSS Animations: property <column-width> from [50px] to [auto] at (1) should be [auto] 174 PASS CSS Animations: property <column-width> from [50px] to [auto] at (1.5) should be [auto] 175 PASS Web Animations: property <column-width> from [50px] to [auto] at (-0.3) should be [50px] 176 176 PASS Web Animations: property <column-width> from [50px] to [auto] at (0) should be [50px] 177 FAIL Web Animations: property <column-width> from [50px] to [auto] at (0.3) should be [50px] assert_equals: expected "50px " but got "35px " 178 FAIL Web Animations: property <column-width> from [50px] to [auto] at (0.5) should be [auto] assert_equals: expected "auto " but got "25px " 179 FAIL Web Animations: property <column-width> from [50px] to [auto] at (0.6) should be [auto] assert_equals: expected "auto " but got "20px " 180 FAIL Web Animations: property <column-width> from [50px] to [auto] at (1) should be [auto] assert_equals: expected "auto " but got "0px " 181 FAIL Web Animations: property <column-width> from [50px] to [auto] at (1.5) should be [auto] assert_equals: expected "auto " but got "0px " 177 PASS Web Animations: property <column-width> from [50px] to [auto] at (0.3) should be [50px] 178 PASS Web Animations: property <column-width> from [50px] to [auto] at (0.5) should be [auto] 179 PASS Web Animations: property <column-width> from [50px] to [auto] at (0.6) should be [auto] 180 PASS Web Animations: property <column-width> from [50px] to [auto] at (1) should be [auto] 181 PASS Web Animations: property <column-width> from [50px] to [auto] at (1.5) should be [auto] 182 182 -
trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-001-expected.txt
r269812 r274147 117 117 PASS column-count (type: discrete) has testAccumulation function 118 118 PASS column-count: "10" onto "auto" 119 FAIL column-count: "auto" onto "10" assert_equals: The value should be auto at 0ms expected "auto" but got "0"119 PASS column-count: "auto" onto "10" 120 120 PASS column-gap (type: length) has testAccumulation function 121 121 FAIL column-gap: length assert_equals: The value should be 20px at 0ms expected "20px" but got "10px" … … 145 145 PASS column-width (type: discrete) has testAccumulation function 146 146 PASS column-width: "1px" onto "auto" 147 FAIL column-width: "auto" onto "1px" assert_equals: The value should be auto at 0ms expected "auto" but got "0px"147 PASS column-width: "auto" onto "1px" 148 148 PASS cursor (type: discrete) has testAccumulation function 149 149 PASS cursor: "wait" onto "pointer" -
trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-001-expected.txt
r269812 r274147 117 117 PASS column-count (type: discrete) has testAddition function 118 118 PASS column-count: "10" onto "auto" 119 FAIL column-count: "auto" onto "10" assert_equals: The value should be auto at 0ms expected "auto" but got "0"119 PASS column-count: "auto" onto "10" 120 120 PASS column-gap (type: length) has testAddition function 121 121 FAIL column-gap: length assert_equals: The value should be 20px at 0ms expected "20px" but got "10px" … … 145 145 PASS column-width (type: discrete) has testAddition function 146 146 PASS column-width: "1px" onto "auto" 147 FAIL column-width: "auto" onto "1px" assert_equals: The value should be auto at 0ms expected "auto" but got "0px"147 PASS column-width: "auto" onto "1px" 148 148 PASS cursor (type: discrete) has testAddition function 149 149 PASS cursor: "wait" onto "pointer" -
trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-001-expected.txt
r274038 r274147 137 137 PASS column-count supports animating as a positive integer 138 138 PASS column-count (type: discrete) has testInterpolation function 139 FAIL column-count uses discrete animation when animating between "auto" and "10" with linear easing assert_equals: The value should be auto at 0ms expected "auto" but got "0" 140 FAIL column-count uses discrete animation when animating between "auto" and "10" with effect easing assert_equals: The value should be auto at 0ms expected "auto" but got "0" 141 FAIL column-count uses discrete animation when animating between "auto" and "10" with keyframe easing assert_equals: The value should be auto at 0ms expected "auto" but got "0" 139 PASS column-count uses discrete animation when animating between "auto" and "10" with linear easing 140 PASS column-count uses discrete animation when animating between "auto" and "10" with effect easing 141 PASS column-count uses discrete animation when animating between "auto" and "10" with keyframe easing 142 142 PASS column-gap (type: length) has testInterpolation function 143 143 PASS column-gap supports animating as a length … … 169 169 PASS column-width supports animating as a length of rem 170 170 PASS column-width (type: discrete) has testInterpolation function 171 FAIL column-width uses discrete animation when animating between "auto" and "1px" with linear easing assert_equals: The value should be auto at 0ms expected "auto" but got "0px" 172 FAIL column-width uses discrete animation when animating between "auto" and "1px" with effect easing assert_equals: The value should be auto at 0ms expected "auto" but got "0px" 173 FAIL column-width uses discrete animation when animating between "auto" and "1px" with keyframe easing assert_equals: The value should be auto at 0ms expected "auto" but got "0px" 171 PASS column-width uses discrete animation when animating between "auto" and "1px" with linear easing 172 PASS column-width uses discrete animation when animating between "auto" and "1px" with effect easing 173 PASS column-width uses discrete animation when animating between "auto" and "1px" with keyframe easing 174 174 PASS cursor (type: discrete) has testInterpolation function 175 175 PASS cursor uses discrete animation when animating between "pointer" and "wait" with linear easing -
trunk/Source/WebCore/ChangeLog
r274146 r274147 1 2021-03-09 Antoine Quint <graouts@webkit.org> 2 3 Correctly blend column-width and column-count CSS properties 4 https://bugs.webkit.org/show_bug.cgi?id=222969 5 6 Reviewed by Antti Koivisto. 7 8 We used to simply blend column-width and column-count as float and unsigned short properties 9 with no minimum value and no accounting for the "auto" value which only blends discretely. 10 11 We generalize some of the code added for the z-index wrapper by creating a new AutoPropertyWrapper 12 which takes into two method arguments for the hasAuto() and setHasAuto() methods on RenderStyle 13 and an optional minimum value, which we set to 0 for column-width, 1 for column-count and don't 14 specify for z-index since it doesn't have a minimum value. 15 16 * animation/CSSPropertyAnimation.cpp: 17 (WebCore::AutoPropertyWrapper::AutoPropertyWrapper): 18 (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap): 19 (WebCore::ZIndexPropertyWrapper::ZIndexPropertyWrapper): Deleted. 20 1 21 2021-03-09 Carlos Garcia Campos <cgarcia@igalia.com> 2 22 -
trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp
r274142 r274147 1699 1699 }; 1700 1700 1701 class ZIndexPropertyWrapper : public PropertyWrapper<int> { 1702 WTF_MAKE_FAST_ALLOCATED; 1703 public: 1704 ZIndexPropertyWrapper() 1705 : PropertyWrapper<int>(CSSPropertyZIndex, &RenderStyle::specifiedZIndex, &RenderStyle::setSpecifiedZIndex) 1701 template <typename T> 1702 class AutoPropertyWrapper : public PropertyWrapper<T> { 1703 WTF_MAKE_FAST_ALLOCATED; 1704 public: 1705 AutoPropertyWrapper(CSSPropertyID prop, T (RenderStyle::*getter)() const, void (RenderStyle::*setter)(T), bool (RenderStyle::*autoGetter)() const, void (RenderStyle::*autoSetter)(), Optional<T> minValue = WTF::nullopt) 1706 : PropertyWrapper<T>(prop, getter, setter) 1707 , m_autoGetter(autoGetter) 1708 , m_autoSetter(autoSetter) 1709 , m_minValue(minValue) 1706 1710 { 1707 1711 } … … 1709 1713 bool canInterpolate(const RenderStyle* from, const RenderStyle* to) const override 1710 1714 { 1711 return ! from->hasAutoSpecifiedZIndex() && !to->hasAutoSpecifiedZIndex();1715 return !(from->*m_autoGetter)() && !(to->*m_autoGetter)(); 1712 1716 } 1713 1717 1714 1718 void blend(const CSSPropertyBlendingClient* anim, RenderStyle* dst, const RenderStyle* from, const RenderStyle* to, double progress) const override 1715 1719 { 1716 PropertyWrapper::blend(anim, dst, from, to, progress); 1720 auto blendedValue = blendFunc(anim, this->value(from), this->value(to), progress); 1721 if (this->m_minValue) 1722 blendedValue = blendedValue > *this->m_minValue ? blendedValue : *this->m_minValue; 1723 (dst->*this->m_setter)(blendedValue); 1724 1717 1725 if (canInterpolate(from, to)) 1718 1726 return; … … 1720 1728 ASSERT(!progress || progress == 1.0); 1721 1729 if (!progress) { 1722 if ( from->hasAutoSpecifiedZIndex())1723 dst->setHasAutoSpecifiedZIndex();1730 if ((from->*m_autoGetter)()) 1731 (dst->*m_autoSetter)(); 1724 1732 } else { 1725 if ( to->hasAutoSpecifiedZIndex())1726 dst->setHasAutoSpecifiedZIndex();1733 if ((to->*m_autoGetter)()) 1734 (dst->*m_autoSetter)(); 1727 1735 } 1728 1736 } 1737 1738 private: 1739 bool (RenderStyle::*m_autoGetter)() const; 1740 void (RenderStyle::*m_autoSetter)(); 1741 Optional<T> m_minValue; 1729 1742 }; 1730 1743 … … 1857 1870 new LengthVariantPropertyWrapper<GapLength>(CSSPropertyColumnGap, &RenderStyle::columnGap, &RenderStyle::setColumnGap), 1858 1871 new LengthVariantPropertyWrapper<GapLength>(CSSPropertyRowGap, &RenderStyle::rowGap, &RenderStyle::setRowGap), 1859 new PropertyWrapper<unsigned short>(CSSPropertyColumnCount, &RenderStyle::columnCount, &RenderStyle::setColumnCount),1860 new NonNegativeFloatPropertyWrapper(CSSPropertyColumnWidth, &RenderStyle::columnWidth, &RenderStyle::setColumnWidth),1872 new AutoPropertyWrapper<unsigned short>(CSSPropertyColumnCount, &RenderStyle::columnCount, &RenderStyle::setColumnCount, &RenderStyle::hasAutoColumnCount, &RenderStyle::setHasAutoColumnCount, 1), 1873 new AutoPropertyWrapper<float>(CSSPropertyColumnWidth, &RenderStyle::columnWidth, &RenderStyle::setColumnWidth, &RenderStyle::hasAutoColumnWidth, &RenderStyle::setHasAutoColumnWidth, 0), 1861 1874 new PropertyWrapper<float>(CSSPropertyWebkitBorderHorizontalSpacing, &RenderStyle::horizontalBorderSpacing, &RenderStyle::setHorizontalBorderSpacing), 1862 1875 new PropertyWrapper<float>(CSSPropertyWebkitBorderVerticalSpacing, &RenderStyle::verticalBorderSpacing, &RenderStyle::setVerticalBorderSpacing), 1863 new ZIndexPropertyWrapper,1876 new AutoPropertyWrapper<int>(CSSPropertyZIndex, &RenderStyle::specifiedZIndex, &RenderStyle::setSpecifiedZIndex, &RenderStyle::hasAutoSpecifiedZIndex, &RenderStyle::setHasAutoSpecifiedZIndex), 1864 1877 new PropertyWrapper<unsigned short>(CSSPropertyOrphans, &RenderStyle::orphans, &RenderStyle::setOrphans), 1865 1878 new PropertyWrapper<unsigned short>(CSSPropertyWidows, &RenderStyle::widows, &RenderStyle::setWidows),
Note: See TracChangeset
for help on using the changeset viewer.