OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef SiblingRuleHelper_h | 5 #ifndef SiblingRuleHelper_h |
6 #define SiblingRuleHelper_h | 6 #define SiblingRuleHelper_h |
7 | 7 |
8 #include "core/dom/Node.h" | 8 #include "core/dom/Node.h" |
9 | 9 |
10 namespace WebCore { | 10 namespace WebCore { |
11 | 11 |
12 class SiblingRuleHelper { | 12 class SiblingRuleHelper { |
13 public: | 13 public: |
14 SiblingRuleHelper(Node* node) : m_node(node) | 14 SiblingRuleHelper(Node* node) : m_node(node) |
15 { | 15 { |
16 ASSERT(node); | 16 ASSERT(node); |
17 ASSERT(node->isElementNode() || node->isShadowRoot()); | 17 ASSERT(node->isElementNode() || node->isShadowRoot()); |
18 } | 18 } |
19 | 19 |
20 void checkForChildrenAdjacentRuleChanges(); | 20 void checkForChildrenAdjacentRuleChanges(); |
21 | 21 |
22 void setChildrenAffectedByDirectAdjacentRules(); | 22 void setChildrenAffectedByDirectAdjacentRules(); |
| 23 void setChildrenAffectedByIndirectAdjacentRules(); |
23 void setChildrenAffectedByForwardPositionalRules(); | 24 void setChildrenAffectedByForwardPositionalRules(); |
24 void setChildrenAffectedByBackwardPositionalRules(); | 25 void setChildrenAffectedByBackwardPositionalRules(); |
25 void setChildrenAffectedByFirstChildRules(); | 26 void setChildrenAffectedByFirstChildRules(); |
26 void setChildrenAffectedByLastChildRules(); | 27 void setChildrenAffectedByLastChildRules(); |
27 | 28 |
28 bool isFinishedParsingChildren(); | 29 bool isFinishedParsingChildren(); |
29 | 30 |
30 bool childrenSupportStyleSharing(); | 31 bool childrenSupportStyleSharing(); |
31 | 32 |
32 private: | 33 private: |
33 bool childrenAffectedByPositionalRules() const; | 34 bool childrenAffectedByPositionalRules() const; |
34 bool childrenAffectedByFirstChildRules() const; | 35 bool childrenAffectedByFirstChildRules() const; |
35 bool childrenAffectedByLastChildRules() const; | 36 bool childrenAffectedByLastChildRules() const; |
36 bool childrenAffectedByDirectAdjacentRules() const; | 37 bool childrenAffectedByDirectAdjacentRules() const; |
| 38 bool childrenAffectedByIndirectAdjacentRules() const; |
37 bool childrenAffectedByForwardPositionalRules() const; | 39 bool childrenAffectedByForwardPositionalRules() const; |
38 bool childrenAffectedByBackwardPositionalRules() const; | 40 bool childrenAffectedByBackwardPositionalRules() const; |
39 | 41 |
40 Node* m_node; | 42 Node* m_node; |
41 }; | 43 }; |
42 | 44 |
43 } // namespace | 45 } // namespace |
44 | 46 |
45 #endif | 47 #endif |
OLD | NEW |