summaryrefslogtreecommitdiffstats
path: root/Source/WebKit/android/nav/FindCanvas.h
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2011-09-12 11:07:41 +0100
committerSteve Block <steveblock@google.com>2011-09-19 11:42:00 +0100
commitc67a79f4e1bc925d774dac03df5b964c841ddc9f (patch)
treec040671832b60834eefc8905d10ec06be8956e54 /Source/WebKit/android/nav/FindCanvas.h
parentb89ca42de63bd33d6fef6bc3a6d321f41f220086 (diff)
downloadexternal_webkit-c67a79f4e1bc925d774dac03df5b964c841ddc9f.zip
external_webkit-c67a79f4e1bc925d774dac03df5b964c841ddc9f.tar.gz
external_webkit-c67a79f4e1bc925d774dac03df5b964c841ddc9f.tar.bz2
Fix find-in-page to scroll to search results in layers
Note that this fix does not correctly handle search results in scrollable layers. This will be done in a later fix. Bug: 5262656 Change-Id: I9f16e2f0f0a94d2d8a6ad995bde1715c822d5dab
Diffstat (limited to 'Source/WebKit/android/nav/FindCanvas.h')
-rw-r--r--Source/WebKit/android/nav/FindCanvas.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/WebKit/android/nav/FindCanvas.h b/Source/WebKit/android/nav/FindCanvas.h
index 76ee1e2..f693a3f 100644
--- a/Source/WebKit/android/nav/FindCanvas.h
+++ b/Source/WebKit/android/nav/FindCanvas.h
@@ -227,6 +227,9 @@ public:
IntRect currentMatchBounds() const;
int currentMatchIndex() const { return m_findIndex; }
bool currentMatchIsInLayer() const;
+ // This requires the current match to be in a layer. See
+ // currentMatchIsInLayer().
+ int currentMatchLayerId() const;
virtual void draw(SkCanvas* , LayerAndroid* , IntRect* );
void findNext(bool forward);
bool isCurrentLocationValid() { return m_hasCurrentLocation; }