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

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

Issue 1765933003: style: Rename the PseudoId enum values to CamelCase and prefix them. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: enum-clash-PseudoId: none Created 4 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyleConstants.h ('k') | no next file » | 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 bool addEventListenerInternal(const AtomicString& eventType, PassRefPtrWillB eRawPtr<EventListener>, const EventListenerOptions&) final; 230 bool addEventListenerInternal(const AtomicString& eventType, PassRefPtrWillB eRawPtr<EventListener>, const EventListenerOptions&) final;
231 bool removeEventListenerInternal(const AtomicString& eventType, PassRefPtrWi llBeRawPtr<EventListener>, const EventListenerOptions&) final; 231 bool removeEventListenerInternal(const AtomicString& eventType, PassRefPtrWi llBeRawPtr<EventListener>, const EventListenerOptions&) final;
232 232
233 private: 233 private:
234 bool isSVGElement() const = delete; // This will catch anyone doing an unnec essary check. 234 bool isSVGElement() const = delete; // This will catch anyone doing an unnec essary check.
235 bool isStyledElement() const = delete; // This will catch anyone doing an un necessary check. 235 bool isStyledElement() const = delete; // This will catch anyone doing an un necessary check.
236 236
237 const ComputedStyle* ensureComputedStyle(PseudoId = NOPSEUDO); 237 const ComputedStyle* ensureComputedStyle(PseudoId = PseudoIdNone);
238 const ComputedStyle* virtualEnsureComputedStyle(PseudoId pseudoElementSpecif ier = NOPSEUDO) final { return ensureComputedStyle(pseudoElementSpecifier); } 238 const ComputedStyle* virtualEnsureComputedStyle(PseudoId pseudoElementSpecif ier = PseudoIdNone) final { return ensureComputedStyle(pseudoElementSpecifier); }
239 void willRecalcStyle(StyleRecalcChange) override; 239 void willRecalcStyle(StyleRecalcChange) override;
240 240
241 void buildPendingResourcesIfNeeded(); 241 void buildPendingResourcesIfNeeded();
242 242
243 WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement>> m_elementsWithRelative Lengths; 243 WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement>> m_elementsWithRelative Lengths;
244 244
245 typedef WillBeHeapHashMap<QualifiedName, RefPtrWillBeMember<SVGAnimatedPrope rtyBase>> AttributeToPropertyMap; 245 typedef WillBeHeapHashMap<QualifiedName, RefPtrWillBeMember<SVGAnimatedPrope rtyBase>> AttributeToPropertyMap;
246 AttributeToPropertyMap m_attributeToPropertyMap; 246 AttributeToPropertyMap m_attributeToPropertyMap;
247 247
248 #if ENABLE(ASSERT) 248 #if ENABLE(ASSERT)
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 template<typename T> inline bool is##thisType(const PassRefPtrWillBeRawPtr<T >& node) { return is##thisType(node.get()); } \ 286 template<typename T> inline bool is##thisType(const PassRefPtrWillBeRawPtr<T >& node) { return is##thisType(node.get()); } \
287 template<typename T> inline bool is##thisType(const RefPtrWillBeMember<T>& n ode) { return is##thisType(node.get()); } \ 287 template<typename T> inline bool is##thisType(const RefPtrWillBeMember<T>& n ode) { return is##thisType(node.get()); } \
288 template <> inline bool isElementOfType<const thisType>(const SVGElement& el ement) { return is##thisType(element); } \ 288 template <> inline bool isElementOfType<const thisType>(const SVGElement& el ement) { return is##thisType(element); } \
289 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) 289 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType)
290 290
291 } // namespace blink 291 } // namespace blink
292 292
293 #include "core/SVGElementTypeHelpers.h" 293 #include "core/SVGElementTypeHelpers.h"
294 294
295 #endif // SVGElement_h 295 #endif // SVGElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyleConstants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698