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

Unified Diff: content/renderer/render_widget.cc

Issue 186753002: Chromium plumbing to use the selection root bounds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on Blink patch and OS_ANDROID specific Created 6 years, 9 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
« content/renderer/render_widget.h ('K') | « content/renderer/render_widget.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index 198d7d4cdfeef0e149fe91ac495c13cadc3f0f95..25b8bcef469dfdbcfc8dfc381d5cf6a6bc7b6155 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -1499,6 +1499,9 @@ void RenderWidget::DoDeferredUpdate() {
// enable GPU acceleration so they need to be called before any painting
// is done.
UpdateTextInputType();
+#if defined(OS_ANDROID)
+ UpdateSelectionRootBounds();
+#endif
UpdateSelectionBounds();
// Suppress painting if nothing is dirty. This has to be done after updating
@@ -1884,6 +1887,7 @@ void RenderWidget::willBeginCompositorFrame() {
UpdateTextInputType();
#if defined(OS_ANDROID)
UpdateTextInputState(false, true);
+ UpdateSelectionRootBounds();
#endif
UpdateSelectionBounds();
}
@@ -2387,6 +2391,9 @@ void RenderWidget::FinishHandlingImeEvent() {
// While handling an ime event, text input state and selection bounds updates
// are ignored. These must explicitly be updated once finished handling the
// ime event.
+#if defined(OS_ANDROID)
+ UpdateSelectionRootBounds();
+#endif
UpdateSelectionBounds();
#if defined(OS_ANDROID)
UpdateTextInputState(false, false);
« content/renderer/render_widget.h ('K') | « content/renderer/render_widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698