Chromium Code Reviews| 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..e4ca846a32c94452b34232646f1fcb8a271c2b58 100644 |
| --- a/sky/engine/core/rendering/RenderIFrame.cpp |
| +++ b/sky/engine/core/rendering/RenderIFrame.cpp |
| @@ -34,11 +34,13 @@ void RenderIFrame::updateWidgetBounds() |
| return; |
| IntRect bounds = absoluteContentBox(); |
| + const float scaleFactor = |
|
abarth-chromium
2015/02/04 16:41:11
scaleFactor -> devicePixelRatio
tonyg
2015/02/04 16:56:37
Done.
|
| + contentView->GetRoot()->viewport_metrics().device_pixel_ratio; |
| mojo::Rect mojoBounds; |
| - mojoBounds.x = bounds.x(); |
| - mojoBounds.y = bounds.y(); |
| - mojoBounds.width = bounds.width(); |
| - mojoBounds.height = bounds.height(); |
| + mojoBounds.x = bounds.x() * scaleFactor; |
| + mojoBounds.y = bounds.y() * scaleFactor; |
| + mojoBounds.width = bounds.width() * scaleFactor; |
| + mojoBounds.height = bounds.height() * scaleFactor; |
| contentView->SetBounds(mojoBounds); |
| } |