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

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

Issue 2824823003: DOM-based SVG resource tracking (Closed)
Patch Set: Update baselines Created 3 years, 7 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 #include "core/html/HTMLOptionsCollection.h" 110 #include "core/html/HTMLOptionsCollection.h"
111 #include "core/html/HTMLPlugInElement.h" 111 #include "core/html/HTMLPlugInElement.h"
112 #include "core/html/HTMLSlotElement.h" 112 #include "core/html/HTMLSlotElement.h"
113 #include "core/html/HTMLTableRowsCollection.h" 113 #include "core/html/HTMLTableRowsCollection.h"
114 #include "core/html/HTMLTemplateElement.h" 114 #include "core/html/HTMLTemplateElement.h"
115 #include "core/html/parser/HTMLParserIdioms.h" 115 #include "core/html/parser/HTMLParserIdioms.h"
116 #include "core/input/EventHandler.h" 116 #include "core/input/EventHandler.h"
117 #include "core/layout/LayoutTextFragment.h" 117 #include "core/layout/LayoutTextFragment.h"
118 #include "core/layout/api/LayoutBoxItem.h" 118 #include "core/layout/api/LayoutBoxItem.h"
119 #include "core/layout/api/LayoutViewItem.h" 119 #include "core/layout/api/LayoutViewItem.h"
120 #include "core/layout/svg/SVGResources.h"
120 #include "core/loader/DocumentLoader.h" 121 #include "core/loader/DocumentLoader.h"
121 #include "core/page/ChromeClient.h" 122 #include "core/page/ChromeClient.h"
122 #include "core/page/FocusController.h" 123 #include "core/page/FocusController.h"
123 #include "core/page/Page.h" 124 #include "core/page/Page.h"
124 #include "core/page/PointerLockController.h" 125 #include "core/page/PointerLockController.h"
125 #include "core/page/SpatialNavigation.h" 126 #include "core/page/SpatialNavigation.h"
126 #include "core/page/scrolling/RootScrollerController.h" 127 #include "core/page/scrolling/RootScrollerController.h"
127 #include "core/page/scrolling/ScrollCustomizationCallbacks.h" 128 #include "core/page/scrolling/ScrollCustomizationCallbacks.h"
128 #include "core/page/scrolling/ScrollState.h" 129 #include "core/page/scrolling/ScrollState.h"
129 #include "core/page/scrolling/ScrollStateCallback.h" 130 #include "core/page/scrolling/ScrollStateCallback.h"
130 #include "core/page/scrolling/TopDocumentRootScrollerController.h" 131 #include "core/page/scrolling/TopDocumentRootScrollerController.h"
131 #include "core/paint/PaintLayer.h" 132 #include "core/paint/PaintLayer.h"
132 #include "core/probe/CoreProbes.h" 133 #include "core/probe/CoreProbes.h"
133 #include "core/svg/SVGAElement.h" 134 #include "core/svg/SVGAElement.h"
134 #include "core/svg/SVGElement.h" 135 #include "core/svg/SVGElement.h"
135 #include "core/svg/SVGTreeScopeResources.h"
136 #include "platform/EventDispatchForbiddenScope.h" 136 #include "platform/EventDispatchForbiddenScope.h"
137 #include "platform/RuntimeEnabledFeatures.h" 137 #include "platform/RuntimeEnabledFeatures.h"
138 #include "platform/bindings/DOMDataStore.h" 138 #include "platform/bindings/DOMDataStore.h"
139 #include "platform/bindings/V8DOMWrapper.h" 139 #include "platform/bindings/V8DOMWrapper.h"
140 #include "platform/bindings/V8PerContextData.h" 140 #include "platform/bindings/V8PerContextData.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 "platform/wtf/BitVector.h" 144 #include "platform/wtf/BitVector.h"
145 #include "platform/wtf/HashFunctions.h" 145 #include "platform/wtf/HashFunctions.h"
(...skipping 1552 matching lines...) Expand 10 before | Expand all | Expand 10 after
1698 const AtomicString& name_value = GetNameAttribute(); 1698 const AtomicString& name_value = GetNameAttribute();
1699 if (!name_value.IsNull()) 1699 if (!name_value.IsNull())
1700 UpdateName(name_value, g_null_atom); 1700 UpdateName(name_value, g_null_atom);
1701 } 1701 }
1702 1702
1703 ContainerNode::RemovedFrom(insertion_point); 1703 ContainerNode::RemovedFrom(insertion_point);
1704 if (was_in_document) { 1704 if (was_in_document) {
1705 if (this == GetDocument().CssTarget()) 1705 if (this == GetDocument().CssTarget())
1706 GetDocument().SetCSSTarget(nullptr); 1706 GetDocument().SetCSSTarget(nullptr);
1707 1707
1708 if (HasPendingResources()) { 1708 if (HasPendingResources())
1709 GetTreeScope() 1709 SVGResources::RemoveWatchesForElement(*this);
1710 .EnsureSVGTreeScopedResources()
1711 .RemoveElementFromPendingResources(*this);
1712 }
1713 1710
1714 if (GetCustomElementState() == CustomElementState::kCustom) 1711 if (GetCustomElementState() == CustomElementState::kCustom)
1715 CustomElement::EnqueueDisconnectedCallback(this); 1712 CustomElement::EnqueueDisconnectedCallback(this);
1716 else if (IsUpgradedV0CustomElement()) 1713 else if (IsUpgradedV0CustomElement())
1717 V0CustomElement::DidDetach(this, insertion_point->GetDocument()); 1714 V0CustomElement::DidDetach(this, insertion_point->GetDocument());
1718 1715
1719 if (NeedsStyleInvalidation()) 1716 if (NeedsStyleInvalidation())
1720 GetDocument().GetStyleEngine().GetStyleInvalidator().ClearInvalidation( 1717 GetDocument().GetStyleEngine().GetStyleInvalidator().ClearInvalidation(
1721 *this); 1718 *this);
1722 } 1719 }
(...skipping 2625 matching lines...) Expand 10 before | Expand all | Expand 10 after
4348 } 4345 }
4349 4346
4350 DEFINE_TRACE_WRAPPERS(Element) { 4347 DEFINE_TRACE_WRAPPERS(Element) {
4351 if (HasRareData()) { 4348 if (HasRareData()) {
4352 visitor->TraceWrappers(GetElementRareData()); 4349 visitor->TraceWrappers(GetElementRareData());
4353 } 4350 }
4354 ContainerNode::TraceWrappers(visitor); 4351 ContainerNode::TraceWrappers(visitor);
4355 } 4352 }
4356 4353
4357 } // namespace blink 4354 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698