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

Unified Diff: Source/core/style/ComputedStyle.h

Issue 1181023004: Move rem handling out of CSSParserValues.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add test Created 5 years, 5 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: Source/core/style/ComputedStyle.h
diff --git a/Source/core/style/ComputedStyle.h b/Source/core/style/ComputedStyle.h
index dcaba3799d9cd350b768467b630688f4c6a187b9..4f941694077fe5da5a6a18b7fd12d1b4b0b09548 100644
--- a/Source/core/style/ComputedStyle.h
+++ b/Source/core/style/ComputedStyle.h
@@ -280,8 +280,10 @@ protected:
unsigned affectedByDrag : 1;
unsigned isLink : 1;
+
+ mutable unsigned hasRemUnits : 1;
// If you add more style bits here, you will also need to update ComputedStyle::copyNonInheritedFromCached()
- // 62 bits
+ // 63 bits
} noninherited_flags;
// !END SYNC!
@@ -382,6 +384,9 @@ public:
void setHasViewportUnits(bool hasViewportUnits = true) const { noninherited_flags.hasViewportUnits = hasViewportUnits; }
bool hasViewportUnits() const { return noninherited_flags.hasViewportUnits; }
+ void setHasRemUnits(bool hasRemUnits = true) const { noninherited_flags.hasRemUnits = hasRemUnits; }
Timothy Loh 2015/07/30 01:06:55 Probably no point having an argument (even though
+ bool hasRemUnits() const { return noninherited_flags.hasRemUnits; }
+
bool affectedByFocus() const { return noninherited_flags.affectedByFocus; }
bool affectedByHover() const { return noninherited_flags.affectedByHover; }
bool affectedByActive() const { return noninherited_flags.affectedByActive; }

Powered by Google App Engine
This is Rietveld 408576698