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

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

Issue 1405223003: Allow style sharing for canvas, iframe, embed and object. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « no previous file | 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 3532 matching lines...) Expand 10 before | Expand all | Expand 10 after
3543 if (isUserActionElement()) 3543 if (isUserActionElement())
3544 return false; 3544 return false;
3545 if (!parentOrShadowHostElement()->childrenSupportStyleSharing()) 3545 if (!parentOrShadowHostElement()->childrenSupportStyleSharing())
3546 return false; 3546 return false;
3547 if (this == document().cssTarget()) 3547 if (this == document().cssTarget())
3548 return false; 3548 return false;
3549 if (isHTMLElement() && toHTMLElement(this)->hasDirectionAuto()) 3549 if (isHTMLElement() && toHTMLElement(this)->hasDirectionAuto())
3550 return false; 3550 return false;
3551 if (hasAnimations()) 3551 if (hasAnimations())
3552 return false; 3552 return false;
3553 // Turn off style sharing for elements that can gain layers for reasons outs ide of the style system.
3554 // See comments in LayoutObject::setStyle().
3555 // FIXME: Why does gaining a layer from outside the style system require dis abling sharing?
3556 if (isHTMLFrameElementBase(*this) || isHTMLPlugInElement(*this) || isHTMLCan vasElement(*this))
3557 return false;
3558 if (Fullscreen::isActiveFullScreenElement(*this)) 3553 if (Fullscreen::isActiveFullScreenElement(*this))
3559 return false; 3554 return false;
3560 return true; 3555 return true;
3561 } 3556 }
3562 3557
3563 DEFINE_TRACE(Element) 3558 DEFINE_TRACE(Element)
3564 { 3559 {
3565 #if ENABLE(OILPAN) 3560 #if ENABLE(OILPAN)
3566 if (hasRareData()) 3561 if (hasRareData())
3567 visitor->trace(elementRareData()); 3562 visitor->trace(elementRareData());
3568 visitor->trace(m_elementData); 3563 visitor->trace(m_elementData);
3569 #endif 3564 #endif
3570 ContainerNode::trace(visitor); 3565 ContainerNode::trace(visitor);
3571 } 3566 }
3572 3567
3573 } // namespace blink 3568 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698