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

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: Tests 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 1509 matching lines...) Expand 10 before | Expand all | Expand 10 after
1658 const AtomicString& nameValue = getNameAttribute(); 1658 const AtomicString& nameValue = getNameAttribute();
1659 if (!nameValue.isNull()) 1659 if (!nameValue.isNull())
1660 updateName(nameValue, nullAtom); 1660 updateName(nameValue, nullAtom);
1661 } 1661 }
1662 1662
1663 ContainerNode::removedFrom(insertionPoint); 1663 ContainerNode::removedFrom(insertionPoint);
1664 if (wasInDocument) { 1664 if (wasInDocument) {
1665 if (this == document().cssTarget()) 1665 if (this == document().cssTarget())
1666 document().setCSSTarget(nullptr); 1666 document().setCSSTarget(nullptr);
1667 1667
1668 if (hasPendingResources()) 1668 if (hasPendingResources()) {
1669 document().accessSVGExtensions().removeElementFromPendingResources(this); 1669 treeScope()
1670 .accessSVGTreeScopedResources()
1671 .removeElementFromPendingResources(this);
1672 }
1670 1673
1671 if (getCustomElementState() == CustomElementState::Custom) 1674 if (getCustomElementState() == CustomElementState::Custom)
1672 CustomElement::enqueueDisconnectedCallback(this); 1675 CustomElement::enqueueDisconnectedCallback(this);
1673 else if (isUpgradedV0CustomElement()) 1676 else if (isUpgradedV0CustomElement())
1674 V0CustomElement::didDetach(this, insertionPoint->document()); 1677 V0CustomElement::didDetach(this, insertionPoint->document());
1675 1678
1676 if (needsStyleInvalidation()) 1679 if (needsStyleInvalidation())
1677 document().styleEngine().styleInvalidator().clearInvalidation(*this); 1680 document().styleEngine().styleInvalidator().clearInvalidation(*this);
1678 } 1681 }
1679 1682
(...skipping 2446 matching lines...) Expand 10 before | Expand all | Expand 10 after
4126 } 4129 }
4127 4130
4128 DEFINE_TRACE_WRAPPERS(Element) { 4131 DEFINE_TRACE_WRAPPERS(Element) {
4129 if (hasRareData()) { 4132 if (hasRareData()) {
4130 visitor->traceWrappers(elementRareData()); 4133 visitor->traceWrappers(elementRareData());
4131 } 4134 }
4132 ContainerNode::traceWrappers(visitor); 4135 ContainerNode::traceWrappers(visitor);
4133 } 4136 }
4134 4137
4135 } // namespace blink 4138 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698