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

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

Issue 422463002: Hide isXXX() type checking methods in subclasses (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/html/HTMLElement.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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 // SVGFitToViewBox::parseAttribute uses reportAttributeParsingError. 222 // SVGFitToViewBox::parseAttribute uses reportAttributeParsingError.
223 friend class SVGFitToViewBox; 223 friend class SVGFitToViewBox;
224 void reportAttributeParsingError(SVGParsingError, const QualifiedName&, cons t AtomicString&); 224 void reportAttributeParsingError(SVGParsingError, const QualifiedName&, cons t AtomicString&);
225 bool hasFocusEventListeners() const; 225 bool hasFocusEventListeners() const;
226 226
227 private: 227 private:
228 // FIXME: Author shadows should be allowed 228 // FIXME: Author shadows should be allowed
229 // https://bugs.webkit.org/show_bug.cgi?id=77938 229 // https://bugs.webkit.org/show_bug.cgi?id=77938
230 virtual bool areAuthorShadowsAllowed() const OVERRIDE FINAL { return false; } 230 virtual bool areAuthorShadowsAllowed() const OVERRIDE FINAL { return false; }
231 231
232 bool isSVGElement() const WTF_DELETED_FUNCTION; // Hide to catch useless cal ls.
233 bool isStyledElement() const WTF_DELETED_FUNCTION; // Hide to catch useless calls.
234
232 RenderStyle* computedStyle(PseudoId = NOPSEUDO); 235 RenderStyle* computedStyle(PseudoId = NOPSEUDO);
233 virtual RenderStyle* virtualComputedStyle(PseudoId pseudoElementSpecifier = NOPSEUDO) OVERRIDE FINAL { return computedStyle(pseudoElementSpecifier); } 236 virtual RenderStyle* virtualComputedStyle(PseudoId pseudoElementSpecifier = NOPSEUDO) OVERRIDE FINAL { return computedStyle(pseudoElementSpecifier); }
234 virtual void willRecalcStyle(StyleRecalcChange) OVERRIDE; 237 virtual void willRecalcStyle(StyleRecalcChange) OVERRIDE;
235 238
236 void buildPendingResourcesIfNeeded(); 239 void buildPendingResourcesIfNeeded();
237 240
238 WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> > m_elementsWithRelativ eLengths; 241 WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> > m_elementsWithRelativ eLengths;
239 242
240 typedef HashMap<QualifiedName, RefPtr<SVGAnimatedPropertyBase> > AttributeTo PropertyMap; 243 typedef HashMap<QualifiedName, RefPtr<SVGAnimatedPropertyBase> > AttributeTo PropertyMap;
241 AttributeToPropertyMap m_newAttributeToPropertyMap; 244 AttributeToPropertyMap m_newAttributeToPropertyMap;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r eturn is##thisType(node.get()); } \ 284 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r eturn is##thisType(node.get()); } \
282 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur n is##thisType(node.get()); } \ 285 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur n is##thisType(node.get()); } \
283 template <> inline bool isElementOfType<const thisType>(const SVGElement& el ement) { return is##thisType(element); } \ 286 template <> inline bool isElementOfType<const thisType>(const SVGElement& el ement) { return is##thisType(element); } \
284 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) 287 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType)
285 288
286 } 289 }
287 290
288 #include "core/SVGElementTypeHelpers.h" 291 #include "core/SVGElementTypeHelpers.h"
289 292
290 #endif 293 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698