diff options
author | Cary Clark <cary@android.com> | 2010-05-12 15:12:02 -0400 |
---|---|---|
committer | Cary Clark <cary@android.com> | 2010-05-12 15:48:58 -0400 |
commit | 38ca89c14ccba2e69b3ae326085f2ed36830a06c (patch) | |
tree | 2b73878a1cf25970b5e3a8385bd34b0c38d149d3 | |
parent | 901afcec28e282052ffa6542c21b025cead9b4c0 (diff) | |
download | external_webkit-38ca89c14ccba2e69b3ae326085f2ed36830a06c.zip external_webkit-38ca89c14ccba2e69b3ae326085f2ed36830a06c.tar.gz external_webkit-38ca89c14ccba2e69b3ae326085f2ed36830a06c.tar.bz2 |
restrict nav cache picture to content width, height
Formerly, the nav cache picture recorded a rectangle of
(0, 0, INT_MAX, INT_MAX). If the drawing was subsequently
translated, the rectangle wrapped around and futher drawing
was clipped out.
Now the drawing is constrained to the contentWidth and
contentHeight -- the enclosing picture already had this
restriction.
http://b/2604141
Change-Id: Idde1cbaeb507310813a7c5b00e3dde9cacebe44d
-rw-r--r-- | WebKit/android/jni/WebViewCore.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/WebKit/android/jni/WebViewCore.cpp b/WebKit/android/jni/WebViewCore.cpp index f5768f4..2efd074 100644 --- a/WebKit/android/jni/WebViewCore.cpp +++ b/WebKit/android/jni/WebViewCore.cpp @@ -485,7 +485,8 @@ void WebViewCore::recordPicture(SkPicture* picture) WebCore::PlatformGraphicsContext pgc(arp.getRecordingCanvas(), &buttons); WebCore::GraphicsContext gc(&pgc); - view->platformWidget()->draw(&gc, WebCore::IntRect(0, 0, INT_MAX, INT_MAX)); + view->platformWidget()->draw(&gc, WebCore::IntRect(0, 0, + view->contentsWidth(), view->contentsHeight())); gButtonMutex.lock(); updateButtonList(&buttons); |