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/shadow/ShadowRoot.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: Rebased. 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
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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 PassRefPtr<Node> cloneNode(ExceptionState& exceptionState) { return cloneNod e(true, exceptionState); } 125 PassRefPtr<Node> cloneNode(ExceptionState& exceptionState) { return cloneNod e(true, exceptionState); }
126 126
127 StyleSheetList* styleSheets(); 127 StyleSheetList* styleSheets();
128 bool isActiveForStyling() const; 128 bool isActiveForStyling() const;
129 129
130 bool childrenSupportStyleSharing() const; 130 bool childrenSupportStyleSharing() const;
131 bool childrenAffectedByPositionalRules() const; 131 bool childrenAffectedByPositionalRules() const;
132 bool childrenAffectedByFirstChildRules() const; 132 bool childrenAffectedByFirstChildRules() const;
133 bool childrenAffectedByLastChildRules() const; 133 bool childrenAffectedByLastChildRules() const;
134 bool childrenAffectedByDirectAdjacentRules() const; 134 bool childrenAffectedByDirectAdjacentRules() const;
135 bool childrenAffectedByIndirectAdjacentRules() const;
135 bool childrenAffectedByForwardPositionalRules() const; 136 bool childrenAffectedByForwardPositionalRules() const;
136 bool childrenAffectedByBackwardPositionalRules() const; 137 bool childrenAffectedByBackwardPositionalRules() const;
137 138
138 void setChildrenAffectedByFirstChildRules(); 139 void setChildrenAffectedByFirstChildRules();
139 void setChildrenAffectedByLastChildRules(); 140 void setChildrenAffectedByLastChildRules();
140 void setChildrenAffectedByDirectAdjacentRules(); 141 void setChildrenAffectedByDirectAdjacentRules();
142 void setChildrenAffectedByIndirectAdjacentRules();
141 void setChildrenAffectedByForwardPositionalRules(); 143 void setChildrenAffectedByForwardPositionalRules();
142 void setChildrenAffectedByBackwardPositionalRules(); 144 void setChildrenAffectedByBackwardPositionalRules();
143 145
144 using Node::isFinishedParsingChildren; // make public for SelectorChecker 146 using Node::isFinishedParsingChildren; // make public for SelectorChecker
145 147
146 private: 148 private:
147 ShadowRoot(Document&, ShadowRootType); 149 ShadowRoot(Document&, ShadowRootType);
148 virtual ~ShadowRoot(); 150 virtual ~ShadowRoot();
149 151
150 virtual void dispose() OVERRIDE; 152 virtual void dispose() OVERRIDE;
(...skipping 26 matching lines...) Expand all
177 { 179 {
178 return adjustedFocusedElement(); 180 return adjustedFocusedElement();
179 } 181 }
180 182
181 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); 183 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot());
182 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad owRoot(), treeScope.rootNode().isShadowRoot()); 184 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad owRoot(), treeScope.rootNode().isShadowRoot());
183 185
184 } // namespace 186 } // namespace
185 187
186 #endif 188 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698