| Index: sky/engine/core/rendering/RootInlineBox.cpp
|
| diff --git a/sky/engine/core/rendering/RootInlineBox.cpp b/sky/engine/core/rendering/RootInlineBox.cpp
|
| index 843495bdd6e1d1b773e8b0b4b6a7bd5baeaf6830..3fbfb84044b92678d257843e45a1054a96fc8103 100644
|
| --- a/sky/engine/core/rendering/RootInlineBox.cpp
|
| +++ b/sky/engine/core/rendering/RootInlineBox.cpp
|
| @@ -320,7 +320,7 @@ GapRects RootInlineBox::lineSelectionGap(RenderBlock* rootBlock, const LayoutPoi
|
| for (InlineBox* box = firstBox->nextLeafChild(); box; box = box->nextLeafChild()) {
|
| if (box->selectionState() != RenderObject::SelectionNone) {
|
| LayoutRect logicalRect(lastLogicalLeft, selTop, box->logicalLeft() - lastLogicalLeft, selHeight);
|
| - logicalRect.move(renderer().isHorizontalWritingMode() ? offsetFromRootBlock : LayoutSize(offsetFromRootBlock.height(), offsetFromRootBlock.width()));
|
| + logicalRect.move(offsetFromRootBlock);
|
| LayoutRect gapRect = rootBlock->logicalRectToPhysicalRect(rootBlockPhysicalPosition, logicalRect);
|
| if (isPreviousBoxSelected && gapRect.width() > 0 && gapRect.height() > 0) {
|
| if (paintInfo)
|
| @@ -477,7 +477,7 @@ static bool isEditableLeaf(InlineBox* leaf)
|
|
|
| InlineBox* RootInlineBox::closestLeafChildForPoint(const IntPoint& pointInContents, bool onlyEditableLeaves)
|
| {
|
| - return closestLeafChildForLogicalLeftPosition(block().isHorizontalWritingMode() ? pointInContents.x() : pointInContents.y(), onlyEditableLeaves);
|
| + return closestLeafChildForLogicalLeftPosition(pointInContents.x(), onlyEditableLeaves);
|
| }
|
|
|
| InlineBox* RootInlineBox::closestLeafChildForLogicalLeftPosition(int leftPosition, bool onlyEditableLeaves)
|
| @@ -736,7 +736,7 @@ LayoutUnit RootInlineBox::verticalPositionForBox(InlineBox* box, VerticalPositio
|
| const FontMetrics& fontMetrics = font.fontMetrics();
|
| int fontSize = font.fontDescription().computedPixelSize();
|
|
|
| - LineDirectionMode lineDirection = parent->isHorizontalWritingMode() ? HorizontalLine : VerticalLine;
|
| + LineDirectionMode lineDirection = HorizontalLine;
|
|
|
| if (verticalAlign == SUB)
|
| verticalPosition += fontSize / 5 + 1;
|
|
|