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 1445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1456 /////////////////////////////////////////////////////////////////////////////// | 1456 /////////////////////////////////////////////////////////////////////////////// |
1457 | 1457 |
1458 void RenderViewImpl::SendUpdateState() { | 1458 void RenderViewImpl::SendUpdateState() { |
1459 // We don't use this path in OOPIF-enabled modes. | 1459 // We don't use this path in OOPIF-enabled modes. |
1460 DCHECK(!SiteIsolationPolicy::UseSubframeNavigationEntries()); | 1460 DCHECK(!SiteIsolationPolicy::UseSubframeNavigationEntries()); |
1461 | 1461 |
1462 HistoryEntry* entry = history_controller_->GetCurrentEntry(); | 1462 HistoryEntry* entry = history_controller_->GetCurrentEntry(); |
1463 if (!entry) | 1463 if (!entry) |
1464 return; | 1464 return; |
1465 | 1465 |
1466 Send(new ViewHostMsg_UpdateState(GetRoutingID(), page_id_, | 1466 Send(new ViewHostMsg_UpdateState(GetRoutingID(), |
1467 HistoryEntryToPageState(entry))); | 1467 HistoryEntryToPageState(entry))); |
1468 } | 1468 } |
1469 | 1469 |
1470 void RenderViewImpl::SendFrameStateUpdates() { | 1470 void RenderViewImpl::SendFrameStateUpdates() { |
1471 // We only use this path in OOPIF-enabled modes. | 1471 // We only use this path in OOPIF-enabled modes. |
1472 DCHECK(SiteIsolationPolicy::UseSubframeNavigationEntries()); | 1472 DCHECK(SiteIsolationPolicy::UseSubframeNavigationEntries()); |
1473 | 1473 |
1474 // Tell each frame with pending state to send its UpdateState message. | 1474 // Tell each frame with pending state to send its UpdateState message. |
1475 for (int render_frame_routing_id : frames_with_pending_state_) { | 1475 for (int render_frame_routing_id : frames_with_pending_state_) { |
1476 RenderFrameImpl* frame = | 1476 RenderFrameImpl* frame = |
(...skipping 1549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3026 if (IsUseZoomForDSFEnabled()) { | 3026 if (IsUseZoomForDSFEnabled()) { |
3027 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_); | 3027 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_); |
3028 } else { | 3028 } else { |
3029 webview()->setDeviceScaleFactor(device_scale_factor_); | 3029 webview()->setDeviceScaleFactor(device_scale_factor_); |
3030 } | 3030 } |
3031 webview()->settings()->setPreferCompositingToLCDTextEnabled( | 3031 webview()->settings()->setPreferCompositingToLCDTextEnabled( |
3032 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_)); | 3032 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_)); |
3033 } | 3033 } |
3034 | 3034 |
3035 } // namespace content | 3035 } // namespace content |
OLD | NEW |