OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2014 Google, Inc. | 4 * Copyright (C) 2014 Google, Inc. |
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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 | 117 |
118 SVGAnimatedLength* x() const { return m_x.get(); } | 118 SVGAnimatedLength* x() const { return m_x.get(); } |
119 SVGAnimatedLength* y() const { return m_y.get(); } | 119 SVGAnimatedLength* y() const { return m_y.get(); } |
120 SVGAnimatedLength* width() const { return m_width.get(); } | 120 SVGAnimatedLength* width() const { return m_width.get(); } |
121 SVGAnimatedLength* height() const { return m_height.get(); } | 121 SVGAnimatedLength* height() const { return m_height.get(); } |
122 | 122 |
123 DECLARE_VIRTUAL_TRACE(); | 123 DECLARE_VIRTUAL_TRACE(); |
124 | 124 |
125 private: | 125 private: |
126 explicit SVGSVGElement(Document&); | 126 explicit SVGSVGElement(Document&); |
127 virtual ~SVGSVGElement(); | 127 ~SVGSVGElement() override; |
128 | 128 |
129 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; | 129 void parseAttribute(const QualifiedName&, const AtomicString&) override; |
130 virtual bool isPresentationAttribute(const QualifiedName&) const override; | 130 bool isPresentationAttribute(const QualifiedName&) const override; |
131 virtual bool isPresentationAttributeWithSVGDOM(const QualifiedName&) const o
verride; | 131 bool isPresentationAttributeWithSVGDOM(const QualifiedName&) const override; |
132 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) override; | 132 void collectStyleForPresentationAttribute(const QualifiedName&, const Atomic
String&, MutableStylePropertySet*) override; |
133 | 133 |
134 virtual bool layoutObjectIsNeeded(const ComputedStyle&) override; | 134 bool layoutObjectIsNeeded(const ComputedStyle&) override; |
135 virtual LayoutObject* createLayoutObject(const ComputedStyle&) override; | 135 LayoutObject* createLayoutObject(const ComputedStyle&) override; |
136 | 136 |
137 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; | 137 InsertionNotificationRequest insertedInto(ContainerNode*) override; |
138 virtual void removedFrom(ContainerNode*) override; | 138 void removedFrom(ContainerNode*) override; |
139 | 139 |
140 virtual void svgAttributeChanged(const QualifiedName&) override; | 140 void svgAttributeChanged(const QualifiedName&) override; |
141 | 141 |
142 virtual bool selfHasRelativeLengths() const override; | 142 bool selfHasRelativeLengths() const override; |
143 | 143 |
144 void inheritViewAttributes(SVGViewElement*); | 144 void inheritViewAttributes(SVGViewElement*); |
145 | 145 |
146 void updateCurrentTranslate(); | 146 void updateCurrentTranslate(); |
147 | 147 |
148 virtual void finishParsingChildren() override; | 148 void finishParsingChildren() override; |
149 | 149 |
150 enum CheckIntersectionOrEnclosure { | 150 enum CheckIntersectionOrEnclosure { |
151 CheckIntersection, | 151 CheckIntersection, |
152 CheckEnclosure | 152 CheckEnclosure |
153 }; | 153 }; |
154 | 154 |
155 bool checkIntersectionOrEnclosure(const SVGElement&, const FloatRect&, Check
IntersectionOrEnclosure) const; | 155 bool checkIntersectionOrEnclosure(const SVGElement&, const FloatRect&, Check
IntersectionOrEnclosure) const; |
156 PassRefPtrWillBeRawPtr<StaticNodeList> collectIntersectionOrEnclosureList(co
nst FloatRect&, SVGElement*, CheckIntersectionOrEnclosure) const; | 156 PassRefPtrWillBeRawPtr<StaticNodeList> collectIntersectionOrEnclosureList(co
nst FloatRect&, SVGElement*, CheckIntersectionOrEnclosure) const; |
157 | 157 |
158 RefPtrWillBeMember<SVGAnimatedLength> m_x; | 158 RefPtrWillBeMember<SVGAnimatedLength> m_x; |
159 RefPtrWillBeMember<SVGAnimatedLength> m_y; | 159 RefPtrWillBeMember<SVGAnimatedLength> m_y; |
160 RefPtrWillBeMember<SVGAnimatedLength> m_width; | 160 RefPtrWillBeMember<SVGAnimatedLength> m_width; |
161 RefPtrWillBeMember<SVGAnimatedLength> m_height; | 161 RefPtrWillBeMember<SVGAnimatedLength> m_height; |
162 | 162 |
163 virtual AffineTransform localCoordinateSpaceTransform(SVGElement::CTMScope)
const override; | 163 AffineTransform localCoordinateSpaceTransform(SVGElement::CTMScope) const ov
erride; |
164 | 164 |
165 bool m_useCurrentView; | 165 bool m_useCurrentView; |
166 RefPtrWillBeMember<SMILTimeContainer> m_timeContainer; | 166 RefPtrWillBeMember<SMILTimeContainer> m_timeContainer; |
167 RefPtrWillBeMember<SVGPoint> m_translation; | 167 RefPtrWillBeMember<SVGPoint> m_translation; |
168 RefPtrWillBeMember<SVGViewSpec> m_viewSpec; | 168 RefPtrWillBeMember<SVGViewSpec> m_viewSpec; |
169 | 169 |
170 friend class SVGCurrentTranslateTearOff; | 170 friend class SVGCurrentTranslateTearOff; |
171 }; | 171 }; |
172 | 172 |
173 } // namespace blink | 173 } // namespace blink |
174 | 174 |
175 #endif // SVGSVGElement_h | 175 #endif // SVGSVGElement_h |
OLD | NEW |