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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 2303613003: WebRange-ify WebWidget::applyReplacementRange. (Closed)
Patch Set: Updated comments. Created 4 years, 3 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
Index: third_party/WebKit/Source/web/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index 6a5ae67d63ad9cf36e1ec62914937b6fcaa3acf6..403838d91887c459cf5e7ddc1a1b419149901856 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -2841,10 +2841,10 @@ bool WebViewImpl::getCompositionCharacterBounds(WebVector<WebRect>& bounds)
return true;
}
-void WebViewImpl::applyReplacementRange(int start, int length)
+void WebViewImpl::applyReplacementRange(const WebRange& range)
{
if (WebLocalFrame* frame = focusedFrame())
- frame->selectRange(WebRange(start, length));
+ frame->selectRange(range);
}
// WebView --------------------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698