Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: content/renderer/android/content_detector.cc

Issue 10736031: Update the WebKit API used for WebSurroundingText. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/android/content_detector.cc
diff --git a/content/renderer/android/content_detector.cc b/content/renderer/android/content_detector.cc
index f457628b96ca0d375e801ab015c05e7eef9f953f..96adfa3fb7ba2f76519e2aeb3b70a3053ffeb53d 100644
--- a/content/renderer/android/content_detector.cc
+++ b/content/renderer/android/content_detector.cc
@@ -5,6 +5,7 @@
#include "content/renderer/android/content_detector.h"
#include "base/logging.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPoint.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebHitTestResult.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebSurroundingText.h"
@@ -33,7 +34,8 @@ WebRange ContentDetector::FindContentRange(
// As the surrounding text extractor looks at maxLength/2 characters on
// either side of the hit point, we need to double max content length here.
WebSurroundingText surrounding_text;
- surrounding_text.initialize(hit_test, GetMaximumContentLength() * 2);
+ surrounding_text.initialize(hit_test.node(), hit_test.localPoint(),
+ GetMaximumContentLength() * 2);
if (surrounding_text.isNull())
return WebRange();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698