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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 void addHTMLColorToStyle(MutableStylePropertySet*, CSSPropertyID, const Stri
ng& color); | 100 void addHTMLColorToStyle(MutableStylePropertySet*, CSSPropertyID, const Stri
ng& color); |
101 | 101 |
102 void applyAlignmentAttributeToStyle(const AtomicString&, MutableStylePropert
ySet*); | 102 void applyAlignmentAttributeToStyle(const AtomicString&, MutableStylePropert
ySet*); |
103 void applyBorderAttributeToStyle(const AtomicString&, MutableStylePropertySe
t*); | 103 void applyBorderAttributeToStyle(const AtomicString&, MutableStylePropertySe
t*); |
104 | 104 |
105 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 105 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
106 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; | 106 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; |
107 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; | 107 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; |
108 unsigned parseBorderWidthAttribute(const AtomicString&) const; | 108 unsigned parseBorderWidthAttribute(const AtomicString&) const; |
109 | 109 |
110 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE; | 110 virtual void childrenChanged(const ChildrenChange&) OVERRIDE; |
111 void calculateAndAdjustDirectionality(); | 111 void calculateAndAdjustDirectionality(); |
112 | 112 |
113 private: | 113 private: |
114 virtual String nodeName() const OVERRIDE FINAL; | 114 virtual String nodeName() const OVERRIDE FINAL; |
115 | 115 |
116 void mapLanguageAttributeToLocale(const AtomicString&, MutableStylePropertyS
et*); | 116 void mapLanguageAttributeToLocale(const AtomicString&, MutableStylePropertyS
et*); |
117 | 117 |
118 PassRefPtrWillBeRawPtr<DocumentFragment> textToFragment(const String&, Excep
tionState&); | 118 PassRefPtrWillBeRawPtr<DocumentFragment> textToFragment(const String&, Excep
tionState&); |
119 | 119 |
120 void dirAttributeChanged(const AtomicString&); | 120 void dirAttributeChanged(const AtomicString&); |
121 void adjustDirectionalityIfNeededAfterChildAttributeChanged(Element* child); | 121 void adjustDirectionalityIfNeededAfterChildAttributeChanged(Element* child); |
122 void adjustDirectionalityIfNeededAfterChildrenChanged(Node* beforeChange, in
t childCountDelta); | 122 void adjustDirectionalityIfNeededAfterChildrenChanged(const ChildrenChange&)
; |
123 TextDirection directionality(Node** strongDirectionalityTextNode= 0) const; | 123 TextDirection directionality(Node** strongDirectionalityTextNode= 0) const; |
124 | 124 |
125 TranslateAttributeMode translateAttributeMode() const; | 125 TranslateAttributeMode translateAttributeMode() const; |
126 | 126 |
127 void handleKeypressEvent(KeyboardEvent*); | 127 void handleKeypressEvent(KeyboardEvent*); |
128 }; | 128 }; |
129 | 129 |
130 DEFINE_ELEMENT_TYPE_CASTS(HTMLElement, isHTMLElement()); | 130 DEFINE_ELEMENT_TYPE_CASTS(HTMLElement, isHTMLElement()); |
131 | 131 |
132 template <> inline bool isElementOfType<const HTMLElement>(const Node& node) { r
eturn node.isHTMLElement(); } | 132 template <> inline bool isElementOfType<const HTMLElement>(const Node& node) { r
eturn node.isHTMLElement(); } |
(...skipping 19 matching lines...) Expand all Loading... |
152 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 PassRefPtr<T>& node) { r
eturn is##thisType(node.get()); } \ |
153 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur
n is##thisType(node.get()); } \ | 153 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur
n is##thisType(node.get()); } \ |
154 template <> inline bool isElementOfType<const thisType>(const HTMLElement& e
lement) { return is##thisType(element); } \ | 154 template <> inline bool isElementOfType<const thisType>(const HTMLElement& e
lement) { return is##thisType(element); } \ |
155 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) | 155 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) |
156 | 156 |
157 } // namespace WebCore | 157 } // namespace WebCore |
158 | 158 |
159 #include "core/HTMLElementTypeHelpers.h" | 159 #include "core/HTMLElementTypeHelpers.h" |
160 | 160 |
161 #endif // HTMLElement_h | 161 #endif // HTMLElement_h |
OLD | NEW |