OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/svg/SVGTreeScopeResources.h" | 5 #include "core/svg/SVGTreeScopeResources.h" |
6 | 6 |
7 #include "core/dom/Element.h" | 7 #include "core/dom/Element.h" |
8 #include "core/dom/TreeScope.h" | 8 #include "core/dom/TreeScope.h" |
9 #include "core/layout/svg/LayoutSVGResourceContainer.h" | 9 #include "core/layout/svg/LayoutSVGResourceContainer.h" |
10 #include "core/layout/svg/SVGResourcesCache.h" | 10 #include "core/layout/svg/SVGResourcesCache.h" |
11 #include "core/svg/SVGUseElement.h" | 11 #include "core/svg/SVGUseElement.h" |
12 #include "wtf/text/AtomicString.h" | 12 #include "platform/wtf/text/AtomicString.h" |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 | 15 |
16 SVGTreeScopeResources::SVGTreeScopeResources(TreeScope* tree_scope) | 16 SVGTreeScopeResources::SVGTreeScopeResources(TreeScope* tree_scope) |
17 : tree_scope_(tree_scope) {} | 17 : tree_scope_(tree_scope) {} |
18 | 18 |
19 SVGTreeScopeResources::~SVGTreeScopeResources() = default; | 19 SVGTreeScopeResources::~SVGTreeScopeResources() = default; |
20 | 20 |
21 static LayoutSVGResourceContainer* LookupResource(TreeScope& tree_scope, | 21 static LayoutSVGResourceContainer* LookupResource(TreeScope& tree_scope, |
22 const AtomicString& id) { | 22 const AtomicString& id) { |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 | 223 |
224 ClearHasPendingResourcesIfPossible(*client_element); | 224 ClearHasPendingResourcesIfPossible(*client_element); |
225 } | 225 } |
226 } | 226 } |
227 | 227 |
228 DEFINE_TRACE(SVGTreeScopeResources) { | 228 DEFINE_TRACE(SVGTreeScopeResources) { |
229 visitor->Trace(pending_resources_); | 229 visitor->Trace(pending_resources_); |
230 visitor->Trace(tree_scope_); | 230 visitor->Trace(tree_scope_); |
231 } | 231 } |
232 } | 232 } |
OLD | NEW |