Changeset 155105 in webkit
- Timestamp:
- Sep 5, 2013 12:38:46 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r155100 r155105 1 2013-09-05 Dirk Schulze <krit@webkit.org> 2 3 NULL ptr in WebCore::RefCountedPropertyWrapper<WebCore::ClipPathOperation>::blend 4 https://bugs.webkit.org/show_bug.cgi?id=105408 5 6 Reviewed by Dean Jackson. 7 8 Test that animation from none to a basic shape on -webkit-clip-path doesn't crash. 9 10 * css3/masking/clip-path-animation-expected.txt: 11 * css3/masking/clip-path-animation.html: 12 1 13 2013-09-04 Dirk Schulze <krit@webkit.org> 2 14 -
trunk/LayoutTests/css3/masking/clip-path-animation-expected.txt
r151517 r155105 1 1 2 2 PASS - "webkitClipPath" property for "rectangle-box" element at 1s saw something close to: rectangle(10%, 10%, 80%, 80%, 0px, 0px) 3 3 PASS - "webkitClipPath" property for "circle-box" element at 1s saw something close to: circle(35%, 35%, 35%) 4 4 PASS - "webkitClipPath" property for "ellipse-box" element at 1s saw something close to: ellipse(35%, 35%, 35%, 30%) 5 5 PASS - "webkitClipPath" property for "polygon-box" element at 1s saw something close to: polygon(nonzero, 10% 10%, 90% 10%, 90% 90%, 10% 90%) 6 PASS - "webkitClipPath" property for "none-box" element at 1s saw something close to: polygon(nonzero, 20% 20%, 80% 20%, 80% 80%, 20% 80%) 6 7 -
trunk/LayoutTests/css3/masking/clip-path-animation.html
r151517 r155105 28 28 } 29 29 30 #none-box { 31 -webkit-animation: none-anim 2s linear 32 } 30 33 31 34 @-webkit-keyframes rectangle-anim { … … 49 52 } 50 53 54 @-webkit-keyframes none-anim { 55 /* We do not support animations from or to 'none' as specified. */ 56 from { -webkit-clip-path: none; } 57 to { -webkit-clip-path: polygon(nonzero, 20% 20%, 80% 20%, 80% 80%, 20% 80%); } 58 } 59 51 60 </style> 52 61 <script src="../../animations/resources/animation-test-helpers.js"></script> … … 58 67 ["ellipse-anim", 1, "ellipse-box", "webkitClipPath", "ellipse(35%, 35%, 35%, 30%)", 0.05], 59 68 ["polygon-anim", 1, "polygon-box", "webkitClipPath", "polygon(nonzero, 10% 10%, 90% 10%, 90% 90%, 10% 90%)", 0.05], 69 ["none-anim", 1, "none-box", "webkitClipPath", "polygon(nonzero, 20% 20%, 80% 20%, 80% 80%, 20% 80%)", 0], 60 70 ]; 61 71 … … 69 79 <div class="box" id="ellipse-box"></div> 70 80 <div class="box" id="polygon-box"></div> 81 <div class="box" id="none-box"></div> 71 82 72 83 <div id="result"> -
trunk/Source/WebCore/ChangeLog
r155104 r155105 1 2013-09-05 Dirk Schulze <krit@webkit.org> 2 3 NULL ptr in WebCore::RefCountedPropertyWrapper<WebCore::ClipPathOperation>::blend 4 https://bugs.webkit.org/show_bug.cgi?id=105408 5 6 Reviewed by Dean Jackson. 7 8 Adding an early return if from or to clip-path values are 'none'. According to the 9 specification we shall just interpolate between two basic shapes. 10 11 http://dev.w3.org/csswg/css-shapes/#basic-shape-interpolation 12 13 * page/animation/CSSPropertyAnimation.cpp: 14 (WebCore::blendFunc): 15 1 16 2013-09-05 Andre Moreira Magalhaes <andre.magalhaes@collabora.co.uk> 2 17 -
trunk/Source/WebCore/page/animation/CSSPropertyAnimation.cpp
r155100 r155105 134 134 static inline PassRefPtr<ClipPathOperation> blendFunc(const AnimationBase*, ClipPathOperation* from, ClipPathOperation* to, double progress) 135 135 { 136 if (!from || !to) 137 return to; 138 136 139 // Other clip-path operations than BasicShapes can not be animated. 137 140 if (from->getOperationType() != ClipPathOperation::SHAPE || to->getOperationType() != ClipPathOperation::SHAPE)
Note: See TracChangeset
for help on using the changeset viewer.