| Index: content/renderer/render_view_impl.cc
|
| diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
|
| index fc848215a049636d92f519d25623adc98a83a4c7..a797669cedbf7abcd10f52932f7d0d43ef57401a 100644
|
| --- a/content/renderer/render_view_impl.cc
|
| +++ b/content/renderer/render_view_impl.cc
|
| @@ -2332,12 +2332,6 @@ void RenderViewImpl::SetFocus(bool enable) {
|
| BrowserPluginManager::Get()->UpdateFocusState();
|
| }
|
|
|
| -void RenderViewImpl::RenderWidgetDidSetColorProfile(
|
| - const gfx::ICCProfile& profile) {
|
| - if (webview())
|
| - webview()->setDeviceColorProfile(profile);
|
| -}
|
| -
|
| void RenderViewImpl::DidCompletePageScaleAnimation() {
|
| GetWidget()->FocusChangeComplete();
|
| }
|
| @@ -2610,6 +2604,24 @@ void RenderViewImpl::SetDeviceScaleFactorForTesting(float factor) {
|
| OnResize(params);
|
| }
|
|
|
| +void RenderViewImpl::SetDeviceColorProfileForTesting(
|
| + const gfx::ICCProfile& icc_profile) {
|
| + if (webview())
|
| + webview()->setDeviceColorProfile(icc_profile);
|
| +
|
| + ResizeParams params;
|
| + params.screen_info = screen_info_;
|
| + params.screen_info.icc_profile = icc_profile;
|
| + params.new_size = size();
|
| + params.visible_viewport_size = visible_viewport_size_;
|
| + params.physical_backing_size = physical_backing_size_;
|
| + params.browser_controls_shrink_blink_size = false;
|
| + params.top_controls_height = 0.f;
|
| + params.is_fullscreen_granted = is_fullscreen_granted();
|
| + params.display_mode = display_mode_;
|
| + OnResize(params);
|
| +}
|
| +
|
| void RenderViewImpl::ForceResizeForTesting(const gfx::Size& new_size) {
|
| gfx::Rect new_window_rect(rootWindowRect().x,
|
| rootWindowRect().y,
|
|
|