OSDN Git Service

Use full scrollable area for content width/height.
authorShimeng (Simon) Wang <swang@google.com>
Wed, 29 Jun 2011 01:18:47 +0000 (18:18 -0700)
committerShimeng (Simon) Wang <swang@google.com>
Wed, 29 Jun 2011 01:18:47 +0000 (18:18 -0700)
Currently after webkit merge, the content width/height is only
for visible area.

issue: 4672075
Change-Id: Ib7d51119a59131f1443a3c0d59980a8da34b4173

Source/WebKit/android/nav/CacheBuilder.cpp

index a31169b..3ec15f3 100644 (file)
@@ -2893,7 +2893,7 @@ bool CacheBuilder::setData(CachedFrame* cachedFrame)
     if ((x | y) != 0)
         viewBounds.setLocation(WebCore::IntPoint(x, y));
     cachedFrame->setLocalViewBounds(viewBounds);
-    cachedFrame->setContentsSize(layer->width(), layer->height());
+    cachedFrame->setContentsSize(layer->scrollWidth(), layer->scrollHeight());
     if (cachedFrame->childCount() == 0)
         return true;
     CachedFrame* lastCachedFrame = cachedFrame->lastChild();