Chromium Code Reviews| 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 674d218fc8162ce891b1fb3f93482442972b1d64..41bf23af6485a2a9e51be2d9f09ed57638ce3e5a 100644 |
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
| @@ -4543,12 +4543,16 @@ LayoutRect LayoutBox::localCaretRect(InlineBox* box, |
| // FIXME: Paint the carets inside empty blocks differently than the carets |
| // before/after elements. |
| - LayoutRect rect(location(), LayoutSize(caretWidth(), size().height())); |
| + LayoutRect rect( |
| + location(), |
| + LayoutSize(caretWidth(frameView()->getHostWindow()), size().height())); |
|
oshima
2017/02/10 19:55:16
just get noce
malaykeshav
2017/02/10 21:00:54
Done
|
| bool ltr = |
| box ? box->isLeftToRightDirection() : style()->isLeftToRightDirection(); |
| if ((!caretOffset) ^ ltr) |
| - rect.move(LayoutSize(size().width() - caretWidth(), LayoutUnit())); |
| + rect.move( |
| + LayoutSize(size().width() - caretWidth(frameView()->getHostWindow()), |
| + LayoutUnit())); |
| if (box) { |
| RootInlineBox& rootBox = box->root(); |