summaryrefslogtreecommitdiffstats
path: root/WebKit/android/jni/WebViewCore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/android/jni/WebViewCore.cpp')
-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 7af7430..3328acd 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);
}
}