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

Unified Diff: third_party/WebKit/Source/core/testing/Internals.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/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)
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.cpp ('k') | third_party/WebKit/Source/platform/LayoutLocale.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698