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

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

Issue 2199523002: Convert WebRange to be a simple pair of numbers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Forgot the exports. Created 4 years, 4 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 271807746f22e34e871e1ab137be4e0e14724c52..89f309ee11bd8c8c74fe990ccdcb4cc1ccb6ffde 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -2851,11 +2851,8 @@ bool WebViewImpl::getCompositionCharacterBounds(WebVector<WebRect>& bounds)
void WebViewImpl::applyReplacementRange(int start, int length)
{
- if (WebLocalFrame* frame = focusedFrame()) {
- WebRange webrange = WebRange::fromDocumentRange(frame, start, length);
- if (!webrange.isNull())
- frame->selectRange(webrange);
- }
+ if (WebLocalFrame* frame = focusedFrame())
+ frame->selectRange(WebRange(start, length));
}
// WebView --------------------------------------------------------------------
« no previous file with comments | « third_party/WebKit/Source/web/WebSurroundingText.cpp ('k') | third_party/WebKit/Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698