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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 287093002: Remove ViewMsg_SetZoomLevel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update temporary zoom settings in OnDocumentAvailableInMainFrame Created 6 years, 7 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/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index a667a599dfde75a133593dc62e50a5e355ace9f4..8730445295a2a5558d3b6c26a8d5d660016b64d2 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -2030,9 +2030,11 @@ void RenderFrameImpl::didCreateDocumentElement(blink::WebLocalFrame* frame) {
if (url.is_valid() && url.spec() != kAboutBlankURL) {
// TODO(nasko): Check if webview()->mainFrame() is the same as the
// frame->tree()->top().
- if (frame == render_view_->webview()->mainFrame()) {
+ blink::WebFrame* main_frame = render_view_->webview()->mainFrame();
+ if (frame == main_frame) {
render_view_->Send(new ViewHostMsg_DocumentAvailableInMainFrame(
- render_view_->GetRoutingID()));
+ render_view_->GetRoutingID(),
+ main_frame->document().isPluginDocument()));
}
}

Powered by Google App Engine
This is Rietveld 408576698