Changeset 181521 in webkit
- Timestamp:
- Mar 15, 2015 10:31:28 PM (9 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r181520 r181521 1 2015-03-15 Simon Fraser <simon.fraser@apple.com> 2 3 Add the same is<RenderBox> test to KeyframeAnimation::computeExtentOfTransformAnimation() 4 that ImplicitAnimation::computeExtentOfTransformAnimation() has, and change the latter 5 to the more canonical is<RenderBox>() form. 6 7 Fixes an assertion in animations/animation-on-inline-crash.html 8 9 * page/animation/ImplicitAnimation.cpp: 10 (WebCore::ImplicitAnimation::computeExtentOfTransformAnimation): 11 * page/animation/KeyframeAnimation.cpp: 12 (WebCore::KeyframeAnimation::computeExtentOfTransformAnimation): 13 1 14 2015-03-15 Simon Fraser <simon.fraser@apple.com> 2 15 -
trunk/Source/WebCore/page/animation/ImplicitAnimation.cpp
r181515 r181521 105 105 ASSERT(hasStyle()); 106 106 107 if (! m_object->isBox())108 return false;107 if (!is<RenderBox>(m_object)) 108 return true; // Non-boxes don't get transformed; 109 109 110 110 ASSERT(m_animatingProperty == CSSPropertyWebkitTransform); -
trunk/Source/WebCore/page/animation/KeyframeAnimation.cpp
r181515 r181521 204 204 ASSERT(m_keyframes.containsProperty(CSSPropertyWebkitTransform)); 205 205 206 if (!is<RenderBox>(m_object)) 207 return true; // Non-boxes don't get transformed; 208 206 209 RenderBox& box = downcast<RenderBox>(*m_object); 207 210 FloatRect rendererBox = snapRectToDevicePixels(box.borderBoxRect(), box.document().deviceScaleFactor());
Note: See TracChangeset
for help on using the changeset viewer.