Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Unified Diff: Source/WebCore/page/animation/KeyframeAnimation.cpp

Issue 10696154: Merge 120639 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/page/animation/ImplicitAnimation.cpp ('k') | Source/WebCore/rendering/RenderBlock.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/page/animation/KeyframeAnimation.cpp
===================================================================
--- Source/WebCore/page/animation/KeyframeAnimation.cpp (revision 122239)
+++ Source/WebCore/page/animation/KeyframeAnimation.cpp (working copy)
@@ -51,8 +51,8 @@
, m_unanimatedStyle(unanimatedStyle)
{
// Get the keyframe RenderStyles
- if (m_object && m_object->styledGeneratingNode() && m_object->styledGeneratingNode()->isElementNode())
- m_object->document()->styleResolver()->keyframeStylesForAnimation(static_cast<Element*>(m_object->styledGeneratingNode()), unanimatedStyle, m_keyframes);
+ if (m_object && m_object->node() && m_object->node()->isElementNode())
+ m_object->document()->styleResolver()->keyframeStylesForAnimation(static_cast<Element*>(m_object->node()), unanimatedStyle, m_keyframes);
// Update the m_transformFunctionListValid flag based on whether the function lists in the keyframes match.
validateTransformFunctionList();
@@ -255,7 +255,7 @@
#endif
// Restore the original (unanimated) style
if (!paused())
- setNeedsStyleRecalc(m_object->styledGeneratingNode());
+ setNeedsStyleRecalc(m_object->node());
}
void KeyframeAnimation::endAnimation()
@@ -269,7 +269,7 @@
#endif
// Restore the original (unanimated) style
if (!paused())
- setNeedsStyleRecalc(m_object->styledGeneratingNode());
+ setNeedsStyleRecalc(m_object->node());
}
bool KeyframeAnimation::shouldSendEventForListener(Document::ListenerType listenerType) const
@@ -314,8 +314,8 @@
if (shouldSendEventForListener(listenerType)) {
// Dispatch the event
RefPtr<Element> element;
- if (m_object->styledGeneratingNode() && m_object->styledGeneratingNode()->isElementNode())
- element = static_cast<Element*>(m_object->styledGeneratingNode());
+ if (m_object->node() && m_object->node()->isElementNode())
+ element = static_cast<Element*>(m_object->node());
ASSERT(!element || (element->document() && !element->document()->inPageCache()));
if (!element)
« no previous file with comments | « Source/WebCore/page/animation/ImplicitAnimation.cpp ('k') | Source/WebCore/rendering/RenderBlock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698