| Index: content/browser/renderer_host/backing_store_mac.mm
|
| diff --git a/content/browser/renderer_host/backing_store_mac.mm b/content/browser/renderer_host/backing_store_mac.mm
|
| index b9e6eabfdc60142a56ad6aa009353158fa01ffbf..182d828f489f22dc8552aa509057209d885b2538 100644
|
| --- a/content/browser/renderer_host/backing_store_mac.mm
|
| +++ b/content/browser/renderer_host/backing_store_mac.mm
|
| @@ -6,6 +6,8 @@
|
|
|
| #include "content/browser/renderer_host/backing_store_mac.h"
|
|
|
| +#include <cmath>
|
| +
|
| #include "base/logging.h"
|
| #include "base/mac/mac_util.h"
|
| #include "base/mac/scoped_cftyperef.h"
|
| @@ -23,7 +25,10 @@ namespace {
|
|
|
| // Returns a Rect obtained by flooring the values of the given RectF.
|
| gfx::Rect ToFlooredRect(const gfx::RectF& rect) {
|
| - return gfx::Rect(rect.origin().ToPoint(), rect.size().ToSize());
|
| + return gfx::Rect(static_cast<int>(std::floor(rect.x())),
|
| + static_cast<int>(std::floor(rect.y())),
|
| + static_cast<int>(std::floor(rect.width())),
|
| + static_cast<int>(std::floor(rect.height())));
|
| }
|
|
|
| } // namespace
|
|
|