| Index: third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp b/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp
|
| index 4b12c77613e553b002acb1d6ba8d41e8a3933fcc..69b3a4748a69f928a35bb3f6898a182a0972e5a3 100644
|
| --- a/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp
|
| @@ -204,12 +204,14 @@ bool InlineTextBox::hasWrappedSelectionNewline() const {
|
| return (state == SelectionStart || state == SelectionInside)
|
| // Checking last leaf child can be slow, so we make sure to do this
|
| // only after the other simple conditionals.
|
| - && (root().lastLeafChild() == this)
|
| + &&
|
| + (root().lastLeafChild() == this)
|
| // It's possible to have mixed LTR/RTL on a single line, and we only
|
| // want to paint a newline when we're the last leaf child and we make
|
| // sure there isn't a differently-directioned box following us.
|
| - && ((!isLeftToRightDirection() && root().firstSelectedBox() == this) ||
|
| - (isLeftToRightDirection() && root().lastSelectedBox() == this));
|
| + &&
|
| + ((!isLeftToRightDirection() && root().firstSelectedBox() == this) ||
|
| + (isLeftToRightDirection() && root().lastSelectedBox() == this));
|
| }
|
|
|
| float InlineTextBox::newlineSpaceWidth() const {
|
| @@ -418,8 +420,9 @@ bool InlineTextBox::nodeAtPoint(HitTestResult& result,
|
| if (visibleToHitTestRequest(result.hitTestRequest()) &&
|
| locationInContainer.intersects(rect)) {
|
| getLineLayoutItem().updateHitTestResult(
|
| - result, flipForWritingMode(locationInContainer.point() -
|
| - toLayoutSize(accumulatedOffset)));
|
| + result,
|
| + flipForWritingMode(locationInContainer.point() -
|
| + toLayoutSize(accumulatedOffset)));
|
| if (result.addNodeToListBasedTestResult(getLineLayoutItem().node(),
|
| locationInContainer,
|
| rect) == StopHitTesting)
|
|
|