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; } |