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

Unified Diff: Source/core/dom/Element.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/SelectorChecker.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Element.h
diff --git a/Source/core/dom/Element.h b/Source/core/dom/Element.h
index 0e9091741b78ab33b5a3fa31818181d9e747403c..436b6cddcb1660e185f155c4960cc7d3f1be6df9 100644
--- a/Source/core/dom/Element.h
+++ b/Source/core/dom/Element.h
@@ -90,8 +90,9 @@ enum ElementFlags {
ChildrenAffectedByFirstChildRules = 1 << 11,
ChildrenAffectedByLastChildRules = 1 << 12,
ChildrenAffectedByDirectAdjacentRules = 1 << 13,
- ChildrenAffectedByForwardPositionalRules = 1 << 14,
- ChildrenAffectedByBackwardPositionalRules = 1 << 15,
+ ChildrenAffectedByIndirectAdjacentRules = 1 << 14,
+ ChildrenAffectedByForwardPositionalRules = 1 << 15,
+ ChildrenAffectedByBackwardPositionalRules = 1 << 16,
// If any of these flags are set we cannot share style.
ElementFlagsPreventingStyleSharing =
@@ -102,6 +103,7 @@ enum ElementFlags {
| ChildrenAffectedByFirstChildRules
| ChildrenAffectedByLastChildRules
| ChildrenAffectedByDirectAdjacentRules
+ | ChildrenAffectedByIndirectAdjacentRules
| ChildrenAffectedByForwardPositionalRules
| ChildrenAffectedByBackwardPositionalRules,
};
@@ -384,6 +386,9 @@ public:
bool childrenAffectedByDirectAdjacentRules() const { return hasElementFlag(ChildrenAffectedByDirectAdjacentRules); }
void setChildrenAffectedByDirectAdjacentRules() { setElementFlag(ChildrenAffectedByDirectAdjacentRules); }
+ bool childrenAffectedByIndirectAdjacentRules() const { return hasElementFlag(ChildrenAffectedByIndirectAdjacentRules); }
+ void setChildrenAffectedByIndirectAdjacentRules() { setElementFlag(ChildrenAffectedByIndirectAdjacentRules); }
+
bool childrenAffectedByForwardPositionalRules() const { return hasElementFlag(ChildrenAffectedByForwardPositionalRules); }
void setChildrenAffectedByForwardPositionalRules() { setElementFlag(ChildrenAffectedByForwardPositionalRules); }
« no previous file with comments | « Source/core/css/SelectorChecker.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698