| Index: third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp
|
| diff --git a/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp
|
| index a4578bdecd6e0430371e019c9acabd237af5e90f..fbd395b0546bb4c75aa89484aaad029e6ba84b8a 100644
|
| --- a/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp
|
| +++ b/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp
|
| @@ -134,8 +134,8 @@ HeapVector<Member<Element>> elementsFromRect(LayoutRect rect, Document& document
|
|
|
| LayoutPoint center = rect.center();
|
| unsigned leftPadding, rightPadding, topPadding, bottomPadding;
|
| - leftPadding = rightPadding = rect.width() / 2;
|
| - topPadding = bottomPadding = rect.height() / 2;
|
| + leftPadding = rightPadding = (rect.width() / 2).toUnsigned();
|
| + topPadding = bottomPadding = (rect.height() / 2).toUnsigned();
|
| HitTestResult result(request, center, topPadding, rightPadding, bottomPadding, leftPadding);
|
| document.frame()->contentLayoutItem().hitTest(result);
|
| return document.elementsFromHitTestResult(result);
|
|
|