| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 bool matchesReadWritePseudoClass() const override; | 96 bool matchesReadWritePseudoClass() const override; |
| 97 | 97 |
| 98 static const AtomicString& eventParameterName(); | 98 static const AtomicString& eventParameterName(); |
| 99 | 99 |
| 100 HTMLMenuElement* assignedContextMenu() const; | 100 HTMLMenuElement* assignedContextMenu() const; |
| 101 HTMLMenuElement* contextMenu() const; | 101 HTMLMenuElement* contextMenu() const; |
| 102 void setContextMenu(HTMLMenuElement*); | 102 void setContextMenu(HTMLMenuElement*); |
| 103 | 103 |
| 104 virtual String altText() const { return String(); } | 104 virtual String altText() const { return String(); } |
| 105 | 105 |
| 106 int offsetLeftForBinding(); |
| 107 int offsetTopForBinding(); |
| 108 int offsetWidthForBinding(); |
| 109 int offsetHeightForBinding(); |
| 110 |
| 111 Element* unclosedOffsetParent(); |
| 112 |
| 106 protected: | 113 protected: |
| 107 HTMLElement(const QualifiedName& tagName, Document&, ConstructionType); | 114 HTMLElement(const QualifiedName& tagName, Document&, ConstructionType); |
| 108 | 115 |
| 109 void addHTMLLengthToStyle(MutableStylePropertySet*, CSSPropertyID, const Str
ing& value); | 116 void addHTMLLengthToStyle(MutableStylePropertySet*, CSSPropertyID, const Str
ing& value); |
| 110 void addHTMLColorToStyle(MutableStylePropertySet*, CSSPropertyID, const Stri
ng& color); | 117 void addHTMLColorToStyle(MutableStylePropertySet*, CSSPropertyID, const Stri
ng& color); |
| 111 | 118 |
| 112 void applyAlignmentAttributeToStyle(const AtomicString&, MutableStylePropert
ySet*); | 119 void applyAlignmentAttributeToStyle(const AtomicString&, MutableStylePropert
ySet*); |
| 113 void applyBorderAttributeToStyle(const AtomicString&, MutableStylePropertySe
t*); | 120 void applyBorderAttributeToStyle(const AtomicString&, MutableStylePropertySe
t*); |
| 114 | 121 |
| 115 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS
tring&) override; | 122 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS
tring&) override; |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r
eturn is##thisType(node.get()); } \ | 188 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r
eturn is##thisType(node.get()); } \ |
| 182 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur
n is##thisType(node.get()); } \ | 189 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur
n is##thisType(node.get()); } \ |
| 183 template <> inline bool isElementOfType<const thisType>(const HTMLElement& e
lement) { return is##thisType(element); } \ | 190 template <> inline bool isElementOfType<const thisType>(const HTMLElement& e
lement) { return is##thisType(element); } \ |
| 184 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) | 191 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) |
| 185 | 192 |
| 186 } // namespace blink | 193 } // namespace blink |
| 187 | 194 |
| 188 #include "core/HTMLElementTypeHelpers.h" | 195 #include "core/HTMLElementTypeHelpers.h" |
| 189 | 196 |
| 190 #endif // HTMLElement_h | 197 #endif // HTMLElement_h |
| OLD | NEW |