From ef238925ea0ba6305e4540aff5c6953503993f3b Mon Sep 17 00:00:00 2001 From: Nicolas Roard Date: Wed, 3 Aug 2011 16:54:50 -0700 Subject: Change the constants used for the inverted preferences to match the ones sent by the Browser bug:5111259 Change-Id: I3d7c0d94d61e173915ab6ec01f42778182462064 --- Source/WebKit/android/nav/WebView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/WebKit') diff --git a/Source/WebKit/android/nav/WebView.cpp b/Source/WebKit/android/nav/WebView.cpp index 09a8e7d..cf6cd65 100644 --- a/Source/WebKit/android/nav/WebView.cpp +++ b/Source/WebKit/android/nav/WebView.cpp @@ -2528,13 +2528,13 @@ static void nativeSetProperty(JNIEnv *env, jobject obj, jstring jkey, jstring jv { WTF::String key = jstringToWtfString(env, jkey); WTF::String value = jstringToWtfString(env, jvalue); - if (key == "gfxInvertedScreen") { + if (key == "inverted") { if (value == "true") TilesManager::instance()->setInvertedScreen(true); else TilesManager::instance()->setInvertedScreen(false); } - if (key == "gfxInvertedScreenContrast") { + if (key == "inverted_contrast") { float contrast = value.toFloat(); TilesManager::instance()->setInvertedScreenContrast(contrast); } -- cgit v1.1