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