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

Side by Side Diff: Source/core/html/HTMLElement.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/dom/shadow/InsertionPoint.h ('k') | Source/core/svg/SVGElement.h » ('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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2004-2007, 2009, 2014 Apple Inc. All rights reserved. 4 * Copyright (C) 2004-2007, 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 108 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
109 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) OVERRIDE; 109 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) OVERRIDE;
110 unsigned parseBorderWidthAttribute(const AtomicString&) const; 110 unsigned parseBorderWidthAttribute(const AtomicString&) const;
111 111
112 virtual void childrenChanged(const ChildrenChange&) OVERRIDE; 112 virtual void childrenChanged(const ChildrenChange&) OVERRIDE;
113 void calculateAndAdjustDirectionality(); 113 void calculateAndAdjustDirectionality();
114 114
115 private: 115 private:
116 virtual String nodeName() const OVERRIDE FINAL; 116 virtual String nodeName() const OVERRIDE FINAL;
117 117
118 bool isHTMLElement() const WTF_DELETED_FUNCTION; // Hide to catch useless ca lls.
119 bool isStyledElement() const WTF_DELETED_FUNCTION; // Hide to catch useless calls.
120
118 void mapLanguageAttributeToLocale(const AtomicString&, MutableStylePropertyS et*); 121 void mapLanguageAttributeToLocale(const AtomicString&, MutableStylePropertyS et*);
119 122
120 PassRefPtrWillBeRawPtr<DocumentFragment> textToFragment(const String&, Excep tionState&); 123 PassRefPtrWillBeRawPtr<DocumentFragment> textToFragment(const String&, Excep tionState&);
121 124
122 void dirAttributeChanged(const AtomicString&); 125 void dirAttributeChanged(const AtomicString&);
123 void adjustDirectionalityIfNeededAfterChildAttributeChanged(Element* child); 126 void adjustDirectionalityIfNeededAfterChildAttributeChanged(Element* child);
124 void adjustDirectionalityIfNeededAfterChildrenChanged(const ChildrenChange&) ; 127 void adjustDirectionalityIfNeededAfterChildrenChanged(const ChildrenChange&) ;
125 TextDirection directionality(Node** strongDirectionalityTextNode= 0) const; 128 TextDirection directionality(Node** strongDirectionalityTextNode= 0) const;
126 129
127 TranslateAttributeMode translateAttributeMode() const; 130 TranslateAttributeMode translateAttributeMode() const;
(...skipping 30 matching lines...) Expand all
158 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r eturn is##thisType(node.get()); } \ 161 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r eturn is##thisType(node.get()); } \
159 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur n is##thisType(node.get()); } \ 162 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur n is##thisType(node.get()); } \
160 template <> inline bool isElementOfType<const thisType>(const HTMLElement& e lement) { return is##thisType(element); } \ 163 template <> inline bool isElementOfType<const thisType>(const HTMLElement& e lement) { return is##thisType(element); } \
161 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) 164 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType)
162 165
163 } // namespace blink 166 } // namespace blink
164 167
165 #include "core/HTMLElementTypeHelpers.h" 168 #include "core/HTMLElementTypeHelpers.h"
166 169
167 #endif // HTMLElement_h 170 #endif // HTMLElement_h
OLDNEW
« no previous file with comments | « Source/core/dom/shadow/InsertionPoint.h ('k') | Source/core/svg/SVGElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698