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

Unified Diff: content/browser/frame_host/render_widget_host_view_child_frame.cc

Issue 2057803002: Tracking SelectionBounds for all RenderWidgets on the Browser Side (Aura Only) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed an Error Created 4 years, 6 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: content/browser/frame_host/render_widget_host_view_child_frame.cc
diff --git a/content/browser/frame_host/render_widget_host_view_child_frame.cc b/content/browser/frame_host/render_widget_host_view_child_frame.cc
index e3a036176bbdbf690e3546a543b0b2c005d3fd63..d3cc7f2cdca0e7104c25ec2eb44b143b6eca0d42 100644
--- a/content/browser/frame_host/render_widget_host_view_child_frame.cc
+++ b/content/browser/frame_host/render_widget_host_view_child_frame.cc
@@ -299,6 +299,12 @@ void RenderWidgetHostViewChildFrame::SelectionChanged(
void RenderWidgetHostViewChildFrame::SelectionBoundsChanged(
const ViewHostMsg_SelectionBounds_Params& params) {
+ ViewHostMsg_SelectionBounds_Params transformed_params = params;
+ transformed_params.anchor_rect.set_origin(
+ TransformPointToRootCoordSpace(params.anchor_rect.origin()));
+ transformed_params.focus_rect.set_origin(
+ TransformPointToRootCoordSpace(params.focus_rect.origin()));
+ RenderWidgetHostViewBase::SelectionBoundsChanged(transformed_params);
}
void RenderWidgetHostViewChildFrame::LockCompositingSurface() {

Powered by Google App Engine
This is Rietveld 408576698