Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Side by Side Diff: Source/core/dom/SiblingRuleHelper.h

Issue 198783003: Recalc sibling styles for forward positional rules on mutations only. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed review issue. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/dom/ElementRareData.h ('k') | Source/core/dom/SiblingRuleHelper.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « Source/core/dom/ElementRareData.h ('k') | Source/core/dom/SiblingRuleHelper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698