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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp

Issue 2161683002: Add LayoutLocale class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test stability Created 4 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
Index: third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
index cbd019ecde9092c02031f2f6e85802457d7e33c4..3e86c47489d9828fad5e5956afdf62d54b6a2fdb 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
@@ -681,7 +681,7 @@ PassRefPtr<ComputedStyle> StyleResolver::styleForDocument(Document& document)
documentStyle->setRTLOrdering(document.visuallyOrdered() ? VisualOrder : LogicalOrder);
documentStyle->setZoom(frame && !document.printing() ? frame->pageZoomFactor() : 1);
FontDescription documentFontDescription = documentStyle->getFontDescription();
- documentFontDescription.setLocale(document.contentLanguage());
+ documentFontDescription.setLocale(LayoutLocale::get(document.contentLanguage()));
documentStyle->setFontDescription(documentFontDescription);
documentStyle->setZIndex(0);
documentStyle->setIsStackingContext(true);

Powered by Google App Engine
This is Rietveld 408576698