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

Side by Side Diff: Source/core/dom/Element.cpp

Issue 1000413003: Clear need for animation style for forced styleForElement. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« Source/core/dom/Document.cpp ('K') | « Source/core/dom/Element.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * (C) 2007 David Smith (catfish.man@gmail.com) 6 * (C) 2007 David Smith (catfish.man@gmail.com)
7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved. 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved.
8 * (C) 2007 Eric Seidel (eric@webkit.org) 8 * (C) 2007 Eric Seidel (eric@webkit.org)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 3350 matching lines...) Expand 10 before | Expand all | Expand 10 after
3361 // Turn off style sharing for elements that can gain layers for reasons outs ide of the style system. 3361 // Turn off style sharing for elements that can gain layers for reasons outs ide of the style system.
3362 // See comments in LayoutObject::setStyle(). 3362 // See comments in LayoutObject::setStyle().
3363 // FIXME: Why does gaining a layer from outside the style system require dis abling sharing? 3363 // FIXME: Why does gaining a layer from outside the style system require dis abling sharing?
3364 if (isHTMLFrameElementBase(*this) || isHTMLPlugInElement(*this) || isHTMLCan vasElement(*this)) 3364 if (isHTMLFrameElementBase(*this) || isHTMLPlugInElement(*this) || isHTMLCan vasElement(*this))
3365 return false; 3365 return false;
3366 if (Fullscreen::isActiveFullScreenElement(*this)) 3366 if (Fullscreen::isActiveFullScreenElement(*this))
3367 return false; 3367 return false;
3368 return true; 3368 return true;
3369 } 3369 }
3370 3370
3371 void Element::clearAnimationStyleChange()
3372 {
3373 if (!hasRareData())
3374 return;
3375 if (ElementAnimations* elementAnimations = elementRareData()->elementAnimati ons())
dstockwell 2015/03/18 11:05:54 there's an elementAnimations() getter on this
rune 2015/03/18 14:53:03 Done.
3376 elementAnimations->setAnimationStyleChange(false);
3377 }
3378
3371 DEFINE_TRACE(Element) 3379 DEFINE_TRACE(Element)
3372 { 3380 {
3373 #if ENABLE(OILPAN) 3381 #if ENABLE(OILPAN)
3374 if (hasRareData()) 3382 if (hasRareData())
3375 visitor->trace(elementRareData()); 3383 visitor->trace(elementRareData());
3376 visitor->trace(m_elementData); 3384 visitor->trace(m_elementData);
3377 #endif 3385 #endif
3378 ContainerNode::trace(visitor); 3386 ContainerNode::trace(visitor);
3379 } 3387 }
3380 3388
3381 } // namespace blink 3389 } // namespace blink
OLDNEW
« Source/core/dom/Document.cpp ('K') | « Source/core/dom/Element.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698