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

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

Issue 208933003: Remove SiblingRuleHelper (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Tighten types to ContainerNode 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/NodeRareData.cpp ('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
(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
OLDNEW
« no previous file with comments | « Source/core/dom/NodeRareData.cpp ('k') | Source/core/dom/SiblingRuleHelper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698