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