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

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

Issue 2020973002: Reland: Fix setComposingText with empty text when newCursorPosition != 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: check the boundary in WebViewImpl instead of render_widget Created 4 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
Index: third_party/WebKit/Source/web/WebViewImpl.h
diff --git a/third_party/WebKit/Source/web/WebViewImpl.h b/third_party/WebKit/Source/web/WebViewImpl.h
index af2b14985a8f9cb3a489a53b8682e734f72b6692..7fd4ac8c3a3c6cd62aee9df3d66c665b0515be99 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.h
+++ b/third_party/WebKit/Source/web/WebViewImpl.h
@@ -623,6 +623,9 @@ private:
void attachCompositorAnimationTimeline(CompositorAnimationTimeline*);
void detachCompositorAnimationTimeline(CompositorAnimationTimeline*);
+ // When selection exceeds the boundary, it should stay at the boundary.
+ std::pair<int, int> adjustSelectionForBoundary(int selectionStart, int selectionEnd, const int textLength);
+
WebViewClient* m_client; // Can be 0 (e.g. unittests, shared workers, etc.)
WebSpellCheckClient* m_spellCheckClient;

Powered by Google App Engine
This is Rietveld 408576698