OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef SiblingRuleHelper_h | |
6 #define SiblingRuleHelper_h | |
7 | |
8 #include "core/dom/Node.h" | |
9 | |
10 namespace WebCore { | |
11 | |
12 class SiblingRuleHelper { | |
13 public: | |
14 SiblingRuleHelper(Node* node) : m_node(node) | |
15 { | |
16 ASSERT(node); | |
17 ASSERT(node->isElementNode() || node->isShadowRoot()); | |
18 } | |
19 | |
20 void checkForChildrenAdjacentRuleChanges(); | |
21 | |
22 void setChildrenAffectedByDirectAdjacentRules(); | |
23 void setChildrenAffectedByIndirectAdjacentRules(); | |
24 void setChildrenAffectedByForwardPositionalRules(); | |
25 void setChildrenAffectedByBackwardPositionalRules(); | |
26 void setChildrenAffectedByFirstChildRules(); | |
27 void setChildrenAffectedByLastChildRules(); | |
28 | |
29 bool isFinishedParsingChildren(); | |
30 | |
31 bool childrenSupportStyleSharing(); | |
32 | |
33 private: | |
34 bool childrenAffectedByPositionalRules() const; | |
35 bool childrenAffectedByFirstChildRules() const; | |
36 bool childrenAffectedByLastChildRules() const; | |
37 bool childrenAffectedByDirectAdjacentRules() const; | |
38 bool childrenAffectedByIndirectAdjacentRules() const; | |
39 bool childrenAffectedByForwardPositionalRules() const; | |
40 bool childrenAffectedByBackwardPositionalRules() const; | |
41 | |
42 Node* m_node; | |
43 }; | |
44 | |
45 } // namespace | |
46 | |
47 #endif | |
OLD | NEW |