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

Side by Side Diff: Source/core/dom/shadow/ShadowRoot.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/SiblingRuleHelper.cpp ('k') | Source/core/dom/shadow/ShadowRoot.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 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 String innerHTML() const; 118 String innerHTML() const;
119 void setInnerHTML(const String&, ExceptionState&); 119 void setInnerHTML(const String&, ExceptionState&);
120 120
121 PassRefPtr<Node> cloneNode(bool, ExceptionState&); 121 PassRefPtr<Node> cloneNode(bool, ExceptionState&);
122 PassRefPtr<Node> cloneNode(ExceptionState& exceptionState) { return cloneNod e(true, exceptionState); } 122 PassRefPtr<Node> cloneNode(ExceptionState& exceptionState) { return cloneNod e(true, exceptionState); }
123 123
124 StyleSheetList* styleSheets(); 124 StyleSheetList* styleSheets();
125 bool isActiveForStyling() const; 125 bool isActiveForStyling() const;
126 126
127 bool childrenSupportStyleSharing() const;
128 bool childrenAffectedByPositionalRules() const;
129 bool childrenAffectedByFirstChildRules() const;
130 bool childrenAffectedByLastChildRules() const;
131 bool childrenAffectedByDirectAdjacentRules() const;
132 bool childrenAffectedByIndirectAdjacentRules() const;
133 bool childrenAffectedByForwardPositionalRules() const;
134 bool childrenAffectedByBackwardPositionalRules() const;
135
136 void setChildrenAffectedByFirstChildRules();
137 void setChildrenAffectedByLastChildRules();
138 void setChildrenAffectedByDirectAdjacentRules();
139 void setChildrenAffectedByIndirectAdjacentRules();
140 void setChildrenAffectedByForwardPositionalRules();
141 void setChildrenAffectedByBackwardPositionalRules();
142
143 using Node::isFinishedParsingChildren; // make public for SelectorChecker
144
145 private: 127 private:
146 ShadowRoot(Document&, ShadowRootType); 128 ShadowRoot(Document&, ShadowRootType);
147 virtual ~ShadowRoot(); 129 virtual ~ShadowRoot();
148 130
149 virtual void dispose() OVERRIDE; 131 virtual void dispose() OVERRIDE;
150 virtual void childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) OVERRIDE; 132 virtual void childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) OVERRIDE;
151 133
152 ShadowRootRareData* ensureShadowRootRareData(); 134 ShadowRootRareData* ensureShadowRootRareData();
153 135
154 void addChildShadowRoot(); 136 void addChildShadowRoot();
(...skipping 20 matching lines...) Expand all
175 { 157 {
176 return adjustedFocusedElement(); 158 return adjustedFocusedElement();
177 } 159 }
178 160
179 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); 161 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot());
180 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad owRoot(), treeScope.rootNode().isShadowRoot()); 162 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad owRoot(), treeScope.rootNode().isShadowRoot());
181 163
182 } // namespace 164 } // namespace
183 165
184 #endif 166 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/SiblingRuleHelper.cpp ('k') | Source/core/dom/shadow/ShadowRoot.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698