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

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

Issue 2633143002: SVG objects with same idrefs conflict when under different shadow root (Closed)
Patch Set: ensureSVGTreeScopedResources(); add comment Created 3 years, 11 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
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. 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
8 * All rights reserved. 8 * All rights reserved.
9 * (C) 2007 Eric Seidel (eric@webkit.org) 9 * (C) 2007 Eric Seidel (eric@webkit.org)
10 * 10 *
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 #include "core/page/Page.h" 127 #include "core/page/Page.h"
128 #include "core/page/PointerLockController.h" 128 #include "core/page/PointerLockController.h"
129 #include "core/page/SpatialNavigation.h" 129 #include "core/page/SpatialNavigation.h"
130 #include "core/page/scrolling/RootScrollerController.h" 130 #include "core/page/scrolling/RootScrollerController.h"
131 #include "core/page/scrolling/ScrollCustomizationCallbacks.h" 131 #include "core/page/scrolling/ScrollCustomizationCallbacks.h"
132 #include "core/page/scrolling/ScrollState.h" 132 #include "core/page/scrolling/ScrollState.h"
133 #include "core/page/scrolling/ScrollStateCallback.h" 133 #include "core/page/scrolling/ScrollStateCallback.h"
134 #include "core/page/scrolling/TopDocumentRootScrollerController.h" 134 #include "core/page/scrolling/TopDocumentRootScrollerController.h"
135 #include "core/paint/PaintLayer.h" 135 #include "core/paint/PaintLayer.h"
136 #include "core/svg/SVGAElement.h" 136 #include "core/svg/SVGAElement.h"
137 #include "core/svg/SVGDocumentExtensions.h"
138 #include "core/svg/SVGElement.h" 137 #include "core/svg/SVGElement.h"
138 #include "core/svg/SVGTreeScopeResources.h"
139 #include "platform/EventDispatchForbiddenScope.h" 139 #include "platform/EventDispatchForbiddenScope.h"
140 #include "platform/RuntimeEnabledFeatures.h" 140 #include "platform/RuntimeEnabledFeatures.h"
141 #include "platform/graphics/CompositorMutableProperties.h" 141 #include "platform/graphics/CompositorMutableProperties.h"
142 #include "platform/graphics/CompositorMutation.h" 142 #include "platform/graphics/CompositorMutation.h"
143 #include "platform/scroll/ScrollableArea.h" 143 #include "platform/scroll/ScrollableArea.h"
144 #include "wtf/BitVector.h" 144 #include "wtf/BitVector.h"
145 #include "wtf/HashFunctions.h" 145 #include "wtf/HashFunctions.h"
146 #include "wtf/text/CString.h" 146 #include "wtf/text/CString.h"
147 #include "wtf/text/StringBuilder.h" 147 #include "wtf/text/StringBuilder.h"
148 #include "wtf/text/TextPosition.h" 148 #include "wtf/text/TextPosition.h"
(...skipping 1508 matching lines...) Expand 10 before | Expand all | Expand 10 after
1657 const AtomicString& nameValue = getNameAttribute(); 1657 const AtomicString& nameValue = getNameAttribute();
1658 if (!nameValue.isNull()) 1658 if (!nameValue.isNull())
1659 updateName(nameValue, nullAtom); 1659 updateName(nameValue, nullAtom);
1660 } 1660 }
1661 1661
1662 ContainerNode::removedFrom(insertionPoint); 1662 ContainerNode::removedFrom(insertionPoint);
1663 if (wasInDocument) { 1663 if (wasInDocument) {
1664 if (this == document().cssTarget()) 1664 if (this == document().cssTarget())
1665 document().setCSSTarget(nullptr); 1665 document().setCSSTarget(nullptr);
1666 1666
1667 if (hasPendingResources()) 1667 if (hasPendingResources()) {
1668 document().accessSVGExtensions().removeElementFromPendingResources(this); 1668 treeScope()
1669 .ensureSVGTreeScopedResources()
1670 .removeElementFromPendingResources(this);
1671 }
1669 1672
1670 if (getCustomElementState() == CustomElementState::Custom) 1673 if (getCustomElementState() == CustomElementState::Custom)
1671 CustomElement::enqueueDisconnectedCallback(this); 1674 CustomElement::enqueueDisconnectedCallback(this);
1672 else if (isUpgradedV0CustomElement()) 1675 else if (isUpgradedV0CustomElement())
1673 V0CustomElement::didDetach(this, insertionPoint->document()); 1676 V0CustomElement::didDetach(this, insertionPoint->document());
1674 1677
1675 if (needsStyleInvalidation()) 1678 if (needsStyleInvalidation())
1676 document().styleEngine().styleInvalidator().clearInvalidation(*this); 1679 document().styleEngine().styleInvalidator().clearInvalidation(*this);
1677 } 1680 }
1678 1681
(...skipping 2446 matching lines...) Expand 10 before | Expand all | Expand 10 after
4125 } 4128 }
4126 4129
4127 DEFINE_TRACE_WRAPPERS(Element) { 4130 DEFINE_TRACE_WRAPPERS(Element) {
4128 if (hasRareData()) { 4131 if (hasRareData()) {
4129 visitor->traceWrappers(elementRareData()); 4132 visitor->traceWrappers(elementRareData());
4130 } 4133 }
4131 ContainerNode::traceWrappers(visitor); 4134 ContainerNode::traceWrappers(visitor);
4132 } 4135 }
4133 4136
4134 } // namespace blink 4137 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698