| Index: third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp b/third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp
|
| index 0f183ce21a86cce5e2fc5fb95d25d107d2060891..a7b36da915f9d96a6b048bda232832e635945e6e 100644
|
| --- a/third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp
|
| @@ -604,8 +604,10 @@ void InlineTextBoxPainter::paint(const PaintInfo& paintInfo,
|
| selectionEnd = textRun.length();
|
|
|
| bool ltr = m_inlineTextBox.isLeftToRightDirection();
|
| - bool flowIsLTR =
|
| - m_inlineTextBox.getLineLayoutItem().style()->isLeftToRightDirection();
|
| + bool flowIsLTR = m_inlineTextBox.getLineLayoutItem()
|
| + .containingBlock()
|
| + .style()
|
| + ->isLeftToRightDirection();
|
| if (m_inlineTextBox.truncation() != cNoTruncation) {
|
| // In a mixed-direction flow the ellipsis is at the start of the text
|
| // rather than at the end of it.
|
| @@ -994,8 +996,10 @@ void InlineTextBoxPainter::paintSelection(GraphicsContext& context,
|
| unsigned start = m_inlineTextBox.start();
|
| int length = m_inlineTextBox.len();
|
| bool ltr = m_inlineTextBox.isLeftToRightDirection();
|
| - bool flowIsLTR =
|
| - m_inlineTextBox.getLineLayoutItem().style()->isLeftToRightDirection();
|
| + bool flowIsLTR = m_inlineTextBox.getLineLayoutItem()
|
| + .containingBlock()
|
| + .style()
|
| + ->isLeftToRightDirection();
|
| if (m_inlineTextBox.truncation() != cNoTruncation) {
|
| // In a mixed-direction flow the ellipsis is at the start of the text
|
| // so we need to start after it. Otherwise we just need to make sure
|
|
|