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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.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/StyleBuilderCustom.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp b/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp
index 83ec2564c1b81dde6ea8a7a059c96f7b3ef8a0a7..9c621901859d2b610cc0b928e9a1a4e6d459a95e 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp
@@ -754,9 +754,9 @@ void StyleBuilderFunctions::applyValueCSSPropertyWebkitLocale(StyleResolverState
{
if (value.isPrimitiveValue()) {
DCHECK_EQ(toCSSPrimitiveValue(value).getValueID(), CSSValueAuto);
- state.fontBuilder().setLocale(nullAtom);
+ state.fontBuilder().setLocale(nullptr);
} else {
- state.fontBuilder().setLocale(AtomicString(toCSSStringValue(value).value()));
+ state.fontBuilder().setLocale(LayoutLocale::get(AtomicString(toCSSStringValue(value).value())));
}
}

Powered by Google App Engine
This is Rietveld 408576698