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

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

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 8 months 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGDescElement.h ('k') | Source/core/svg/SVGElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 void cursorElementRemoved(); 123 void cursorElementRemoved();
124 void cursorImageValueRemoved(); 124 void cursorImageValueRemoved();
125 #endif 125 #endif
126 126
127 SVGElement* correspondingElement(); 127 SVGElement* correspondingElement();
128 void setCorrespondingElement(SVGElement*); 128 void setCorrespondingElement(SVGElement*);
129 SVGUseElement* correspondingUseElement() const; 129 SVGUseElement* correspondingUseElement() const;
130 130
131 void synchronizeAnimatedSVGAttribute(const QualifiedName&) const; 131 void synchronizeAnimatedSVGAttribute(const QualifiedName&) const;
132 132
133 virtual PassRefPtr<LayoutStyle> customStyleForLayoutObject() override final; 133 virtual PassRefPtr<ComputedStyle> customStyleForLayoutObject() override fina l;
134 134
135 virtual void synchronizeRequiredFeatures() { } 135 virtual void synchronizeRequiredFeatures() { }
136 virtual void synchronizeRequiredExtensions() { } 136 virtual void synchronizeRequiredExtensions() { }
137 virtual void synchronizeSystemLanguage() { } 137 virtual void synchronizeSystemLanguage() { }
138 138
139 #if ENABLE(ASSERT) 139 #if ENABLE(ASSERT)
140 virtual bool isAnimatableAttribute(const QualifiedName&) const; 140 virtual bool isAnimatableAttribute(const QualifiedName&) const;
141 #endif 141 #endif
142 142
143 MutableStylePropertySet* animatedSMILStyleProperties() const; 143 MutableStylePropertySet* animatedSMILStyleProperties() const;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 224
225 // SVGFitToViewBox::parseAttribute uses reportAttributeParsingError. 225 // SVGFitToViewBox::parseAttribute uses reportAttributeParsingError.
226 friend class SVGFitToViewBox; 226 friend class SVGFitToViewBox;
227 void reportAttributeParsingError(SVGParsingError, const QualifiedName&, cons t AtomicString&); 227 void reportAttributeParsingError(SVGParsingError, const QualifiedName&, cons t AtomicString&);
228 bool hasFocusEventListeners() const; 228 bool hasFocusEventListeners() const;
229 229
230 private: 230 private:
231 bool isSVGElement() const = delete; // This will catch anyone doing an unnec essary check. 231 bool isSVGElement() const = delete; // This will catch anyone doing an unnec essary check.
232 bool isStyledElement() const = delete; // This will catch anyone doing an un necessary check. 232 bool isStyledElement() const = delete; // This will catch anyone doing an un necessary check.
233 233
234 const LayoutStyle* computedStyle(PseudoId = NOPSEUDO); 234 const ComputedStyle* ensureComputedStyle(PseudoId = NOPSEUDO);
235 virtual const LayoutStyle* virtualComputedStyle(PseudoId pseudoElementSpecif ier = NOPSEUDO) override final { return computedStyle(pseudoElementSpecifier); } 235 virtual const ComputedStyle* virtualEnsureComputedStyle(PseudoId pseudoEleme ntSpecifier = NOPSEUDO) override final { return ensureComputedStyle(pseudoElemen tSpecifier); }
236 virtual void willRecalcStyle(StyleRecalcChange) override; 236 virtual void willRecalcStyle(StyleRecalcChange) override;
237 237
238 void buildPendingResourcesIfNeeded(); 238 void buildPendingResourcesIfNeeded();
239 239
240 WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement>> m_elementsWithRelative Lengths; 240 WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement>> m_elementsWithRelative Lengths;
241 241
242 typedef WillBeHeapHashMap<QualifiedName, RefPtrWillBeMember<SVGAnimatedPrope rtyBase>> AttributeToPropertyMap; 242 typedef WillBeHeapHashMap<QualifiedName, RefPtrWillBeMember<SVGAnimatedPrope rtyBase>> AttributeToPropertyMap;
243 AttributeToPropertyMap m_attributeToPropertyMap; 243 AttributeToPropertyMap m_attributeToPropertyMap;
244 244
245 #if ENABLE(ASSERT) 245 #if ENABLE(ASSERT)
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 template<typename T> inline bool is##thisType(const PassRefPtrWillBeRawPtr<T >& node) { return is##thisType(node.get()); } \ 282 template<typename T> inline bool is##thisType(const PassRefPtrWillBeRawPtr<T >& node) { return is##thisType(node.get()); } \
283 template<typename T> inline bool is##thisType(const RefPtrWillBeMember<T>& n ode) { return is##thisType(node.get()); } \ 283 template<typename T> inline bool is##thisType(const RefPtrWillBeMember<T>& n ode) { return is##thisType(node.get()); } \
284 template <> inline bool isElementOfType<const thisType>(const SVGElement& el ement) { return is##thisType(element); } \ 284 template <> inline bool isElementOfType<const thisType>(const SVGElement& el ement) { return is##thisType(element); } \
285 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) 285 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType)
286 286
287 } // namespace blink 287 } // namespace blink
288 288
289 #include "core/SVGElementTypeHelpers.h" 289 #include "core/SVGElementTypeHelpers.h"
290 290
291 #endif // SVGElement_h 291 #endif // SVGElement_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGDescElement.h ('k') | Source/core/svg/SVGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698