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

Unified Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 2354413003: Implement support for Mac Zoom following focus and caret (Closed)
Patch Set: Fix typo 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
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_view_host_impl.cc
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index 6d4e908768ef7c67faf0459c529671e9dbc690ce..14867333b5f16f65fe1628fe04864b27b9926426 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -1073,8 +1073,6 @@ void RenderViewHostImpl::OnFocusedNodeChanged(
bool is_editable_node,
const gfx::Rect& node_bounds_in_viewport) {
is_focused_element_editable_ = is_editable_node;
- if (GetWidget()->GetView())
- GetWidget()->GetView()->FocusedNodeChanged(is_editable_node);
// None of the rest makes sense without a view.
if (!GetWidget()->GetView())
@@ -1087,6 +1085,10 @@ void RenderViewHostImpl::OnFocusedNodeChanged(
gfx::Rect node_bounds_in_screen(origin.x(), origin.y(),
node_bounds_in_viewport.width(),
node_bounds_in_viewport.height());
+
+ GetWidget()->GetView()->FocusedNodeChanged(
+ is_editable_node, node_bounds_in_screen);
+
FocusedNodeDetails details = {is_editable_node, node_bounds_in_screen};
NotificationService::current()->Notify(NOTIFICATION_FOCUS_CHANGED_IN_PAGE,
Source<RenderViewHost>(this),
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698