summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorNicolas Roard <nicolasroard@google.com>2011-08-03 16:54:50 -0700
committerNicolas Roard <nicolasroard@google.com>2011-08-03 16:55:46 -0700
commitef238925ea0ba6305e4540aff5c6953503993f3b (patch)
tree8b28f0365fb74767d383969926c1fb1701a00229 /Source
parent2c05b037dcbc9de2f41781747422c2098c42c16e (diff)
downloadexternal_webkit-ef238925ea0ba6305e4540aff5c6953503993f3b.zip
external_webkit-ef238925ea0ba6305e4540aff5c6953503993f3b.tar.gz
external_webkit-ef238925ea0ba6305e4540aff5c6953503993f3b.tar.bz2
Change the constants used for the inverted preferences
to match the ones sent by the Browser bug:5111259 Change-Id: I3d7c0d94d61e173915ab6ec01f42778182462064
Diffstat (limited to 'Source')
-rw-r--r--Source/WebKit/android/nav/WebView.cpp4
1 files changed, 2 insertions, 2 deletions
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);
}