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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyleConstants.h

Issue 2729373003: Bit-mask incorrectly removed first-line pseudo bit. (Closed)
Patch Set: Fixed issues. Created 3 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
Index: third_party/WebKit/Source/core/style/ComputedStyleConstants.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyleConstants.h b/third_party/WebKit/Source/core/style/ComputedStyleConstants.h
index 7cfc428bafa07e0b2b4043ee0f3a013f13cd560c..ffb0b1d7800358d2b5250c6146998a60833ecfbb 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyleConstants.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyleConstants.h
@@ -82,11 +82,9 @@ enum PseudoId {
AfterLastInternalPseudoId,
FirstPublicPseudoId = PseudoIdFirstLine,
FirstInternalPseudoId = PseudoIdScrollbarThumb,
- PublicPseudoIdMask =
- ((1 << FirstInternalPseudoId) - 1) & ~((1 << FirstPublicPseudoId) - 1),
- ElementPseudoIdMask = (1 << (PseudoIdBefore - 1)) |
- (1 << (PseudoIdAfter - 1)) |
- (1 << (PseudoIdBackdrop - 1))
+ ElementPseudoIdMask = (1 << (PseudoIdBefore - FirstPublicPseudoId)) |
+ (1 << (PseudoIdAfter - FirstPublicPseudoId)) |
+ (1 << (PseudoIdBackdrop - FirstPublicPseudoId))
};
enum ColumnFill { ColumnFillBalance, ColumnFillAuto };
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.h ('k') | third_party/WebKit/Source/core/style/ComputedStyleTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698