diff options
author | Chris Craik <ccraik@google.com> | 2012-05-21 13:27:38 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-05-21 13:27:38 -0700 |
commit | 0e518116e66e544a899674ed1a5039b2c7e04f05 (patch) | |
tree | 3ddb3048d2de217d9ff943c968d44de9cd6e26d0 | |
parent | 0fec40942c5e424610b19929bbcd0a1dd4f53246 (diff) | |
parent | 261f89503d6606bb4896a4effe0ab4d5b4e01d8a (diff) | |
download | external_webkit-0e518116e66e544a899674ed1a5039b2c7e04f05.zip external_webkit-0e518116e66e544a899674ed1a5039b2c7e04f05.tar.gz external_webkit-0e518116e66e544a899674ed1a5039b2c7e04f05.tar.bz2 |
am 261f8950: Add checks for null base layer content
* commit '261f89503d6606bb4896a4effe0ab4d5b4e01d8a':
Add checks for null base layer content
-rw-r--r-- | Source/WebKit/android/nav/WebView.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/WebKit/android/nav/WebView.cpp b/Source/WebKit/android/nav/WebView.cpp index 473efdb..7485e83 100644 --- a/Source/WebKit/android/nav/WebView.cpp +++ b/Source/WebKit/android/nav/WebView.cpp @@ -530,7 +530,7 @@ bool setBaseLayer(BaseLayerAndroid* newBaseLayer, bool showVisualIndicator, void copyBaseContentToPicture(SkPicture* picture) { - if (!m_baseLayer) + if (!m_baseLayer || !m_baseLayer->content()) return; LayerContent* content = m_baseLayer->content(); content->draw(picture->beginRecording(content->width(), content->height(), @@ -539,7 +539,7 @@ void copyBaseContentToPicture(SkPicture* picture) } bool hasContent() { - if (!m_baseLayer) + if (!m_baseLayer || !m_baseLayer->content()) return false; return !m_baseLayer->content()->isEmpty(); } |