summaryrefslogtreecommitdiffstats
path: root/Source/WebKit/android/jni/WebViewCore.cpp
diff options
context:
space:
mode:
authorNicolas Roard <nicolasroard@google.com>2012-05-04 16:06:30 -0700
committerNicolas Roard <nicolasroard@google.com>2012-05-08 18:02:56 -0700
commit576098317db607e1d3b32a0e53d2551ea0e7ef21 (patch)
tree144b1667bb6f1d4ef0e1c2ec02d4049d4558571a /Source/WebKit/android/jni/WebViewCore.cpp
parent35caaaf726b8b17cec92747a1fe42dba44d6b775 (diff)
downloadexternal_webkit-576098317db607e1d3b32a0e53d2551ea0e7ef21.zip
external_webkit-576098317db607e1d3b32a0e53d2551ea0e7ef21.tar.gz
external_webkit-576098317db607e1d3b32a0e53d2551ea0e7ef21.tar.bz2
Complete implementation fixed background
- extract image for body background (a lot more memory-friendly) - implement tiling / repeat - handles background color bug:1352305 Change-Id: I0efa27e09416e3c3848a4a53ced650cbb3d9f7ce
Diffstat (limited to 'Source/WebKit/android/jni/WebViewCore.cpp')
-rw-r--r--Source/WebKit/android/jni/WebViewCore.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/WebKit/android/jni/WebViewCore.cpp b/Source/WebKit/android/jni/WebViewCore.cpp
index 5c7012f..e621644 100644
--- a/Source/WebKit/android/jni/WebViewCore.cpp
+++ b/Source/WebKit/android/jni/WebViewCore.cpp
@@ -857,8 +857,12 @@ BaseLayerAndroid* WebViewCore::createBaseLayer()
if (bodyHasFixedBackgroundImage) {
base = new ForegroundBaseLayerAndroid(0);
base->setSize(content->width(), content->height());
- FixedBackgroundBaseLayerAndroid* baseBackground =
- new FixedBackgroundBaseLayerAndroid(content);
+
+ Document* document = m_mainFrame->document();
+ RefPtr<RenderStyle> style = document->styleForElementIgnoringPendingStylesheets(document->body());
+
+ FixedBackgroundImageLayerAndroid* baseBackground =
+ new FixedBackgroundImageLayerAndroid(style, content->width(), content->height());
realBase = new BaseLayerAndroid(0);
realBase->setSize(content->width(), content->height());