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

Unified Diff: sky/engine/core/css/resolver/StyleResolver.cpp

Issue 674073005: Remove final instances of WritingMode in Sky. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 | « no previous file | sky/engine/core/rendering/RenderBlockFlow.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/resolver/StyleResolver.cpp
diff --git a/sky/engine/core/css/resolver/StyleResolver.cpp b/sky/engine/core/css/resolver/StyleResolver.cpp
index ca40fb13bcc001234ea815c2ad457bf5f2b115d4..2fd53cfe8f4f87a23992c3f83e935ee5c459d687 100644
--- a/sky/engine/core/css/resolver/StyleResolver.cpp
+++ b/sky/engine/core/css/resolver/StyleResolver.cpp
@@ -395,11 +395,6 @@ PassRefPtr<RenderStyle> StyleResolver::styleForDocument(Document& document)
return documentStyle.release();
}
-static inline void resetDirectionAndWritingModeOnDocument(Document& document)
-{
- document.setDirectionSetOnDocumentElement(false);
-}
-
static void addContentAttrValuesToFeatures(const Vector<AtomicString>& contentAttrValues, RuleFeatureSet& features)
{
for (size_t i = 0; i < contentAttrValues.size(); ++i)
@@ -437,7 +432,7 @@ PassRefPtr<RenderStyle> StyleResolver::styleForElement(Element* element, RenderS
didAccess();
if (element == document().documentElement())
- resetDirectionAndWritingModeOnDocument(document());
+ document().setDirectionSetOnDocumentElement(false);
StyleResolverState state(document(), element, defaultParent);
if (sharingBehavior == AllowStyleSharing && state.parentStyle()) {
@@ -507,7 +502,7 @@ PassRefPtr<RenderStyle> StyleResolver::styleForKeyframe(Element* element, const
ASSERT(!hasPendingAuthorStyleSheets());
if (element == document().documentElement())
- resetDirectionAndWritingModeOnDocument(document());
+ document().setDirectionSetOnDocumentElement(false);
StyleResolverState state(document(), element, parentStyle);
MatchResult result;
« no previous file with comments | « no previous file | sky/engine/core/rendering/RenderBlockFlow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698