Index: third_party/WebKit/LayoutTests/editing/selection/extend-to-line-boundary.html |
diff --git a/third_party/WebKit/LayoutTests/editing/selection/extend-to-line-boundary.html b/third_party/WebKit/LayoutTests/editing/selection/extend-to-line-boundary.html |
index 6df731c22a58636211a216de9a946967d70e107f..5bdd7df753233bd613e07e4ee94a4e7c96a1205b 100644 |
--- a/third_party/WebKit/LayoutTests/editing/selection/extend-to-line-boundary.html |
+++ b/third_party/WebKit/LayoutTests/editing/selection/extend-to-line-boundary.html |
@@ -11,7 +11,7 @@ function createEditableMultilineDiv(text, numLines) { |
var span = document.createElement("span"); |
span.innerHTML = text; |
document.body.appendChild(span); |
- var widthPx = span.offsetWidth; |
+ var widthPx = Math.ceil(span.getBoundingClientRect().width); |
document.body.removeChild(span); |
// Make div with those dimensions so that the text wraps predictably regardless of platform. |