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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 void click(); | 71 void click(); |
72 | 72 |
73 virtual void accessKeyAction(bool sendMouseEvents); | 73 virtual void accessKeyAction(bool sendMouseEvents); |
74 | 74 |
75 bool ieForbidsInsertHTML() const; | 75 bool ieForbidsInsertHTML() const; |
76 | 76 |
77 virtual bool rendererIsNeeded(const RenderStyle&); | 77 virtual bool rendererIsNeeded(const RenderStyle&); |
78 virtual RenderObject* createRenderer(RenderStyle*); | 78 virtual RenderObject* createRenderer(RenderStyle*); |
79 | 79 |
80 HTMLFormElement* formOwner() const { return virtualForm(); } | 80 virtual HTMLFormElement* formOwner() const { return 0; } |
81 | 81 |
82 HTMLFormElement* findFormAncestor() const; | 82 HTMLFormElement* findFormAncestor() const; |
83 | 83 |
84 bool hasDirectionAuto() const; | 84 bool hasDirectionAuto() const; |
85 TextDirection directionalityIfhasDirAutoAttribute(bool& isAuto) const; | 85 TextDirection directionalityIfhasDirAutoAttribute(bool& isAuto) const; |
86 | 86 |
87 virtual bool isHTMLUnknownElement() const { return false; } | 87 virtual bool isHTMLUnknownElement() const { return false; } |
88 | 88 |
89 virtual bool isLabelable() const { return false; } | 89 virtual bool isLabelable() const { return false; } |
90 // http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html
#interactive-content | 90 // http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html
#interactive-content |
(...skipping 15 matching lines...) Expand all Loading... |
106 unsigned parseBorderWidthAttribute(const AtomicString&) const; | 106 unsigned parseBorderWidthAttribute(const AtomicString&) const; |
107 | 107 |
108 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); | 108 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); |
109 void calculateAndAdjustDirectionality(); | 109 void calculateAndAdjustDirectionality(); |
110 | 110 |
111 private: | 111 private: |
112 virtual String nodeName() const OVERRIDE FINAL; | 112 virtual String nodeName() const OVERRIDE FINAL; |
113 | 113 |
114 void mapLanguageAttributeToLocale(const AtomicString&, MutableStylePropertyS
et*); | 114 void mapLanguageAttributeToLocale(const AtomicString&, MutableStylePropertyS
et*); |
115 | 115 |
116 virtual HTMLFormElement* virtualForm() const; | |
117 | |
118 PassRefPtr<DocumentFragment> textToFragment(const String&, ExceptionState&); | 116 PassRefPtr<DocumentFragment> textToFragment(const String&, ExceptionState&); |
119 | 117 |
120 void dirAttributeChanged(const AtomicString&); | 118 void dirAttributeChanged(const AtomicString&); |
121 void adjustDirectionalityIfNeededAfterChildAttributeChanged(Element* child); | 119 void adjustDirectionalityIfNeededAfterChildAttributeChanged(Element* child); |
122 void adjustDirectionalityIfNeededAfterChildrenChanged(Node* beforeChange, in
t childCountDelta); | 120 void adjustDirectionalityIfNeededAfterChildrenChanged(Node* beforeChange, in
t childCountDelta); |
123 TextDirection directionality(Node** strongDirectionalityTextNode= 0) const; | 121 TextDirection directionality(Node** strongDirectionalityTextNode= 0) const; |
124 | 122 |
125 TranslateAttributeMode translateAttributeMode() const; | 123 TranslateAttributeMode translateAttributeMode() const; |
126 | 124 |
127 const AtomicString& eventNameForAttributeName(const QualifiedName& attrName)
const; | 125 const AtomicString& eventNameForAttributeName(const QualifiedName& attrName)
const; |
128 | 126 |
129 void handleKeypressEvent(KeyboardEvent*); | 127 void handleKeypressEvent(KeyboardEvent*); |
130 bool supportsSpatialNavigationFocus() const; | 128 bool supportsSpatialNavigationFocus() const; |
131 }; | 129 }; |
132 | 130 |
133 DEFINE_NODE_TYPE_CASTS(HTMLElement, isHTMLElement()); | 131 DEFINE_NODE_TYPE_CASTS(HTMLElement, isHTMLElement()); |
134 | 132 |
135 inline HTMLElement::HTMLElement(const QualifiedName& tagName, Document& document
, ConstructionType type = CreateHTMLElement) | 133 inline HTMLElement::HTMLElement(const QualifiedName& tagName, Document& document
, ConstructionType type = CreateHTMLElement) |
136 : Element(tagName, &document, type) | 134 : Element(tagName, &document, type) |
137 { | 135 { |
138 ASSERT(!tagName.localName().isNull()); | 136 ASSERT(!tagName.localName().isNull()); |
139 ScriptWrappable::init(this); | 137 ScriptWrappable::init(this); |
140 } | 138 } |
141 | 139 |
142 } // namespace WebCore | 140 } // namespace WebCore |
143 | 141 |
144 #endif // HTMLElement_h | 142 #endif // HTMLElement_h |
OLD | NEW |