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 #ifndef SVGTreeScopeResources_h | 5 #ifndef SVGTreeScopeResources_h |
6 #define SVGTreeScopeResources_h | 6 #define SVGTreeScopeResources_h |
7 | 7 |
8 #include "platform/heap/Handle.h" | 8 #include "platform/heap/Handle.h" |
9 #include "wtf/Forward.h" | 9 #include "platform/wtf/Forward.h" |
10 #include "wtf/HashMap.h" | 10 #include "platform/wtf/HashMap.h" |
11 #include "wtf/HashSet.h" | 11 #include "platform/wtf/HashSet.h" |
12 #include "wtf/text/AtomicStringHash.h" | 12 #include "platform/wtf/text/AtomicStringHash.h" |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 | 15 |
16 class Element; | 16 class Element; |
17 class TreeScope; | 17 class TreeScope; |
18 class LayoutSVGResourceContainer; | 18 class LayoutSVGResourceContainer; |
19 | 19 |
20 // This class keeps track of SVG resources and pending references to such for a | 20 // This class keeps track of SVG resources and pending references to such for a |
21 // TreeScope. It's per-TreeScope because that matches the lookup scope of an | 21 // TreeScope. It's per-TreeScope because that matches the lookup scope of an |
22 // element's id (which is used to identify a resource.) | 22 // element's id (which is used to identify a resource.) |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 57 |
58 ResourceMap resources_; | 58 ResourceMap resources_; |
59 // Resources that are pending. | 59 // Resources that are pending. |
60 HeapHashMap<AtomicString, Member<SVGPendingElements>> pending_resources_; | 60 HeapHashMap<AtomicString, Member<SVGPendingElements>> pending_resources_; |
61 Member<TreeScope> tree_scope_; | 61 Member<TreeScope> tree_scope_; |
62 }; | 62 }; |
63 | 63 |
64 } // namespace blink | 64 } // namespace blink |
65 | 65 |
66 #endif // SVGTreeScopeResources_h | 66 #endif // SVGTreeScopeResources_h |
OLD | NEW |