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 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights
reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights
reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 public: | 92 public: |
93 NoEventDispatchAssertion() { } | 93 NoEventDispatchAssertion() { } |
94 class AllowSVGImageEvents { | 94 class AllowSVGImageEvents { |
95 public: | 95 public: |
96 AllowSVGImageEvents() { } | 96 AllowSVGImageEvents() { } |
97 }; | 97 }; |
98 }; | 98 }; |
99 #endif | 99 #endif |
100 | 100 |
101 enum DynamicRestyleFlags { | 101 enum DynamicRestyleFlags { |
102 ChildrenAffectedByFocus = 1 << 0, | 102 ChildrenOrSiblingsAffectedByFocus = 1 << 0, |
103 ChildrenAffectedByHover = 1 << 1, | 103 ChildrenOrSiblingsAffectedByHover = 1 << 1, |
104 ChildrenAffectedByActive = 1 << 2, | 104 ChildrenOrSiblingsAffectedByActive = 1 << 2, |
105 ChildrenAffectedByDrag = 1 << 3, | 105 ChildrenOrSiblingsAffectedByDrag = 1 << 3, |
106 ChildrenAffectedByFirstChildRules = 1 << 4, | 106 ChildrenAffectedByFirstChildRules = 1 << 4, |
107 ChildrenAffectedByLastChildRules = 1 << 5, | 107 ChildrenAffectedByLastChildRules = 1 << 5, |
108 ChildrenAffectedByDirectAdjacentRules = 1 << 6, | 108 ChildrenAffectedByDirectAdjacentRules = 1 << 6, |
109 ChildrenAffectedByIndirectAdjacentRules = 1 << 7, | 109 ChildrenAffectedByIndirectAdjacentRules = 1 << 7, |
110 ChildrenAffectedByForwardPositionalRules = 1 << 8, | 110 ChildrenAffectedByForwardPositionalRules = 1 << 8, |
111 ChildrenAffectedByBackwardPositionalRules = 1 << 9, | 111 ChildrenAffectedByBackwardPositionalRules = 1 << 9, |
112 | 112 |
113 NumberOfDynamicRestyleFlags = 10, | 113 NumberOfDynamicRestyleFlags = 10, |
114 }; | 114 }; |
115 | 115 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 void cloneChildNodes(ContainerNode* clone); | 163 void cloneChildNodes(ContainerNode* clone); |
164 | 164 |
165 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; | 165 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; |
166 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE; | 166 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE; |
167 virtual LayoutRect boundingBox() const OVERRIDE FINAL; | 167 virtual LayoutRect boundingBox() const OVERRIDE FINAL; |
168 virtual void setFocus(bool) OVERRIDE; | 168 virtual void setFocus(bool) OVERRIDE; |
169 void focusStateChanged(); | 169 void focusStateChanged(); |
170 virtual void setActive(bool = true) OVERRIDE; | 170 virtual void setActive(bool = true) OVERRIDE; |
171 virtual void setHovered(bool = true) OVERRIDE; | 171 virtual void setHovered(bool = true) OVERRIDE; |
172 | 172 |
173 bool childrenAffectedByFocus() const { return hasRestyleFlag(ChildrenAffecte
dByFocus); } | 173 bool childrenOrSiblingsAffectedByFocus() const { return hasRestyleFlag(Child
renOrSiblingsAffectedByFocus); } |
174 void setChildrenAffectedByFocus() { setRestyleFlag(ChildrenAffectedByFocus);
} | 174 void setChildrenOrSiblingsAffectedByFocus() { setRestyleFlag(ChildrenOrSibli
ngsAffectedByFocus); } |
175 | 175 |
176 bool childrenAffectedByHover() const { return hasRestyleFlag(ChildrenAffecte
dByHover); } | 176 bool childrenOrSiblingsAffectedByHover() const { return hasRestyleFlag(Child
renOrSiblingsAffectedByHover); } |
177 void setChildrenAffectedByHover() { setRestyleFlag(ChildrenAffectedByHover);
} | 177 void setChildrenOrSiblingsAffectedByHover() { setRestyleFlag(ChildrenOrSibli
ngsAffectedByHover); } |
178 | 178 |
179 bool childrenAffectedByActive() const { return hasRestyleFlag(ChildrenAffect
edByActive); } | 179 bool childrenOrSiblingsAffectedByActive() const { return hasRestyleFlag(Chil
drenOrSiblingsAffectedByActive); } |
180 void setChildrenAffectedByActive() { setRestyleFlag(ChildrenAffectedByActive
); } | 180 void setChildrenOrSiblingsAffectedByActive() { setRestyleFlag(ChildrenOrSibl
ingsAffectedByActive); } |
181 | 181 |
182 bool childrenAffectedByDrag() const { return hasRestyleFlag(ChildrenAffected
ByDrag); } | 182 bool childrenOrSiblingsAffectedByDrag() const { return hasRestyleFlag(Childr
enOrSiblingsAffectedByDrag); } |
183 void setChildrenAffectedByDrag() { setRestyleFlag(ChildrenAffectedByDrag); } | 183 void setChildrenOrSiblingsAffectedByDrag() { setRestyleFlag(ChildrenOrSiblin
gsAffectedByDrag); } |
184 | 184 |
185 bool childrenAffectedByPositionalRules() const { return hasRestyleFlag(Child
renAffectedByForwardPositionalRules) || hasRestyleFlag(ChildrenAffectedByBackwar
dPositionalRules); } | 185 bool childrenAffectedByPositionalRules() const { return hasRestyleFlag(Child
renAffectedByForwardPositionalRules) || hasRestyleFlag(ChildrenAffectedByBackwar
dPositionalRules); } |
186 | 186 |
187 bool childrenAffectedByFirstChildRules() const { return hasRestyleFlag(Child
renAffectedByFirstChildRules); } | 187 bool childrenAffectedByFirstChildRules() const { return hasRestyleFlag(Child
renAffectedByFirstChildRules); } |
188 void setChildrenAffectedByFirstChildRules() { setRestyleFlag(ChildrenAffecte
dByFirstChildRules); } | 188 void setChildrenAffectedByFirstChildRules() { setRestyleFlag(ChildrenAffecte
dByFirstChildRules); } |
189 | 189 |
190 bool childrenAffectedByLastChildRules() const { return hasRestyleFlag(Childr
enAffectedByLastChildRules); } | 190 bool childrenAffectedByLastChildRules() const { return hasRestyleFlag(Childr
enAffectedByLastChildRules); } |
191 void setChildrenAffectedByLastChildRules() { setRestyleFlag(ChildrenAffected
ByLastChildRules); } | 191 void setChildrenAffectedByLastChildRules() { setRestyleFlag(ChildrenAffected
ByLastChildRules); } |
192 | 192 |
193 bool childrenAffectedByDirectAdjacentRules() const { return hasRestyleFlag(C
hildrenAffectedByDirectAdjacentRules); } | 193 bool childrenAffectedByDirectAdjacentRules() const { return hasRestyleFlag(C
hildrenAffectedByDirectAdjacentRules); } |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 inline void getChildNodes(Node& node, NodeVector& nodes) | 365 inline void getChildNodes(Node& node, NodeVector& nodes) |
366 { | 366 { |
367 ASSERT(!nodes.size()); | 367 ASSERT(!nodes.size()); |
368 for (Node* child = node.firstChild(); child; child = child->nextSibling()) | 368 for (Node* child = node.firstChild(); child; child = child->nextSibling()) |
369 nodes.append(child); | 369 nodes.append(child); |
370 } | 370 } |
371 | 371 |
372 } // namespace WebCore | 372 } // namespace WebCore |
373 | 373 |
374 #endif // ContainerNode_h | 374 #endif // ContainerNode_h |
OLD | NEW |