Changeset 203380 in webkit
- Timestamp:
- Jul 18, 2016, 4:39:38 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r203379 r203380 1 2016-07-18 Dean Jackson <dino@apple.com> 2 3 REGRESSION (r202950): Image zoom animations are broken at medium.com (159861) 4 https://bugs.webkit.org/show_bug.cgi?id=159906 5 <rdar://problem/27391725> 6 7 Reviewed by Simon Fraser. 8 9 The fix for webkit.org/b/157569 in r200769 broke AMP pages. 10 The followup fix for webkit.org/b/159450 in r202950 broke Medium pages. 11 12 Revert them both until we have better testing. 13 14 * animations/fill-mode-forwards-zero-duration.html: 15 * animations/play-state-start-paused.html: 16 * animations/script-tests/spring-parsing.js: 17 (testSpring): 18 * animations/spring-parsing-expected.txt: 19 * animations/unprefixed-properties-expected.txt: 20 * animations/unprefixed-properties.html: 21 * fast/css/prefixed-unprefixed-variant-style-declaration-expected.txt: 22 * fast/css/shorthand-omitted-initial-value-overrides-shorthand-expected.txt: 23 1 24 2016-07-18 Andreas Kling <akling@apple.com> 2 25 -
trunk/LayoutTests/animations/fill-mode-forwards-zero-duration.html
r200769 r203380 10 10 width: 100px; 11 11 background-color: blue; 12 animation: anim1 0 2s linear forwards; 12 animation-fill-mode: forwards; 13 animation: anim1 0 2s linear; 13 14 } 14 15 @keyframes anim1 { -
trunk/LayoutTests/animations/play-state-start-paused.html
r200769 r203380 14 14 height: 100px; 15 15 background-color: green; 16 animation-delay: -0.5s; 17 animation-play-state: paused; 16 18 } 17 19 … … 22 24 23 25 .mover { 24 animation: move 1s linear -0.5s paused;26 animation: move 1s linear; 25 27 } 26 28 27 29 .slider { 28 animation: slide 1s linear -0.5s paused;30 animation: slide 1s linear; 29 31 } 30 32 -
trunk/LayoutTests/animations/script-tests/spring-parsing.js
r201781 r203380 30 30 } 31 31 32 shouldBe("declaration.length", " 1");32 shouldBe("declaration.length", "2"); 33 33 shouldBe("declaration.getPropertyValue('transition-timing-function')", "'" + expectedValue + "'"); 34 34 -
trunk/LayoutTests/animations/spring-parsing-expected.txt
r201759 r203380 10 10 Basic : spring(1 100 10 0) 11 11 PASS cssRule.type is 1 12 PASS declaration.length is 112 PASS declaration.length is 2 13 13 PASS declaration.getPropertyValue('transition-timing-function') is 'spring(1 100 10 0)' 14 14 PASS propertyValue.cssText is 'spring(1 100 10 0)' … … 16 16 Negative Velocity : spring(1 100 10 -10) 17 17 PASS cssRule.type is 1 18 PASS declaration.length is 118 PASS declaration.length is 2 19 19 PASS declaration.getPropertyValue('transition-timing-function') is 'spring(1 100 10 -10)' 20 20 PASS propertyValue.cssText is 'spring(1 100 10 -10)' … … 22 22 Positive Velocity : spring(1 100 10 10) 23 23 PASS cssRule.type is 1 24 PASS declaration.length is 124 PASS declaration.length is 2 25 25 PASS declaration.getPropertyValue('transition-timing-function') is 'spring(1 100 10 10)' 26 26 PASS propertyValue.cssText is 'spring(1 100 10 10)' … … 28 28 Zero Damping : spring(1 100 0 10) 29 29 PASS cssRule.type is 1 30 PASS declaration.length is 130 PASS declaration.length is 2 31 31 PASS declaration.getPropertyValue('transition-timing-function') is 'spring(1 100 0 10)' 32 32 PASS propertyValue.cssText is 'spring(1 100 0 10)' … … 34 34 Minimum Values : spring(1 1 0 -999999) 35 35 PASS cssRule.type is 1 36 PASS declaration.length is 136 PASS declaration.length is 2 37 37 PASS declaration.getPropertyValue('transition-timing-function') is 'spring(1 1 0 -999999)' 38 38 PASS propertyValue.cssText is 'spring(1 1 0 -999999)' … … 40 40 Floating Point Values : spring(1.5 2.3 3.7 -1.8) 41 41 PASS cssRule.type is 1 42 PASS declaration.length is 142 PASS declaration.length is 2 43 43 PASS declaration.getPropertyValue('transition-timing-function') is 'spring(1.5 2.3 3.7 -1.8)' 44 44 PASS propertyValue.cssText is 'spring(1.5 2.3 3.7 -1.8)' -
trunk/LayoutTests/animations/unprefixed-properties-expected.txt
r200769 r203380 7 7 Parsing - Basic animation-name : waldo 8 8 PASS cssRule.type is 1 9 PASS declaration.length is 19 PASS declaration.length is 2 10 10 PASS declaration.getPropertyValue('animation-name') is 'waldo' 11 11 PASS declaration.getPropertyValue('-webkit-animation-name') is 'waldo' … … 13 13 Parsing - Multiple animation-names : waldo, wally 14 14 PASS cssRule.type is 1 15 PASS declaration.length is 115 PASS declaration.length is 2 16 16 PASS declaration.getPropertyValue('animation-name') is 'waldo, wally' 17 17 PASS declaration.getPropertyValue('-webkit-animation-name') is 'waldo, wally' … … 21 21 Parsing - Basic animation-duration : 5s 22 22 PASS cssRule.type is 1 23 PASS declaration.length is 123 PASS declaration.length is 2 24 24 PASS declaration.getPropertyValue('animation-duration') is '5s' 25 25 PASS declaration.getPropertyValue('-webkit-animation-duration') is '5s' … … 27 27 Parsing - Multiple animation-durations : 10s, 20ms 28 28 PASS cssRule.type is 1 29 PASS declaration.length is 129 PASS declaration.length is 2 30 30 PASS declaration.getPropertyValue('animation-duration') is '10s, 20ms' 31 31 PASS declaration.getPropertyValue('-webkit-animation-duration') is '10s, 20ms' … … 35 35 Parsing - Basic animation-delay : 5s 36 36 PASS cssRule.type is 1 37 PASS declaration.length is 137 PASS declaration.length is 2 38 38 PASS declaration.getPropertyValue('animation-delay') is '5s' 39 39 PASS declaration.getPropertyValue('-webkit-animation-delay') is '5s' … … 41 41 Parsing - Multiple animation-delays : 10s, 20ms 42 42 PASS cssRule.type is 1 43 PASS declaration.length is 143 PASS declaration.length is 2 44 44 PASS declaration.getPropertyValue('animation-delay') is '10s, 20ms' 45 45 PASS declaration.getPropertyValue('-webkit-animation-delay') is '10s, 20ms' … … 49 49 Parsing - Basic animation-timing-function : ease-in-out 50 50 PASS cssRule.type is 1 51 PASS declaration.length is 151 PASS declaration.length is 2 52 52 PASS declaration.getPropertyValue('animation-timing-function') is 'ease-in-out' 53 53 PASS declaration.getPropertyValue('-webkit-animation-timing-function') is 'ease-in-out' … … 55 55 Parsing - animation-timing-function with bezier : cubic-bezier(0.2, 0.3, 0.4, 0.5) 56 56 PASS cssRule.type is 1 57 PASS declaration.length is 157 PASS declaration.length is 2 58 58 PASS declaration.getPropertyValue('animation-timing-function') is 'cubic-bezier(0.2, 0.3, 0.4, 0.5)' 59 59 PASS declaration.getPropertyValue('-webkit-animation-timing-function') is 'cubic-bezier(0.2, 0.3, 0.4, 0.5)' … … 61 61 Parsing - Multiple animation-timing-functions : ease-in, ease-out 62 62 PASS cssRule.type is 1 63 PASS declaration.length is 163 PASS declaration.length is 2 64 64 PASS declaration.getPropertyValue('animation-timing-function') is 'ease-in, ease-out' 65 65 PASS declaration.getPropertyValue('-webkit-animation-timing-function') is 'ease-in, ease-out' … … 69 69 Parsing - Basic animation-iteration-count : 4 70 70 PASS cssRule.type is 1 71 PASS declaration.length is 171 PASS declaration.length is 2 72 72 PASS declaration.getPropertyValue('animation-iteration-count') is '4' 73 73 PASS declaration.getPropertyValue('-webkit-animation-iteration-count') is '4' … … 75 75 Parsing - animation-iteration-count with keyword : infinite 76 76 PASS cssRule.type is 1 77 PASS declaration.length is 177 PASS declaration.length is 2 78 78 PASS declaration.getPropertyValue('animation-iteration-count') is 'infinite' 79 79 PASS declaration.getPropertyValue('-webkit-animation-iteration-count') is 'infinite' … … 81 81 Parsing - Multiple animation-iteration-counts : 2, infinite, 4 82 82 PASS cssRule.type is 1 83 PASS declaration.length is 183 PASS declaration.length is 2 84 84 PASS declaration.getPropertyValue('animation-iteration-count') is '2, infinite, 4' 85 85 PASS declaration.getPropertyValue('-webkit-animation-iteration-count') is '2, infinite, 4' … … 90 90 Parsing - Normal animation-direction : normal 91 91 PASS cssRule.type is 1 92 PASS declaration.length is 192 PASS declaration.length is 2 93 93 PASS declaration.getPropertyValue('animation-direction') is 'normal' 94 94 PASS declaration.getPropertyValue('-webkit-animation-direction') is 'normal' … … 96 96 Parsing - Alternate animation-direction : alternate 97 97 PASS cssRule.type is 1 98 PASS declaration.length is 198 PASS declaration.length is 2 99 99 PASS declaration.getPropertyValue('animation-direction') is 'alternate' 100 100 PASS declaration.getPropertyValue('-webkit-animation-direction') is 'alternate' … … 102 102 Parsing - Reverse animation-direction : reverse 103 103 PASS cssRule.type is 1 104 PASS declaration.length is 1104 PASS declaration.length is 2 105 105 PASS declaration.getPropertyValue('animation-direction') is 'reverse' 106 106 PASS declaration.getPropertyValue('-webkit-animation-direction') is 'reverse' … … 108 108 Parsing - Alternate Reverse animation-direction : alternate-reverse 109 109 PASS cssRule.type is 1 110 PASS declaration.length is 1110 PASS declaration.length is 2 111 111 PASS declaration.getPropertyValue('animation-direction') is 'alternate-reverse' 112 112 PASS declaration.getPropertyValue('-webkit-animation-direction') is 'alternate-reverse' … … 114 114 Parsing - Multiple animation-directions : alternate, alternate, normal 115 115 PASS cssRule.type is 1 116 PASS declaration.length is 1116 PASS declaration.length is 2 117 117 PASS declaration.getPropertyValue('animation-direction') is 'alternate, alternate, normal' 118 118 PASS declaration.getPropertyValue('-webkit-animation-direction') is 'alternate, alternate, normal' … … 123 123 Parsing - None animation-fill-mode : none 124 124 PASS cssRule.type is 1 125 PASS declaration.length is 1125 PASS declaration.length is 2 126 126 PASS declaration.getPropertyValue('animation-fill-mode') is 'none' 127 127 PASS declaration.getPropertyValue('-webkit-animation-fill-mode') is 'none' … … 129 129 Parsing - Forwards animation-fill-mode : forwards 130 130 PASS cssRule.type is 1 131 PASS declaration.length is 1131 PASS declaration.length is 2 132 132 PASS declaration.getPropertyValue('animation-fill-mode') is 'forwards' 133 133 PASS declaration.getPropertyValue('-webkit-animation-fill-mode') is 'forwards' … … 135 135 Parsing - Backwards animation-fill-mode : backwards 136 136 PASS cssRule.type is 1 137 PASS declaration.length is 1137 PASS declaration.length is 2 138 138 PASS declaration.getPropertyValue('animation-fill-mode') is 'backwards' 139 139 PASS declaration.getPropertyValue('-webkit-animation-fill-mode') is 'backwards' … … 141 141 Parsing - Both animation-fill-mode : both 142 142 PASS cssRule.type is 1 143 PASS declaration.length is 1143 PASS declaration.length is 2 144 144 PASS declaration.getPropertyValue('animation-fill-mode') is 'both' 145 145 PASS declaration.getPropertyValue('-webkit-animation-fill-mode') is 'both' … … 147 147 Parsing - Multiple animation-fill-modes : none, forwards, backwards, both 148 148 PASS cssRule.type is 1 149 PASS declaration.length is 1149 PASS declaration.length is 2 150 150 PASS declaration.getPropertyValue('animation-fill-mode') is 'none, forwards, backwards, both' 151 151 PASS declaration.getPropertyValue('-webkit-animation-fill-mode') is 'none, forwards, backwards, both' -
trunk/LayoutTests/animations/unprefixed-properties.html
r200769 r203380 28 28 29 29 declaration = cssRule.style; 30 shouldBe("declaration.length", " 1");30 shouldBe("declaration.length", "2"); // We set both the prefixed and unprefixed version. 31 31 shouldBe("declaration.getPropertyValue('" + property + "')", "'" + value + "'"); 32 32 shouldBe("declaration.getPropertyValue('-webkit-" + property + "')", "'" + value + "'"); -
trunk/LayoutTests/fast/css/prefixed-unprefixed-variant-style-declaration-expected.txt
r200769 r203380 17 17 PASS getComputedStyle(element).getPropertyCSSValue("transition-property") 18 18 PASS getComputedStyle(element).getPropertyCSSValue("-webkit-transition-property") 19 PASS element.style.cssText 19 FAIL expected element.style.cssText to be "transition-property: width;" but got "transition-property: width; -webkit-transition-property: width;" 20 20 21 21 Setting "-webkit-transition-property" to "width" … … 32 32 PASS getComputedStyle(element).getPropertyCSSValue("transition-property") 33 33 PASS getComputedStyle(element).getPropertyCSSValue("-webkit-transition-property") 34 PASS element.style.cssText 34 FAIL expected element.style.cssText to be "-webkit-transition-property: width;" but got "-webkit-transition-property: width; transition-property: width;" 35 35 36 36 Setting "transition-duration" to "1s" … … 47 47 PASS getComputedStyle(element).getPropertyCSSValue("transition-duration") 48 48 PASS getComputedStyle(element).getPropertyCSSValue("-webkit-transition-duration") 49 PASS element.style.cssText 49 FAIL expected element.style.cssText to be "transition-duration: 1s;" but got "transition-duration: 1s; -webkit-transition-duration: 1s;" 50 50 51 51 Setting "-webkit-transition-duration" to "1s" … … 62 62 PASS getComputedStyle(element).getPropertyCSSValue("transition-duration") 63 63 PASS getComputedStyle(element).getPropertyCSSValue("-webkit-transition-duration") 64 PASS element.style.cssText 64 FAIL expected element.style.cssText to be "-webkit-transition-duration: 1s;" but got "-webkit-transition-duration: 1s; transition-duration: 1s;" 65 65 66 66 Setting "transition-timing-function" to "linear" … … 77 77 PASS getComputedStyle(element).getPropertyCSSValue("transition-timing-function") 78 78 PASS getComputedStyle(element).getPropertyCSSValue("-webkit-transition-timing-function") 79 PASS element.style.cssText 79 FAIL expected element.style.cssText to be "transition-timing-function: linear;" but got "transition-timing-function: linear; -webkit-transition-timing-function: linear;" 80 80 81 81 Setting "-webkit-transition-timing-function" to "linear" … … 92 92 PASS getComputedStyle(element).getPropertyCSSValue("transition-timing-function") 93 93 PASS getComputedStyle(element).getPropertyCSSValue("-webkit-transition-timing-function") 94 PASS element.style.cssText 94 FAIL expected element.style.cssText to be "-webkit-transition-timing-function: linear;" but got "-webkit-transition-timing-function: linear; transition-timing-function: linear;" 95 95 96 96 Setting "transition-delay" to "0.5s" … … 107 107 PASS getComputedStyle(element).getPropertyCSSValue("transition-delay") 108 108 PASS getComputedStyle(element).getPropertyCSSValue("-webkit-transition-delay") 109 PASS element.style.cssText 109 FAIL expected element.style.cssText to be "transition-delay: 0.5s;" but got "transition-delay: 0.5s; -webkit-transition-delay: 0.5s;" 110 110 111 111 Setting "-webkit-transition-delay" to "0.5s" … … 122 122 PASS getComputedStyle(element).getPropertyCSSValue("transition-delay") 123 123 PASS getComputedStyle(element).getPropertyCSSValue("-webkit-transition-delay") 124 PASS element.style.cssText 124 FAIL expected element.style.cssText to be "-webkit-transition-delay: 0.5s;" but got "-webkit-transition-delay: 0.5s; transition-delay: 0.5s;" 125 125 126 126 Setting "animation-name" to "foo" … … 137 137 PASS getComputedStyle(element).getPropertyCSSValue("animation-name") 138 138 PASS getComputedStyle(element).getPropertyCSSValue("-webkit-animation-name") 139 PASS element.style.cssText 139 FAIL expected element.style.cssText to be "animation-name: foo;" but got "animation-name: foo; -webkit-animation-name: foo;" 140 140 141 141 Setting "-webkit-animation-name" to "foo" … … 152 152 PASS getComputedStyle(element).getPropertyCSSValue("animation-name") 153 153 PASS getComputedStyle(element).getPropertyCSSValue("-webkit-animation-name") 154 PASS element.style.cssText 154 FAIL expected element.style.cssText to be "-webkit-animation-name: foo;" but got "-webkit-animation-name: foo; animation-name: foo;" 155 155 156 156 Setting "animation-duration" to "1s" … … 167 167 PASS getComputedStyle(element).getPropertyCSSValue("animation-duration") 168 168 PASS getComputedStyle(element).getPropertyCSSValue("-webkit-animation-duration") 169 PASS element.style.cssText 169 FAIL expected element.style.cssText to be "animation-duration: 1s;" but got "animation-duration: 1s; -webkit-animation-duration: 1s;" 170 170 171 171 Setting "-webkit-animation-duration" to "1s" … … 182 182 PASS getComputedStyle(element).getPropertyCSSValue("animation-duration") 183 183 PASS getComputedStyle(element).getPropertyCSSValue("-webkit-animation-duration") 184 PASS element.style.cssText 184 FAIL expected element.style.cssText to be "-webkit-animation-duration: 1s;" but got "-webkit-animation-duration: 1s; animation-duration: 1s;" 185 185 186 186 Setting "animation-timing-function" to "linear" … … 197 197 PASS getComputedStyle(element).getPropertyCSSValue("animation-timing-function") 198 198 PASS getComputedStyle(element).getPropertyCSSValue("-webkit-animation-timing-function") 199 PASS element.style.cssText 199 FAIL expected element.style.cssText to be "animation-timing-function: linear;" but got "animation-timing-function: linear; -webkit-animation-timing-function: linear;" 200 200 201 201 Setting "-webkit-animation-timing-function" to "linear" … … 212 212 PASS getComputedStyle(element).getPropertyCSSValue("animation-timing-function") 213 213 PASS getComputedStyle(element).getPropertyCSSValue("-webkit-animation-timing-function") 214 PASS element.style.cssText 214 FAIL expected element.style.cssText to be "-webkit-animation-timing-function: linear;" but got "-webkit-animation-timing-function: linear; animation-timing-function: linear;" 215 215 216 216 Setting "animation-iteration-count" to "5" … … 227 227 PASS getComputedStyle(element).getPropertyCSSValue("animation-iteration-count") 228 228 PASS getComputedStyle(element).getPropertyCSSValue("-webkit-animation-iteration-count") 229 PASS element.style.cssText 229 FAIL expected element.style.cssText to be "animation-iteration-count: 5;" but got "animation-iteration-count: 5; -webkit-animation-iteration-count: 5;" 230 230 231 231 Setting "-webkit-animation-iteration-count" to "5" … … 242 242 PASS getComputedStyle(element).getPropertyCSSValue("animation-iteration-count") 243 243 PASS getComputedStyle(element).getPropertyCSSValue("-webkit-animation-iteration-count") 244 PASS element.style.cssText 244 FAIL expected element.style.cssText to be "-webkit-animation-iteration-count: 5;" but got "-webkit-animation-iteration-count: 5; animation-iteration-count: 5;" 245 245 246 246 Setting "animation-direction" to "reverse" … … 257 257 PASS getComputedStyle(element).getPropertyCSSValue("animation-direction") 258 258 PASS getComputedStyle(element).getPropertyCSSValue("-webkit-animation-direction") 259 PASS element.style.cssText 259 FAIL expected element.style.cssText to be "animation-direction: reverse;" but got "animation-direction: reverse; -webkit-animation-direction: reverse;" 260 260 261 261 Setting "-webkit-animation-direction" to "reverse" … … 272 272 PASS getComputedStyle(element).getPropertyCSSValue("animation-direction") 273 273 PASS getComputedStyle(element).getPropertyCSSValue("-webkit-animation-direction") 274 PASS element.style.cssText 274 FAIL expected element.style.cssText to be "-webkit-animation-direction: reverse;" but got "-webkit-animation-direction: reverse; animation-direction: reverse;" 275 275 276 276 Setting "animation-play-state" to "paused" … … 287 287 PASS getComputedStyle(element).getPropertyCSSValue("animation-play-state") 288 288 PASS getComputedStyle(element).getPropertyCSSValue("-webkit-animation-play-state") 289 PASS element.style.cssText 289 FAIL expected element.style.cssText to be "animation-play-state: paused;" but got "animation-play-state: paused; -webkit-animation-play-state: paused;" 290 290 291 291 Setting "-webkit-animation-play-state" to "paused" … … 302 302 PASS getComputedStyle(element).getPropertyCSSValue("animation-play-state") 303 303 PASS getComputedStyle(element).getPropertyCSSValue("-webkit-animation-play-state") 304 PASS element.style.cssText 304 FAIL expected element.style.cssText to be "-webkit-animation-play-state: paused;" but got "-webkit-animation-play-state: paused; animation-play-state: paused;" 305 305 306 306 Setting "animation-delay" to "0.5s" … … 317 317 PASS getComputedStyle(element).getPropertyCSSValue("animation-delay") 318 318 PASS getComputedStyle(element).getPropertyCSSValue("-webkit-animation-delay") 319 PASS element.style.cssText 319 FAIL expected element.style.cssText to be "animation-delay: 0.5s;" but got "animation-delay: 0.5s; -webkit-animation-delay: 0.5s;" 320 320 321 321 Setting "-webkit-animation-delay" to "0.5s" … … 332 332 PASS getComputedStyle(element).getPropertyCSSValue("animation-delay") 333 333 PASS getComputedStyle(element).getPropertyCSSValue("-webkit-animation-delay") 334 PASS element.style.cssText 334 FAIL expected element.style.cssText to be "-webkit-animation-delay: 0.5s;" but got "-webkit-animation-delay: 0.5s; animation-delay: 0.5s;" 335 335 336 336 Setting "animation-fill-mode" to "forwards" … … 347 347 PASS getComputedStyle(element).getPropertyCSSValue("animation-fill-mode") 348 348 PASS getComputedStyle(element).getPropertyCSSValue("-webkit-animation-fill-mode") 349 PASS element.style.cssText 349 FAIL expected element.style.cssText to be "animation-fill-mode: forwards;" but got "animation-fill-mode: forwards; -webkit-animation-fill-mode: forwards;" 350 350 351 351 Setting "-webkit-animation-fill-mode" to "forwards" … … 362 362 PASS getComputedStyle(element).getPropertyCSSValue("animation-fill-mode") 363 363 PASS getComputedStyle(element).getPropertyCSSValue("-webkit-animation-fill-mode") 364 PASS element.style.cssText 364 FAIL expected element.style.cssText to be "-webkit-animation-fill-mode: forwards;" but got "-webkit-animation-fill-mode: forwards; animation-fill-mode: forwards;" 365 365 366 366 PASS successfullyParsed is true -
trunk/LayoutTests/fast/css/shorthand-omitted-initial-value-overrides-shorthand-expected.txt
r202950 r203380 17 17 18 18 Animation properties 19 PASS animation-name 20 PASS animation-duration 21 PASS animation-timing-function 22 PASS animation-iteration-count 23 PASS animation-direction 24 PASS animation-play-state 25 PASS animation-delay 26 PASS animation-fill-mode 19 FAIL expected that setting "animation-name: foo; animation: 1s;" would compute animation-name to "none" but got "foo" 20 FAIL expected that setting "animation-duration: 1s; animation: none;" would compute animation-duration to "0s" but got "1s" 21 FAIL expected that setting "animation-timing-function: linear; animation: none;" would compute animation-timing-function to "ease" but got "linear" 22 FAIL expected that setting "animation-iteration-count: 5; animation: none;" would compute animation-iteration-count to "1" but got "5" 23 FAIL expected that setting "animation-direction: reverse; animation: none;" would compute animation-direction to "normal" but got "reverse" 24 FAIL expected that setting "animation-play-state: paused; animation: none;" would compute animation-play-state to "running" but got "paused" 25 FAIL expected that setting "animation-delay: 1s; animation: none;" would compute animation-delay to "0s" but got "1s" 26 FAIL expected that setting "animation-fill-mode: forwards; animation: none;" would compute animation-fill-mode to "none" but got "forwards" 27 27 28 28 Prefixed animation properties 29 29 PASS -webkit-animation-name 30 PASS animation-name 30 FAIL expected that setting "-webkit-animation-name: foo; animation: none;" would compute animation-name to "none" but got "foo" 31 31 PASS -webkit-animation-name 32 PASS animation-name 32 FAIL expected that setting "animation-name: foo; animation: none;" would compute animation-name to "none" but got "foo" 33 33 34 34 PASS successfullyParsed is true -
trunk/Source/WebCore/ChangeLog
r203379 r203380 1 2016-07-18 Dean Jackson <dino@apple.com> 2 3 REGRESSION (r202950): Image zoom animations are broken at medium.com (159861) 4 https://bugs.webkit.org/show_bug.cgi?id=159906 5 <rdar://problem/27391725> 6 7 Reviewed by Simon Fraser. 8 9 The fix for webkit.org/b/157569 in r200769 broke AMP pages. 10 The followup fix for webkit.org/b/159450 in r202950 broke Medium pages. 11 12 Revert them both until we have better testing. 13 14 * css/CSSParser.cpp: 15 (WebCore::CSSParser::addPropertyWithPrefixingVariant): 16 (WebCore::CSSParser::parseValue): 17 (WebCore::CSSParser::parseAnimationShorthand): 18 (WebCore::CSSParser::parseTransitionShorthand): Deleted. 19 * css/CSSPropertyNames.in: 20 * css/PropertySetCSSStyleDeclaration.cpp: 21 (WebCore::PropertySetCSSStyleDeclaration::getPropertyCSSValue): 22 (WebCore::PropertySetCSSStyleDeclaration::getPropertyValue): 23 (WebCore::PropertySetCSSStyleDeclaration::getPropertyCSSValueInternal): 24 (WebCore::PropertySetCSSStyleDeclaration::getPropertyValueInternal): 25 * css/StyleProperties.cpp: 26 (WebCore::MutableStyleProperties::removeShorthandProperty): 27 (WebCore::MutableStyleProperties::removeProperty): 28 (WebCore::MutableStyleProperties::removePrefixedOrUnprefixedProperty): 29 (WebCore::MutableStyleProperties::setProperty): 30 (WebCore::getIndexInShorthandVectorForPrefixingVariant): 31 (WebCore::MutableStyleProperties::appendPrefixingVariantProperty): 32 (WebCore::MutableStyleProperties::setPrefixingVariantProperty): 33 (WebCore::StyleProperties::asText): Deleted. 34 * css/StyleProperties.h: 35 1 36 2016-07-18 Andreas Kling <akling@apple.com> 2 37 -
trunk/Source/WebCore/css/CSSParser.cpp
r203269 r203380 1606 1606 } 1607 1607 1608 void CSSParser::addPropertyWithPrefixingVariant(CSSPropertyID propId, RefPtr<CSSValue>&& value, bool important, bool implicit) 1609 { 1610 addProperty(propId, value.copyRef(), important, implicit); 1611 1612 CSSPropertyID prefixingVariant = prefixingVariantForPropertyId(propId); 1613 if (prefixingVariant == propId) 1614 return; 1615 1616 if (m_currentShorthand) { 1617 // We can't use ShorthandScope here as we can already be inside one (e.g we are parsing CSSTransition). 1618 m_currentShorthand = prefixingVariantForPropertyId(m_currentShorthand); 1619 addProperty(prefixingVariant, WTFMove(value), important, implicit); 1620 m_currentShorthand = prefixingVariantForPropertyId(m_currentShorthand); 1621 } else 1622 addProperty(prefixingVariant, WTFMove(value), important, implicit); 1623 } 1624 1608 1625 void CSSParser::addProperty(CSSPropertyID propId, RefPtr<CSSValue>&& value, bool important, bool implicit) 1609 1626 { … … 2723 2740 AnimationParseContext context; 2724 2741 if (parseAnimationProperty(propId, val, context)) { 2725 addProperty (propId, WTFMove(val), important);2742 addPropertyWithPrefixingVariant(propId, WTFMove(val), important); 2726 2743 return true; 2727 2744 } … … 3817 3834 } 3818 3835 3819 // Fill in any remaining properties with the initial value.3820 3836 for (i = 0; i < numProperties; ++i) { 3837 // If we didn't find the property, set an intial value. 3821 3838 if (!parsedProperty[i]) 3822 3839 addAnimationValue(values[i], cssValuePool.createImplicitInitialValue()); 3823 } 3824 3825 // Now add all of the properties we found. 3826 // In this case we have to explicitly set the variant form as well, 3827 // to make sure that a shorthand clears all existing prefixed and 3828 // unprefixed values. 3829 for (i = 0; i < numProperties; ++i) 3830 addPropertyWithPrefixingVariant(shorthand.properties()[i], WTFMove(values[i]), important); 3840 3841 addProperty(shorthand.properties()[i], WTFMove(values[i]), important); 3842 } 3831 3843 3832 3844 return true; 3833 3845 } 3834 3835 void CSSParser::addPropertyWithPrefixingVariant(CSSPropertyID propId, RefPtr<CSSValue>&& value, bool important, bool implicit)3836 {3837 addProperty(propId, value.copyRef(), important, implicit);3838 3839 CSSPropertyID prefixingVariant = prefixingVariantForPropertyId(propId);3840 if (prefixingVariant == propId)3841 return;3842 3843 if (m_currentShorthand) {3844 // We can't use ShorthandScope here as we can already be inside one (e.g we are parsing CSSTransition).3845 m_currentShorthand = prefixingVariantForPropertyId(m_currentShorthand);3846 addProperty(prefixingVariant, WTFMove(value), important, implicit);3847 m_currentShorthand = prefixingVariantForPropertyId(m_currentShorthand);3848 } else3849 addProperty(prefixingVariant, WTFMove(value), important, implicit);3850 }3851 3852 3846 3853 3847 RefPtr<CSSPrimitiveValue> CSSParser::parseColumnWidth() … … 3978 3972 3979 3973 // Now add all of the properties we found. 3980 // In this case we have to explicitly set the variant form as well,3981 // to make sure that a shorthand clears all existing prefixed and3982 // unprefixed values.3983 3974 for (i = 0; i < numProperties; ++i) 3984 3975 addPropertyWithPrefixingVariant(shorthand.properties()[i], WTFMove(values[i]), important); -
trunk/Source/WebCore/css/CSSPropertyNames.in
r201666 r203380 349 349 top [Initial=initialOffset, Converter=LengthOrAuto] 350 350 transition [Longhands=transition-property|transition-duration|transition-timing-function|transition-delay] 351 transition-delay [ AnimationProperty, NameForMethods=Delay]352 transition-duration [ AnimationProperty, NameForMethods=Duration]353 transition-property [ AnimationProperty, NameForMethods=Property]354 transition-timing-function [ AnimationProperty, NameForMethods=TimingFunction]351 transition-delay [SkipBuilder] 352 transition-duration [SkipBuilder] 353 transition-property [SkipBuilder] 354 transition-timing-function [SkipBuilder] 355 355 356 356 unicode-bidi -
trunk/Source/WebCore/css/PropertySetCSSStyleDeclaration.cpp
r203322 r203380 173 173 if (!propertyID) 174 174 return nullptr; 175 return cloneAndCacheForCSSOM( getPropertyCSSValueInternal(propertyID).get());175 return cloneAndCacheForCSSOM(m_propertySet->getPropertyCSSValue(propertyID).get()); 176 176 } 177 177 … … 184 184 if (!propertyID) 185 185 return String(); 186 return getPropertyValueInternal(propertyID);186 return m_propertySet->getPropertyValue(propertyID); 187 187 } 188 188 … … 266 266 RefPtr<CSSValue> PropertySetCSSStyleDeclaration::getPropertyCSSValueInternal(CSSPropertyID propertyID) 267 267 { 268 RefPtr<CSSValue> value = m_propertySet->getPropertyCSSValue(propertyID); 269 if (value) 270 return value; 271 272 CSSPropertyID prefixingVariant = prefixingVariantForPropertyId(propertyID); 273 if (prefixingVariant != propertyID) 274 return m_propertySet->getPropertyCSSValue(prefixingVariant); 275 276 return nullptr; 268 return m_propertySet->getPropertyCSSValue(propertyID); 277 269 } 278 270 279 271 String PropertySetCSSStyleDeclaration::getPropertyValueInternal(CSSPropertyID propertyID) 280 { 281 String value = m_propertySet->getPropertyValue(propertyID); 282 if (!value.isEmpty()) 283 return value; 284 285 CSSPropertyID prefixingVariant = prefixingVariantForPropertyId(propertyID); 286 if (prefixingVariant != propertyID) 287 return m_propertySet->getPropertyValue(prefixingVariant); 288 289 return String(); 272 { 273 return m_propertySet->getPropertyValue(propertyID); 290 274 } 291 275 -
trunk/Source/WebCore/css/StyleProperties.cpp
r203250 r203380 641 641 return false; 642 642 643 bool propertiesWereRemoved= removePropertiesInSet(shorthand.properties(), shorthand.length());643 bool ret = removePropertiesInSet(shorthand.properties(), shorthand.length()); 644 644 645 645 CSSPropertyID prefixingVariant = prefixingVariantForPropertyId(propertyID); 646 646 if (prefixingVariant == propertyID) 647 return propertiesWereRemoved;647 return ret; 648 648 649 649 StylePropertyShorthand shorthandPrefixingVariant = shorthandForProperty(prefixingVariant); 650 bool prefixedVariantPropertiesWereRemoved = removePropertiesInSet(shorthandPrefixingVariant.properties(), shorthandPrefixingVariant.length()); 651 return propertiesWereRemoved || prefixedVariantPropertiesWereRemoved; 650 return removePropertiesInSet(shorthandPrefixingVariant.properties(), shorthandPrefixingVariant.length()); 652 651 } 653 652 … … 675 674 m_propertyVector.remove(foundPropertyIndex); 676 675 676 removePrefixedOrUnprefixedProperty(propertyID); 677 677 678 return true; 678 679 } … … 695 696 696 697 return true; 698 } 699 700 void MutableStyleProperties::removePrefixedOrUnprefixedProperty(CSSPropertyID propertyID) 701 { 702 int foundPropertyIndex = findPropertyIndex(prefixingVariantForPropertyId(propertyID)); 703 if (foundPropertyIndex == -1) 704 return; 705 m_propertyVector.remove(foundPropertyIndex); 697 706 } 698 707 … … 793 802 794 803 *toReplace = property; 804 setPrefixingVariantProperty(property); 795 805 return true; 796 806 } 797 807 } 798 808 809 return appendPrefixingVariantProperty(property); 810 } 811 812 static unsigned getIndexInShorthandVectorForPrefixingVariant(const CSSProperty& property, CSSPropertyID prefixingVariant) 813 { 814 if (!property.isSetFromShorthand()) 815 return 0; 816 817 CSSPropertyID prefixedShorthand = prefixingVariantForPropertyId(property.shorthandID()); 818 return indexOfShorthandForLonghand(prefixedShorthand, matchingShorthandsForLonghand(prefixingVariant)); 819 } 820 821 bool MutableStyleProperties::appendPrefixingVariantProperty(const CSSProperty& property) 822 { 799 823 m_propertyVector.append(property); 824 CSSPropertyID prefixingVariant = prefixingVariantForPropertyId(property.id()); 825 if (prefixingVariant == property.id()) 826 return true; 827 828 m_propertyVector.append(CSSProperty(prefixingVariant, property.value(), property.isImportant(), property.isSetFromShorthand(), getIndexInShorthandVectorForPrefixingVariant(property, prefixingVariant), property.metadata().m_implicit)); 800 829 return true; 830 } 831 832 void MutableStyleProperties::setPrefixingVariantProperty(const CSSProperty& property) 833 { 834 CSSPropertyID prefixingVariant = prefixingVariantForPropertyId(property.id()); 835 CSSProperty* toReplace = findCSSPropertyWithID(prefixingVariant); 836 if (toReplace && prefixingVariant != property.id()) 837 *toReplace = CSSProperty(prefixingVariant, property.value(), property.isImportant(), property.isSetFromShorthand(), getIndexInShorthandVectorForPrefixingVariant(property, prefixingVariant), property.metadata().m_implicit); 801 838 } 802 839 … … 889 926 case CSSPropertyAnimationDirection: 890 927 case CSSPropertyAnimationFillMode: 891 case CSSPropertyAnimationPlayState:892 928 shorthandPropertyID = CSSPropertyAnimation; 893 929 break; … … 989 1025 case CSSPropertyWebkitAnimationDirection: 990 1026 case CSSPropertyWebkitAnimationFillMode: 991 case CSSPropertyWebkitAnimationPlayState:992 1027 shorthandPropertyID = CSSPropertyWebkitAnimation; 993 1028 break; -
trunk/Source/WebCore/css/StyleProperties.h
r201113 r203380 208 208 bool setProperty(CSSPropertyID, CSSValueID identifier, bool important = false); 209 209 bool setProperty(CSSPropertyID, CSSPropertyID identifier, bool important = false); 210 bool appendPrefixingVariantProperty(const CSSProperty&); 211 void setPrefixingVariantProperty(const CSSProperty&); 210 212 bool setProperty(const CSSProperty&, CSSProperty* slot = nullptr); 211 213 212 214 bool removeProperty(CSSPropertyID, String* returnText = nullptr); 215 void removePrefixedOrUnprefixedProperty(CSSPropertyID); 213 216 void removeBlockProperties(); 214 217 bool removePropertiesInSet(const CSSPropertyID* set, unsigned length);
Note:
See TracChangeset
for help on using the changeset viewer.