OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/renderer/render_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 1444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1455 /////////////////////////////////////////////////////////////////////////////// | 1455 /////////////////////////////////////////////////////////////////////////////// |
1456 | 1456 |
1457 void RenderViewImpl::SendUpdateState() { | 1457 void RenderViewImpl::SendUpdateState() { |
1458 // We don't use this path in OOPIF-enabled modes. | 1458 // We don't use this path in OOPIF-enabled modes. |
1459 DCHECK(!SiteIsolationPolicy::UseSubframeNavigationEntries()); | 1459 DCHECK(!SiteIsolationPolicy::UseSubframeNavigationEntries()); |
1460 | 1460 |
1461 HistoryEntry* entry = history_controller_->GetCurrentEntry(); | 1461 HistoryEntry* entry = history_controller_->GetCurrentEntry(); |
1462 if (!entry) | 1462 if (!entry) |
1463 return; | 1463 return; |
1464 | 1464 |
1465 Send(new ViewHostMsg_UpdateState(GetRoutingID(), page_id_, | 1465 Send(new ViewHostMsg_UpdateState(GetRoutingID(), |
1466 HistoryEntryToPageState(entry))); | 1466 HistoryEntryToPageState(entry))); |
1467 } | 1467 } |
1468 | 1468 |
1469 void RenderViewImpl::SendFrameStateUpdates() { | 1469 void RenderViewImpl::SendFrameStateUpdates() { |
1470 // We only use this path in OOPIF-enabled modes. | 1470 // We only use this path in OOPIF-enabled modes. |
1471 DCHECK(SiteIsolationPolicy::UseSubframeNavigationEntries()); | 1471 DCHECK(SiteIsolationPolicy::UseSubframeNavigationEntries()); |
1472 | 1472 |
1473 // Tell each frame with pending state to send its UpdateState message. | 1473 // Tell each frame with pending state to send its UpdateState message. |
1474 for (int render_frame_routing_id : frames_with_pending_state_) { | 1474 for (int render_frame_routing_id : frames_with_pending_state_) { |
1475 RenderFrameImpl* frame = | 1475 RenderFrameImpl* frame = |
(...skipping 1549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3025 if (IsUseZoomForDSFEnabled()) { | 3025 if (IsUseZoomForDSFEnabled()) { |
3026 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_); | 3026 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_); |
3027 } else { | 3027 } else { |
3028 webview()->setDeviceScaleFactor(device_scale_factor_); | 3028 webview()->setDeviceScaleFactor(device_scale_factor_); |
3029 } | 3029 } |
3030 webview()->settings()->setPreferCompositingToLCDTextEnabled( | 3030 webview()->settings()->setPreferCompositingToLCDTextEnabled( |
3031 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_)); | 3031 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_)); |
3032 } | 3032 } |
3033 | 3033 |
3034 } // namespace content | 3034 } // namespace content |
OLD | NEW |