diff options
Diffstat (limited to 'cc/debug/debug_rect_history.cc')
-rw-r--r-- | cc/debug/debug_rect_history.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/debug/debug_rect_history.cc b/cc/debug/debug_rect_history.cc index 71611a6..e8792e7 100644 --- a/cc/debug/debug_rect_history.cc +++ b/cc/debug/debug_rect_history.cc @@ -78,9 +78,9 @@ void DebugRectHistory::SavePaintRects(LayerImpl* layer) { if (!layer->update_rect().IsEmpty() && layer->DrawsContent()) { float width_scale = layer->content_bounds().width() / - layer->bounds().width(); + static_cast<float>(layer->bounds().width()); float height_scale = layer->content_bounds().height() / - layer->bounds().height(); + static_cast<float>(layer->bounds().height()); gfx::Rect update_content_rect = gfx::ScaleToEnclosingRect( gfx::ToEnclosingRect(layer->update_rect()), width_scale, height_scale); debug_rects_.push_back( |