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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGElement.h

Issue 1455943002: [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CORE_EXPORT Created 5 years, 1 month 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) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 * Copyright (C) 2009, 2014 Apple Inc. All rights reserved. 4 * Copyright (C) 2009, 2014 Apple Inc. All rights reserved.
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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 MutableStylePropertySet* animatedSMILStyleProperties() const; 139 MutableStylePropertySet* animatedSMILStyleProperties() const;
140 MutableStylePropertySet* ensureAnimatedSMILStyleProperties(); 140 MutableStylePropertySet* ensureAnimatedSMILStyleProperties();
141 void setUseOverrideComputedStyle(bool); 141 void setUseOverrideComputedStyle(bool);
142 142
143 virtual bool haveLoadedRequiredResources(); 143 virtual bool haveLoadedRequiredResources();
144 144
145 void invalidateRelativeLengthClients(SubtreeLayoutScope* = 0); 145 void invalidateRelativeLengthClients(SubtreeLayoutScope* = 0);
146 146
147 void addToPropertyMap(PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase>); 147 void addToPropertyMap(PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase>);
148 148
149 SVGAnimatedString* className() { return m_className.get(); } 149 SVGAnimatedString* className();
150 150
151 bool inUseShadowTree() const; 151 bool inUseShadowTree() const;
152 152
153 SVGElementSet* setOfIncomingReferences() const; 153 SVGElementSet* setOfIncomingReferences() const;
154 void addReferenceTo(SVGElement*); 154 void addReferenceTo(SVGElement*);
155 void rebuildAllIncomingReferences(); 155 void rebuildAllIncomingReferences();
156 void removeAllIncomingReferences(); 156 void removeAllIncomingReferences();
157 void removeAllOutgoingReferences(); 157 void removeAllOutgoingReferences();
158 158
159 class InvalidationGuard { 159 class InvalidationGuard {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 void childrenChanged(const ChildrenChange&) override; 201 void childrenChanged(const ChildrenChange&) override;
202 202
203 static CSSPropertyID cssPropertyIdForSVGAttributeName(const QualifiedName&); 203 static CSSPropertyID cssPropertyIdForSVGAttributeName(const QualifiedName&);
204 void updateRelativeLengthsInformation() { updateRelativeLengthsInformation(s elfHasRelativeLengths(), this); } 204 void updateRelativeLengthsInformation() { updateRelativeLengthsInformation(s elfHasRelativeLengths(), this); }
205 void updateRelativeLengthsInformation(bool hasRelativeLengths, SVGElement*); 205 void updateRelativeLengthsInformation(bool hasRelativeLengths, SVGElement*);
206 static void markForLayoutAndParentResourceInvalidation(LayoutObject*); 206 static void markForLayoutAndParentResourceInvalidation(LayoutObject*);
207 207
208 virtual bool selfHasRelativeLengths() const { return false; } 208 virtual bool selfHasRelativeLengths() const { return false; }
209 209
210 SVGElementRareData* ensureSVGRareData(); 210 SVGElementRareData* ensureSVGRareData();
211 inline bool hasSVGRareData() const { return m_SVGRareData; } 211 bool hasSVGRareData() const;
212 inline SVGElementRareData* svgRareData() const 212 SVGElementRareData* svgRareData() const;
213 {
214 ASSERT(m_SVGRareData);
215 return m_SVGRareData.get();
216 }
217 213
218 // SVGFitToViewBox::parseAttribute uses reportAttributeParsingError. 214 // SVGFitToViewBox::parseAttribute uses reportAttributeParsingError.
219 friend class SVGFitToViewBox; 215 friend class SVGFitToViewBox;
220 void reportAttributeParsingError(SVGParsingError, const QualifiedName&, cons t AtomicString&); 216 void reportAttributeParsingError(SVGParsingError, const QualifiedName&, cons t AtomicString&);
221 bool hasFocusEventListeners() const; 217 bool hasFocusEventListeners() const;
222 218
223 bool addEventListenerInternal(const AtomicString& eventType, PassRefPtrWillB eRawPtr<EventListener>, const EventListenerOptions&) final; 219 bool addEventListenerInternal(const AtomicString& eventType, PassRefPtrWillB eRawPtr<EventListener>, const EventListenerOptions&) final;
224 bool removeEventListenerInternal(const AtomicString& eventType, PassRefPtrWi llBeRawPtr<EventListener>, const EventListenerOptions&) final; 220 bool removeEventListenerInternal(const AtomicString& eventType, PassRefPtrWi llBeRawPtr<EventListener>, const EventListenerOptions&) final;
225 221
226 private: 222 private:
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 template<typename T> inline bool is##thisType(const PassRefPtrWillBeRawPtr<T >& node) { return is##thisType(node.get()); } \ 275 template<typename T> inline bool is##thisType(const PassRefPtrWillBeRawPtr<T >& node) { return is##thisType(node.get()); } \
280 template<typename T> inline bool is##thisType(const RefPtrWillBeMember<T>& n ode) { return is##thisType(node.get()); } \ 276 template<typename T> inline bool is##thisType(const RefPtrWillBeMember<T>& n ode) { return is##thisType(node.get()); } \
281 template <> inline bool isElementOfType<const thisType>(const SVGElement& el ement) { return is##thisType(element); } \ 277 template <> inline bool isElementOfType<const thisType>(const SVGElement& el ement) { return is##thisType(element); } \
282 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) 278 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType)
283 279
284 } // namespace blink 280 } // namespace blink
285 281
286 #include "core/SVGElementTypeHelpers.h" 282 #include "core/SVGElementTypeHelpers.h"
287 283
288 #endif // SVGElement_h 284 #endif // SVGElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGAnimatedNumber.cpp ('k') | third_party/WebKit/Source/core/svg/SVGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698