OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann |
3 * <zimmermann@kde.org> | 3 * <zimmermann@kde.org> |
4 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> | 4 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 LayoutObject* createLayoutObject(const ComputedStyle&) override; | 82 LayoutObject* createLayoutObject(const ComputedStyle&) override; |
83 | 83 |
84 void scheduleShadowTreeRecreation(); | 84 void scheduleShadowTreeRecreation(); |
85 void cancelShadowTreeRecreation(); | 85 void cancelShadowTreeRecreation(); |
86 bool haveLoadedRequiredResources() override { | 86 bool haveLoadedRequiredResources() override { |
87 return !isStructurallyExternal() || m_haveFiredLoadEvent; | 87 return !isStructurallyExternal() || m_haveFiredLoadEvent; |
88 } | 88 } |
89 | 89 |
90 bool selfHasRelativeLengths() const override; | 90 bool selfHasRelativeLengths() const override; |
91 | 91 |
| 92 ShadowRoot& useShadowRoot() const { |
| 93 CHECK(closedShadowRoot()); |
| 94 return *closedShadowRoot(); |
| 95 } |
| 96 |
92 // Instance tree handling | 97 // Instance tree handling |
93 Element* resolveTargetElement(); | 98 Element* resolveTargetElement(); |
94 void buildShadowAndInstanceTree(SVGElement& target); | 99 void buildShadowAndInstanceTree(SVGElement& target); |
95 void clearInstanceRoot(); | 100 void clearInstanceRoot(); |
96 Element* createInstanceTree(SVGElement& targetRoot) const; | 101 Element* createInstanceTree(SVGElement& targetRoot) const; |
97 void clearResourceReference(); | 102 void clearResourceReference(); |
98 bool hasCycleUseReferencing(const SVGUseElement&, | 103 bool hasCycleUseReferencing(const SVGUseElement&, |
99 const ContainerNode& targetInstance, | 104 const ContainerNode& targetInstance, |
100 SVGElement*& newTarget) const; | 105 SVGElement*& newTarget) const; |
101 bool expandUseElementsInShadowTree(); | 106 bool expandUseElementsInShadowTree(); |
(...skipping 19 matching lines...) Expand all Loading... |
121 bool m_haveFiredLoadEvent; | 126 bool m_haveFiredLoadEvent; |
122 bool m_needsShadowTreeRecreation; | 127 bool m_needsShadowTreeRecreation; |
123 Member<SVGElement> m_targetElementInstance; | 128 Member<SVGElement> m_targetElementInstance; |
124 Member<IdTargetObserver> m_targetIdObserver; | 129 Member<IdTargetObserver> m_targetIdObserver; |
125 Member<DocumentResource> m_resource; | 130 Member<DocumentResource> m_resource; |
126 }; | 131 }; |
127 | 132 |
128 } // namespace blink | 133 } // namespace blink |
129 | 134 |
130 #endif // SVGUseElement_h | 135 #endif // SVGUseElement_h |
OLD | NEW |