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

Unified Diff: Source/core/rendering/style/RenderStyle.h

Issue 758523002: Store :last/first-child state as restyle flags. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed assert Created 6 years, 1 month 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
« Source/core/dom/ContainerNode.cpp ('K') | « Source/core/dom/ContainerNode.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/style/RenderStyle.h
diff --git a/Source/core/rendering/style/RenderStyle.h b/Source/core/rendering/style/RenderStyle.h
index e4bef6668db14688796d60a4eda5f401caa97426..a5c2f7cc0e70bd19832fe33c62b57f833d048096 100644
--- a/Source/core/rendering/style/RenderStyle.h
+++ b/Source/core/rendering/style/RenderStyle.h
@@ -229,8 +229,6 @@ protected:
&& explicitInheritance == other.explicitInheritance
&& unique == other.unique
&& emptyState == other.emptyState
- && firstChildState == other.firstChildState
- && lastChildState == other.lastChildState
&& isLink == other.isLink;
}
@@ -263,8 +261,6 @@ protected:
unsigned unique : 1; // Style can not be shared.
unsigned emptyState : 1;
- unsigned firstChildState : 1;
- unsigned lastChildState : 1;
unsigned affectedByFocus : 1;
unsigned affectedByHover : 1;
@@ -317,8 +313,6 @@ protected:
noninherited_flags.explicitInheritance = false;
noninherited_flags.unique = false;
noninherited_flags.emptyState = false;
- noninherited_flags.firstChildState = false;
- noninherited_flags.lastChildState = false;
noninherited_flags.hasViewportUnits = false;
noninherited_flags.affectedByFocus = false;
noninherited_flags.affectedByHover = false;
@@ -1498,10 +1492,6 @@ public:
bool emptyState() const { return noninherited_flags.emptyState; }
void setEmptyState(bool b) { setUnique(); noninherited_flags.emptyState = b; }
- bool firstChildState() const { return noninherited_flags.firstChildState; }
- void setFirstChildState() { setUnique(); noninherited_flags.firstChildState = true; }
- bool lastChildState() const { return noninherited_flags.lastChildState; }
- void setLastChildState() { setUnique(); noninherited_flags.lastChildState = true; }
StyleColor visitedDependentDecorationStyleColor() const;
Color visitedDependentDecorationColor() const;
« Source/core/dom/ContainerNode.cpp ('K') | « Source/core/dom/ContainerNode.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698