Index: Source/core/css/resolver/StyleResolver.cpp |
diff --git a/Source/core/css/resolver/StyleResolver.cpp b/Source/core/css/resolver/StyleResolver.cpp |
index 788a2a176a6e85ee1c6f82977ceb34e78cc756ce..57f33842d5b36cd49c3ec1a293008548b1376e85 100644 |
--- a/Source/core/css/resolver/StyleResolver.cpp |
+++ b/Source/core/css/resolver/StyleResolver.cpp |
@@ -634,6 +634,9 @@ PassRefPtr<ComputedStyle> StyleResolver::styleForElement(Element* element, const |
if (state.style()->hasViewportUnits()) |
document().setHasViewportUnits(); |
+ if (state.style()->hasRemUnits()) |
+ document().styleEngine().setUsesRemUnit(true); |
+ |
// Now return the style. |
return state.takeStyle(); |
} |