Index: third_party/WebKit/Source/core/testing/Internals.cpp |
diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp |
index 6d5298743bd01b201485f6d57771ce20e6d3130c..d24834598ee3489320979ce17cc6e8dd12cc6662 100644 |
--- a/third_party/WebKit/Source/core/testing/Internals.cpp |
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp |
@@ -129,6 +129,7 @@ |
#include "gpu/command_buffer/client/gles2_interface.h" |
#include "platform/Cursor.h" |
#include "platform/Language.h" |
+#include "platform/LayoutLocale.h" |
#include "platform/PlatformKeyboardEvent.h" |
#include "platform/RuntimeEnabledFeatures.h" |
#include "platform/TraceEvent.h" |
@@ -1559,12 +1560,13 @@ void Internals::setContinuousSpellCheckingEnabled(bool enabled) |
bool Internals::canHyphenate(const AtomicString& locale) |
{ |
- return Hyphenation::get(locale); |
+ return LayoutLocale::valueOrDefault(LayoutLocale::get(locale)) |
+ .getHyphenation(); |
} |
void Internals::setMockHyphenation(const AtomicString& locale) |
{ |
- Hyphenation::setForTesting(locale, adoptRef(new MockHyphenation)); |
+ LayoutLocale::setHyphenationForTesting(locale, adoptRef(new MockHyphenation)); |
} |
bool Internals::isOverwriteModeEnabled(Document* document) |