summaryrefslogtreecommitdiffstats
path: root/WebKit
diff options
context:
space:
mode:
authorDave Burke <daveburke@google.com>2011-01-31 19:08:35 +0000
committerDave Burke <daveburke@google.com>2011-01-31 19:08:35 +0000
commit83f9f88c2fc474ec506c1efcbd7fe8108ea08ba9 (patch)
treefa932237f7b9b10dd5e8a1b7f9aec6f7969b9e5c /WebKit
parentc36054aacf610538d595ecc02cfbef4e6678eaa7 (diff)
downloadexternal_webkit-83f9f88c2fc474ec506c1efcbd7fe8108ea08ba9.zip
external_webkit-83f9f88c2fc474ec506c1efcbd7fe8108ea08ba9.tar.gz
external_webkit-83f9f88c2fc474ec506c1efcbd7fe8108ea08ba9.tar.bz2
Only set background tile color if it's valid.
bug:3408110 Change-Id: Ia5dc44623961786399e38bbf6e2afdb8a7206dce
Diffstat (limited to 'WebKit')
-rw-r--r--WebKit/android/jni/WebViewCore.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/WebKit/android/jni/WebViewCore.cpp b/WebKit/android/jni/WebViewCore.cpp
index ef4cf66..3bc1721 100644
--- a/WebKit/android/jni/WebViewCore.cpp
+++ b/WebKit/android/jni/WebViewCore.cpp
@@ -888,7 +888,8 @@ BaseLayerAndroid* WebViewCore::createBaseLayer()
RefPtr<RenderStyle> style = document->styleForElementIgnoringPendingStylesheets(document->body());
if (style->hasBackground()) {
Color color = style->visitedDependentColor(CSSPropertyBackgroundColor);
- base->setBackgroundColor(color);
+ if (color.isValid() && color.alpha() > 0)
+ base->setBackgroundColor(color);
}
}