| OLD | NEW |
| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 static const AtomicString& eventNameForAttributeName(const QualifiedName& at
trName); | 92 static const AtomicString& eventNameForAttributeName(const QualifiedName& at
trName); |
| 93 | 93 |
| 94 virtual bool matchesReadOnlyPseudoClass() const override; | 94 virtual bool matchesReadOnlyPseudoClass() const override; |
| 95 virtual bool matchesReadWritePseudoClass() const override; | 95 virtual bool matchesReadWritePseudoClass() const override; |
| 96 | 96 |
| 97 static const AtomicString& eventParameterName(); | 97 static const AtomicString& eventParameterName(); |
| 98 | 98 |
| 99 HTMLMenuElement* contextMenu() const; | 99 HTMLMenuElement* contextMenu() const; |
| 100 void setContextMenu(HTMLMenuElement*); | 100 void setContextMenu(HTMLMenuElement*); |
| 101 | 101 |
| 102 virtual void ensureFallbackContent() { } | |
| 103 virtual void ensurePrimaryContent() { } | |
| 104 virtual String altText() const { return String(); } | |
| 105 | |
| 106 protected: | 102 protected: |
| 107 HTMLElement(const QualifiedName& tagName, Document&, ConstructionType); | 103 HTMLElement(const QualifiedName& tagName, Document&, ConstructionType); |
| 108 | 104 |
| 109 void addHTMLLengthToStyle(MutableStylePropertySet*, CSSPropertyID, const Str
ing& value); | 105 void addHTMLLengthToStyle(MutableStylePropertySet*, CSSPropertyID, const Str
ing& value); |
| 110 void addHTMLColorToStyle(MutableStylePropertySet*, CSSPropertyID, const Stri
ng& color); | 106 void addHTMLColorToStyle(MutableStylePropertySet*, CSSPropertyID, const Stri
ng& color); |
| 111 | 107 |
| 112 void applyAlignmentAttributeToStyle(const AtomicString&, MutableStylePropert
ySet*); | 108 void applyAlignmentAttributeToStyle(const AtomicString&, MutableStylePropert
ySet*); |
| 113 void applyBorderAttributeToStyle(const AtomicString&, MutableStylePropertySe
t*); | 109 void applyBorderAttributeToStyle(const AtomicString&, MutableStylePropertySe
t*); |
| 114 | 110 |
| 115 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; | 111 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r
eturn is##thisType(node.get()); } \ | 173 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r
eturn is##thisType(node.get()); } \ |
| 178 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur
n is##thisType(node.get()); } \ | 174 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur
n is##thisType(node.get()); } \ |
| 179 template <> inline bool isElementOfType<const thisType>(const HTMLElement& e
lement) { return is##thisType(element); } \ | 175 template <> inline bool isElementOfType<const thisType>(const HTMLElement& e
lement) { return is##thisType(element); } \ |
| 180 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) | 176 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) |
| 181 | 177 |
| 182 } // namespace blink | 178 } // namespace blink |
| 183 | 179 |
| 184 #include "core/HTMLElementTypeHelpers.h" | 180 #include "core/HTMLElementTypeHelpers.h" |
| 185 | 181 |
| 186 #endif // HTMLElement_h | 182 #endif // HTMLElement_h |
| OLD | NEW |