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

Unified Diff: third_party/WebKit/Source/core/dom/ContainerNode.h

Issue 2229503002: Style invalidation support for :first/last/only-child. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed review issue Created 4 years, 4 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
Index: third_party/WebKit/Source/core/dom/ContainerNode.h
diff --git a/third_party/WebKit/Source/core/dom/ContainerNode.h b/third_party/WebKit/Source/core/dom/ContainerNode.h
index 3e252b61625929123b65f4aebb91305ccac20c25..fd76f81fdf222e5284d76e713c17240ecb41ac16 100644
--- a/third_party/WebKit/Source/core/dom/ContainerNode.h
+++ b/third_party/WebKit/Source/core/dom/ContainerNode.h
@@ -54,6 +54,13 @@ enum DynamicRestyleFlags {
AffectedByLastChildRules = 1 << 11,
NumberOfDynamicRestyleFlags = 12,
+
+ ChildrenAffectedByStructuralRules = ChildrenAffectedByFirstChildRules
+ | ChildrenAffectedByLastChildRules
+ | ChildrenAffectedByDirectAdjacentRules
+ | ChildrenAffectedByIndirectAdjacentRules
+ | ChildrenAffectedByForwardPositionalRules
+ | ChildrenAffectedByBackwardPositionalRules
};
enum SubtreeModificationAction {
@@ -158,7 +165,7 @@ public:
// FIXME: These methods should all be renamed to something better than "check",
// since it's not clear that they alter the style bits of siblings and children.
enum SiblingCheckType { FinishedParsingChildren, SiblingElementInserted, SiblingElementRemoved };
- void checkForSiblingStyleChanges(SiblingCheckType, Node* changedNode, Node* nodeBeforeChange, Node* nodeAfterChange);
+ void checkForSiblingStyleChanges(SiblingCheckType, Element* changedElement, Node* nodeBeforeChange, Node* nodeAfterChange);
void recalcDescendantStyles(StyleRecalcChange);
bool childrenSupportStyleSharing() const { return !hasRestyleFlags(); }
« no previous file with comments | « third_party/WebKit/Source/core/css/RuleFeature.cpp ('k') | third_party/WebKit/Source/core/dom/ContainerNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698