summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webframe_impl.cc
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-01 18:19:23 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-01 18:19:23 +0000
commit3bf03aff50e1881229c3b4e28591da4959b9ea07 (patch)
tree403e01836c9e9934a5dfbb9ef6f9bc1efe0b24b9 /webkit/glue/webframe_impl.cc
parent752217f0e7253abfbcc2fd7964c05d3e22b05ef5 (diff)
downloadchromium_src-3bf03aff50e1881229c3b4e28591da4959b9ea07.zip
chromium_src-3bf03aff50e1881229c3b4e28591da4959b9ea07.tar.gz
chromium_src-3bf03aff50e1881229c3b4e28591da4959b9ea07.tar.bz2
Have the find bar show number of matches on linux.
We needed to enable some code in webkit/glue/webframe_impl.cc and add a line to clear the results in find_bar_gtk.cc. BUG=12955 Review URL: http://codereview.chromium.org/115960 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17335 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webframe_impl.cc')
-rw-r--r--webkit/glue/webframe_impl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/webkit/glue/webframe_impl.cc b/webkit/glue/webframe_impl.cc
index b31fb79..086b2e6 100644
--- a/webkit/glue/webframe_impl.cc
+++ b/webkit/glue/webframe_impl.cc
@@ -960,7 +960,7 @@ bool WebFrameImpl::Find(int request_id,
if (active_match_index_ + 1 == 0)
active_match_index_ = last_match_count_ - 1;
}
-#if defined(OS_WIN)
+#if defined(OS_WIN) || defined(OS_LINUX)
// TODO(pinkerton): Fix Mac scrolling to be more like Win ScrollView
if (selection_rect) {
WebRect rect = webkit_glue::IntRectToWebRect(
@@ -1214,7 +1214,7 @@ void WebFrameImpl::ScopeStringMatches(int request_id,
// To stop looking for the active tickmark, we set this flag.
locating_active_rect_ = false;
-#if defined(OS_WIN)
+#if defined(OS_WIN) || defined(OS_LINUX)
// TODO(pinkerton): Fix Mac invalidation to be more like Win ScrollView
// Notify browser of new location for the selected rectangle.
result_bounds.move(-frameview()->scrollOffset().width(),