| Index: sky/engine/core/rendering/RenderIFrame.cpp
|
| diff --git a/sky/engine/core/rendering/RenderIFrame.cpp b/sky/engine/core/rendering/RenderIFrame.cpp
|
| index 76b09620fa6ee576c7e90a660fdc7bb7591db70d..b3f7768d50f528778c297d513b3221e05a274aeb 100644
|
| --- a/sky/engine/core/rendering/RenderIFrame.cpp
|
| +++ b/sky/engine/core/rendering/RenderIFrame.cpp
|
| @@ -33,12 +33,17 @@ void RenderIFrame::updateWidgetBounds()
|
| if (!contentView)
|
| return;
|
|
|
| + // FIXME: Once viewport_metrics are initialized properly on child views,
|
| + // The GetRoot() call should be removed.
|
| + const float devicePixelRatio =
|
| + contentView->GetRoot()->viewport_metrics().device_pixel_ratio;
|
| +
|
| IntRect bounds = absoluteContentBox();
|
| mojo::Rect mojoBounds;
|
| - mojoBounds.x = bounds.x();
|
| - mojoBounds.y = bounds.y();
|
| - mojoBounds.width = bounds.width();
|
| - mojoBounds.height = bounds.height();
|
| + mojoBounds.x = bounds.x() * devicePixelRatio;
|
| + mojoBounds.y = bounds.y() * devicePixelRatio;
|
| + mojoBounds.width = bounds.width() * devicePixelRatio;
|
| + mojoBounds.height = bounds.height() * devicePixelRatio;
|
| contentView->SetBounds(mojoBounds);
|
| }
|
|
|
|
|