| 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, 2005, 2006, 2007, 2009 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004, 2005, 2006, 2007, 2009 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 virtual bool isHTMLUnknownElement() const { return false; } | 81 virtual bool isHTMLUnknownElement() const { return false; } |
| 82 virtual bool isPluginElement() const { return false; } | 82 virtual bool isPluginElement() const { return false; } |
| 83 | 83 |
| 84 virtual bool isLabelable() const { return false; } | 84 virtual bool isLabelable() const { return false; } |
| 85 // http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html
#interactive-content | 85 // http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html
#interactive-content |
| 86 virtual bool isInteractiveContent() const; | 86 virtual bool isInteractiveContent() const; |
| 87 virtual void defaultEventHandler(Event*) OVERRIDE; | 87 virtual void defaultEventHandler(Event*) OVERRIDE; |
| 88 | 88 |
| 89 static const AtomicString& eventNameForAttributeName(const QualifiedName& at
trName); | 89 static const AtomicString& eventNameForAttributeName(const QualifiedName& at
trName); |
| 90 | 90 |
| 91 virtual bool matchesReadOnlyPseudoClass() const OVERRIDE; | |
| 92 virtual bool matchesReadWritePseudoClass() const OVERRIDE; | |
| 93 | |
| 94 protected: | 91 protected: |
| 95 HTMLElement(const QualifiedName& tagName, Document&, ConstructionType); | 92 HTMLElement(const QualifiedName& tagName, Document&, ConstructionType); |
| 96 | 93 |
| 97 void addHTMLLengthToStyle(MutableStylePropertySet*, CSSPropertyID, const Str
ing& value); | 94 void addHTMLLengthToStyle(MutableStylePropertySet*, CSSPropertyID, const Str
ing& value); |
| 98 void addHTMLColorToStyle(MutableStylePropertySet*, CSSPropertyID, const Stri
ng& color); | 95 void addHTMLColorToStyle(MutableStylePropertySet*, CSSPropertyID, const Stri
ng& color); |
| 99 | 96 |
| 100 void applyAlignmentAttributeToStyle(const AtomicString&, MutableStylePropert
ySet*); | 97 void applyAlignmentAttributeToStyle(const AtomicString&, MutableStylePropert
ySet*); |
| 101 void applyBorderAttributeToStyle(const AtomicString&, MutableStylePropertySe
t*); | 98 void applyBorderAttributeToStyle(const AtomicString&, MutableStylePropertySe
t*); |
| 102 | 99 |
| 103 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 100 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r
eturn is##thisType(node.get()); } \ | 148 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r
eturn is##thisType(node.get()); } \ |
| 152 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur
n is##thisType(node.get()); } \ | 149 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur
n is##thisType(node.get()); } \ |
| 153 template <> inline bool isElementOfType<const thisType>(const HTMLElement& e
lement) { return is##thisType(element); } \ | 150 template <> inline bool isElementOfType<const thisType>(const HTMLElement& e
lement) { return is##thisType(element); } \ |
| 154 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) | 151 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) |
| 155 | 152 |
| 156 } // namespace WebCore | 153 } // namespace WebCore |
| 157 | 154 |
| 158 #include "HTMLElementTypeHelpers.h" | 155 #include "HTMLElementTypeHelpers.h" |
| 159 | 156 |
| 160 #endif // HTMLElement_h | 157 #endif // HTMLElement_h |
| OLD | NEW |