| 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/browser/renderer_host/render_view_host_impl.h" | 5 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 | 512 |
| 513 prefs.viewport_enabled = | 513 prefs.viewport_enabled = |
| 514 command_line.HasSwitch(switches::kEnableViewport) || | 514 command_line.HasSwitch(switches::kEnableViewport) || |
| 515 prefs.viewport_meta_enabled; | 515 prefs.viewport_meta_enabled; |
| 516 | 516 |
| 517 prefs.main_frame_resizes_are_orientation_changes = | 517 prefs.main_frame_resizes_are_orientation_changes = |
| 518 command_line.HasSwitch(switches::kMainFrameResizesAreOrientationChanges); | 518 command_line.HasSwitch(switches::kMainFrameResizesAreOrientationChanges); |
| 519 | 519 |
| 520 prefs.deferred_image_decoding_enabled = | 520 prefs.deferred_image_decoding_enabled = |
| 521 command_line.HasSwitch(switches::kEnableDeferredImageDecoding) || | 521 command_line.HasSwitch(switches::kEnableDeferredImageDecoding) || |
| 522 cc::switches::IsImplSidePaintingEnabled(); | 522 content::IsImplSidePaintingEnabled(); |
| 523 | 523 |
| 524 prefs.spatial_navigation_enabled = command_line.HasSwitch( | 524 prefs.spatial_navigation_enabled = command_line.HasSwitch( |
| 525 switches::kEnableSpatialNavigation); | 525 switches::kEnableSpatialNavigation); |
| 526 | 526 |
| 527 GetContentClient()->browser()->OverrideWebkitPrefs(this, url, &prefs); | 527 GetContentClient()->browser()->OverrideWebkitPrefs(this, url, &prefs); |
| 528 | 528 |
| 529 // Disable compositing in guests until we have compositing path implemented | 529 // Disable compositing in guests until we have compositing path implemented |
| 530 // for guests. | 530 // for guests. |
| 531 bool guest_compositing_enabled = !command_line.HasSwitch( | 531 bool guest_compositing_enabled = !command_line.HasSwitch( |
| 532 switches::kDisableBrowserPluginCompositing); | 532 switches::kDisableBrowserPluginCompositing); |
| (...skipping 1440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1973 return true; | 1973 return true; |
| 1974 } | 1974 } |
| 1975 | 1975 |
| 1976 void RenderViewHostImpl::AttachToFrameTree() { | 1976 void RenderViewHostImpl::AttachToFrameTree() { |
| 1977 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1977 FrameTree* frame_tree = delegate_->GetFrameTree(); |
| 1978 | 1978 |
| 1979 frame_tree->ResetForMainFrameSwap(); | 1979 frame_tree->ResetForMainFrameSwap(); |
| 1980 } | 1980 } |
| 1981 | 1981 |
| 1982 } // namespace content | 1982 } // namespace content |
| OLD | NEW |