| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 80 |
| 81 virtual bool isHTMLUnknownElement() const { return false; } | 81 virtual bool isHTMLUnknownElement() const { return false; } |
| 82 | 82 |
| 83 virtual bool isLabelable() const { return false; } | 83 virtual bool isLabelable() const { return false; } |
| 84 // http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html
#interactive-content | 84 // http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html
#interactive-content |
| 85 virtual bool isInteractiveContent() const; | 85 virtual bool isInteractiveContent() const; |
| 86 virtual void defaultEventHandler(Event*) OVERRIDE; | 86 virtual void defaultEventHandler(Event*) OVERRIDE; |
| 87 | 87 |
| 88 static const AtomicString& eventNameForAttributeName(const QualifiedName& at
trName); | 88 static const AtomicString& eventNameForAttributeName(const QualifiedName& at
trName); |
| 89 | 89 |
| 90 virtual bool matchesReadOnlyPseudoClass() const OVERRIDE; |
| 91 virtual bool matchesReadWritePseudoClass() const OVERRIDE; |
| 92 |
| 90 protected: | 93 protected: |
| 91 HTMLElement(const QualifiedName& tagName, Document&, ConstructionType); | 94 HTMLElement(const QualifiedName& tagName, Document&, ConstructionType); |
| 92 | 95 |
| 93 void addHTMLLengthToStyle(MutableStylePropertySet*, CSSPropertyID, const Str
ing& value); | 96 void addHTMLLengthToStyle(MutableStylePropertySet*, CSSPropertyID, const Str
ing& value); |
| 94 void addHTMLColorToStyle(MutableStylePropertySet*, CSSPropertyID, const Stri
ng& color); | 97 void addHTMLColorToStyle(MutableStylePropertySet*, CSSPropertyID, const Stri
ng& color); |
| 95 | 98 |
| 96 void applyAlignmentAttributeToStyle(const AtomicString&, MutableStylePropert
ySet*); | 99 void applyAlignmentAttributeToStyle(const AtomicString&, MutableStylePropert
ySet*); |
| 97 void applyBorderAttributeToStyle(const AtomicString&, MutableStylePropertySe
t*); | 100 void applyBorderAttributeToStyle(const AtomicString&, MutableStylePropertySe
t*); |
| 98 | 101 |
| 99 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 102 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 127 inline HTMLElement::HTMLElement(const QualifiedName& tagName, Document& document
, ConstructionType type = CreateHTMLElement) | 130 inline HTMLElement::HTMLElement(const QualifiedName& tagName, Document& document
, ConstructionType type = CreateHTMLElement) |
| 128 : Element(tagName, &document, type) | 131 : Element(tagName, &document, type) |
| 129 { | 132 { |
| 130 ASSERT(!tagName.localName().isNull()); | 133 ASSERT(!tagName.localName().isNull()); |
| 131 ScriptWrappable::init(this); | 134 ScriptWrappable::init(this); |
| 132 } | 135 } |
| 133 | 136 |
| 134 } // namespace WebCore | 137 } // namespace WebCore |
| 135 | 138 |
| 136 #endif // HTMLElement_h | 139 #endif // HTMLElement_h |
| OLD | NEW |