| Index: third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| index 0c0c4a6bb10792e02cf8cc3a007abdab506dc195..fac3e8f844128ff82976021366a666c1b6d902bc 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| @@ -760,8 +760,8 @@ int LayoutBox::reflectionOffset() const
|
| if (!style()->boxReflect())
|
| return 0;
|
| if (style()->boxReflect()->direction() == ReflectionLeft || style()->boxReflect()->direction() == ReflectionRight)
|
| - return valueForLength(style()->boxReflect()->offset(), borderBoxRect().width());
|
| - return valueForLength(style()->boxReflect()->offset(), borderBoxRect().height());
|
| + return valueForLength(style()->boxReflect()->offset(), borderBoxRect().width()).toInt();
|
| + return valueForLength(style()->boxReflect()->offset(), borderBoxRect().height()).toInt();
|
| }
|
|
|
| LayoutRect LayoutBox::reflectedRect(const LayoutRect& r) const
|
| @@ -1558,7 +1558,7 @@ ResourcePriority LayoutBox::computeResourcePriority() const
|
|
|
| int screenArea = 0;
|
| if (!screenRect.isEmpty() && isVisible)
|
| - screenArea = static_cast<uint32_t>(screenRect.width() * screenRect.height());
|
| + screenArea = (screenRect.width() * screenRect.height()).toInt();
|
| return ResourcePriority(isVisible ? ResourcePriority::Visible : ResourcePriority::NotVisible, screenArea);
|
| }
|
|
|
|
|