| Index: third_party/WebKit/LayoutTests/fast/multicol/float-truncation.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/multicol/float-truncation.html b/third_party/WebKit/LayoutTests/fast/multicol/float-truncation.html
|
| index 43d0206ad4ed5eef8ae85391751798f42f4f33e0..9597272670ecadcf0d0608d57c668c1777bce7cd 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/multicol/float-truncation.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/multicol/float-truncation.html
|
| @@ -72,11 +72,10 @@
|
| <script>
|
| function floatOffset(float)
|
| {
|
| - var range = document.createRange();
|
| - range.setStart(float, 0);
|
| - range.setEnd(float, 0);
|
| - range.expand("word");
|
| - var rect = range.getBoundingClientRect();
|
| + var selection = getSelection();
|
| + selection.collapse(float, 0);
|
| + selection.modify("extend", "forward", "word");
|
| + var rect = selection.getRangeAt(0).getBoundingClientRect();
|
| var parentRect = float.parentNode.getBoundingClientRect();
|
| return { width: rect.left - parentRect.left, height: rect.top - parentRect.top };
|
| }
|
|
|