| 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 12 matching lines...) Expand all Loading... |
| 23 #ifndef HTMLElement_h | 23 #ifndef HTMLElement_h |
| 24 #define HTMLElement_h | 24 #define HTMLElement_h |
| 25 | 25 |
| 26 #include "core/dom/Element.h" | 26 #include "core/dom/Element.h" |
| 27 | 27 |
| 28 namespace WebCore { | 28 namespace WebCore { |
| 29 | 29 |
| 30 class DocumentFragment; | 30 class DocumentFragment; |
| 31 class HTMLCollection; | 31 class HTMLCollection; |
| 32 class HTMLFormElement; | 32 class HTMLFormElement; |
| 33 class HTMLMenuElement; |
| 33 class ExceptionState; | 34 class ExceptionState; |
| 34 | 35 |
| 35 enum TranslateAttributeMode { | 36 enum TranslateAttributeMode { |
| 36 TranslateAttributeYes, | 37 TranslateAttributeYes, |
| 37 TranslateAttributeNo, | 38 TranslateAttributeNo, |
| 38 TranslateAttributeInherit | 39 TranslateAttributeInherit |
| 39 }; | 40 }; |
| 40 | 41 |
| 41 class HTMLElement : public Element { | 42 class HTMLElement : public Element { |
| 42 public: | 43 public: |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 virtual bool isLabelable() const { return false; } | 84 virtual bool isLabelable() const { return false; } |
| 84 // 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 |
| 85 virtual bool isInteractiveContent() const; | 86 virtual bool isInteractiveContent() const; |
| 86 virtual void defaultEventHandler(Event*) OVERRIDE; | 87 virtual void defaultEventHandler(Event*) OVERRIDE; |
| 87 | 88 |
| 88 static const AtomicString& eventNameForAttributeName(const QualifiedName& at
trName); | 89 static const AtomicString& eventNameForAttributeName(const QualifiedName& at
trName); |
| 89 | 90 |
| 90 virtual bool matchesReadOnlyPseudoClass() const OVERRIDE; | 91 virtual bool matchesReadOnlyPseudoClass() const OVERRIDE; |
| 91 virtual bool matchesReadWritePseudoClass() const OVERRIDE; | 92 virtual bool matchesReadWritePseudoClass() const OVERRIDE; |
| 92 | 93 |
| 94 HTMLMenuElement* menuElement() const; |
| 95 |
| 93 protected: | 96 protected: |
| 94 HTMLElement(const QualifiedName& tagName, Document&, ConstructionType); | 97 HTMLElement(const QualifiedName& tagName, Document&, ConstructionType); |
| 95 | 98 |
| 96 void addHTMLLengthToStyle(MutableStylePropertySet*, CSSPropertyID, const Str
ing& value); | 99 void addHTMLLengthToStyle(MutableStylePropertySet*, CSSPropertyID, const Str
ing& value); |
| 97 void addHTMLColorToStyle(MutableStylePropertySet*, CSSPropertyID, const Stri
ng& color); | 100 void addHTMLColorToStyle(MutableStylePropertySet*, CSSPropertyID, const Stri
ng& color); |
| 98 | 101 |
| 99 void applyAlignmentAttributeToStyle(const AtomicString&, MutableStylePropert
ySet*); | 102 void applyAlignmentAttributeToStyle(const AtomicString&, MutableStylePropert
ySet*); |
| 100 void applyBorderAttributeToStyle(const AtomicString&, MutableStylePropertySe
t*); | 103 void applyBorderAttributeToStyle(const AtomicString&, MutableStylePropertySe
t*); |
| 101 | 104 |
| 102 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 105 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 { | 138 { |
| 136 ASSERT(!tagName.localName().isNull()); | 139 ASSERT(!tagName.localName().isNull()); |
| 137 ScriptWrappable::init(this); | 140 ScriptWrappable::init(this); |
| 138 } | 141 } |
| 139 | 142 |
| 140 } // namespace WebCore | 143 } // namespace WebCore |
| 141 | 144 |
| 142 #include "HTMLElementTypeHelpers.h" | 145 #include "HTMLElementTypeHelpers.h" |
| 143 | 146 |
| 144 #endif // HTMLElement_h | 147 #endif // HTMLElement_h |
| OLD | NEW |