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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.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/style/ComputedStyle.cpp
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
index 8f5d6fb33f8b9fe0804b06bc60f51b422a48628d..91e8e30419c3d3e373269f1cbc0a74e1888e1d7c 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
@@ -1253,6 +1253,12 @@ void ComputedStyle::clearResetDirectives()
it->value.clearReset();
}
+Hyphenation* ComputedStyle::getHyphenation() const
+{
+ return getHyphens() == HyphensAuto
+ ? getFontDescription().localeOrDefault().getHyphenation() : nullptr;
+}
+
const AtomicString& ComputedStyle::hyphenString() const
{
const AtomicString& hyphenationString = m_rareInheritedData.get()->hyphenationString;
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.h ('k') | third_party/WebKit/Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698