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

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: unittest fix 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 f57032398ac7fe8921a60130037fe148d16b3da4..6d9c85a62ae3a53a920262c8c5fb46814f4ed594 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(FontLocale::get(document.contentLanguage()));
documentStyle->setFontDescription(documentFontDescription);
documentStyle->setZIndex(0);
documentStyle->setIsStackingContext(true);

Powered by Google App Engine
This is Rietveld 408576698