diff options
author | Cary Clark <cary@android.com> | 2009-07-29 14:38:23 -0400 |
---|---|---|
committer | Cary Clark <cary@android.com> | 2009-07-31 13:15:23 -0400 |
commit | fa768f11d82c34980cce020f442329299efb08ca (patch) | |
tree | 775331596b3c453e37ff85d70411cafa628defe0 /WebKit/android/nav/CachedRoot.h | |
parent | 686f7d9aacbb54b81e6f8c51b1a07103ca90f703 (diff) | |
download | external_webkit-fa768f11d82c34980cce020f442329299efb08ca.zip external_webkit-fa768f11d82c34980cce020f442329299efb08ca.tar.gz external_webkit-fa768f11d82c34980cce020f442329299efb08ca.tar.bz2 |
rebuild the nav cache on mouse clicks during page load
While the page is loading, the nav cache is not rebuilt.
Double-click zooms out the web page by using the nav cache to
find the left edge of the column -- but fails to work during
page load. This change rebuilds the nav cache (if the page is
loading) each time a mouse click is sent to webkit.
This doesn't fix the bug where the first double click doesn't
align the column correctly, but helps with subsequent clicks.
Also, pass scale information to getBlockLeftEdge so it can
restrict its search to the area that will be zoomed to. Default
to the point clicked if no alignment info can be found.
Diffstat (limited to 'WebKit/android/nav/CachedRoot.h')
-rw-r--r-- | WebKit/android/nav/CachedRoot.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WebKit/android/nav/CachedRoot.h b/WebKit/android/nav/CachedRoot.h index 23cc126..123e7d2 100644 --- a/WebKit/android/nav/CachedRoot.h +++ b/WebKit/android/nav/CachedRoot.h @@ -66,7 +66,7 @@ public: SkPicture* getPicture() { return mPicture; } int getAndResetSelectionEnd(); int getAndResetSelectionStart(); - int getBlockLeftEdge(int x, int y) const; + int getBlockLeftEdge(int x, int y, float scale) const; void getSimulatedMousePosition(WebCore::IntPoint* ) const; void init(WebCore::Frame* , CachedHistory* ); bool innerDown(const CachedNode* , BestData* ) const; |