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

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: Another attempt 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
« no previous file with comments | « Source/core/dom/TreeScopeStyleSheetCollection.cpp ('k') | Source/core/style/ComputedStyle.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/style/ComputedStyle.h
diff --git a/Source/core/style/ComputedStyle.h b/Source/core/style/ComputedStyle.h
index dcaba3799d9cd350b768467b630688f4c6a187b9..1a8c0b31195c1c1da54e1d38bca390219d744475 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!
@@ -331,6 +333,7 @@ protected:
noninherited_flags.affectedByActive = false;
noninherited_flags.affectedByDrag = false;
noninherited_flags.isLink = false;
+ noninherited_flags.hasRemUnits = false;
}
private:
@@ -382,6 +385,9 @@ public:
void setHasViewportUnits(bool hasViewportUnits = true) const { noninherited_flags.hasViewportUnits = hasViewportUnits; }
bool hasViewportUnits() const { return noninherited_flags.hasViewportUnits; }
+ void setHasRemUnits() const { noninherited_flags.hasRemUnits = true; }
+ 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; }
« no previous file with comments | « Source/core/dom/TreeScopeStyleSheetCollection.cpp ('k') | Source/core/style/ComputedStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698