Index: Source/core/css/resolver/StyleResolver.cpp |
diff --git a/Source/core/css/resolver/StyleResolver.cpp b/Source/core/css/resolver/StyleResolver.cpp |
index cd4f778df1e55209db6b091cf0ee98cfd6374952..21824f0717ab73c4a1303194637837fb2495a7cf 100644 |
--- a/Source/core/css/resolver/StyleResolver.cpp |
+++ b/Source/core/css/resolver/StyleResolver.cpp |
@@ -519,12 +519,6 @@ PassRefPtr<RenderStyle> StyleResolver::styleForDocument(Document& document) |
return documentStyle.release(); |
} |
-static inline void resetDirectionAndWritingModeOnDocument(Document& document) |
-{ |
- document.setDirectionSetOnDocumentElement(false); |
- document.setWritingModeSetOnDocumentElement(false); |
-} |
- |
static void addContentAttrValuesToFeatures(const Vector<AtomicString>& contentAttrValues, RuleFeatureSet& features) |
{ |
for (size_t i = 0; i < contentAttrValues.size(); ++i) |
@@ -569,8 +563,6 @@ PassRefPtr<RenderStyle> StyleResolver::styleForElement(Element* element, RenderS |
StyleResolverParentScope::ensureParentStackIsPushed(); |
- if (element == document().documentElement()) |
- resetDirectionAndWritingModeOnDocument(document()); |
StyleResolverState state(document(), element, defaultParent); |
if (sharingBehavior == AllowStyleSharing && state.parentStyle()) { |
@@ -673,8 +665,6 @@ PassRefPtr<RenderStyle> StyleResolver::styleForKeyframe(Element& element, const |
ASSERT(document().settings()); |
ASSERT(!hasPendingAuthorStyleSheets()); |
- if (&element == document().documentElement()) |
- resetDirectionAndWritingModeOnDocument(document()); |
StyleResolverState state(document(), &element, parentStyle); |
MatchResult result; |
@@ -872,7 +862,6 @@ PassRefPtr<RenderStyle> StyleResolver::pseudoStyleForElement(Element* element, c |
PassRefPtr<RenderStyle> StyleResolver::styleForPage(int pageIndex) |
{ |
ASSERT(!hasPendingAuthorStyleSheets()); |
- resetDirectionAndWritingModeOnDocument(document()); |
StyleResolverState state(document(), document().documentElement()); // m_rootElementStyle will be set to the document style. |
RefPtr<RenderStyle> style = RenderStyle::create(); |