| Index: sky/engine/core/editing/Caret.cpp
|
| diff --git a/sky/engine/core/editing/Caret.cpp b/sky/engine/core/editing/Caret.cpp
|
| index e21ccc5a1649c5848f6a67cbd97093ff9565a622..b03f84e6d015cb8d0af20ce9423f9d0a08595cbf 100644
|
| --- a/sky/engine/core/editing/Caret.cpp
|
| +++ b/sky/engine/core/editing/Caret.cpp
|
| @@ -190,10 +190,7 @@ IntRect CaretBase::absoluteBoundsForLocalRect(Node* node, const LayoutRect& rect
|
| RenderBlock* caretPainter = caretRenderer(node);
|
| if (!caretPainter)
|
| return IntRect();
|
| -
|
| - LayoutRect localRect(rect);
|
| - caretPainter->flipForWritingMode(localRect);
|
| - return caretPainter->localToAbsoluteQuad(FloatRect(localRect)).enclosingBoundingBox();
|
| + return caretPainter->localToAbsoluteQuad(FloatRect(rect)).enclosingBoundingBox();
|
| }
|
|
|
| void CaretBase::invalidateLocalCaretRect(Node* node, const LayoutRect& rect)
|
| @@ -238,8 +235,6 @@ void CaretBase::paintCaret(Node* node, GraphicsContext* context, const LayoutPoi
|
| return;
|
|
|
| LayoutRect drawingRect = localCaretRectWithoutUpdate();
|
| - if (RenderBlock* renderer = caretRenderer(node))
|
| - renderer->flipForWritingMode(drawingRect);
|
| drawingRect.moveBy(roundedIntPoint(paintOffset));
|
| LayoutRect caret = intersection(drawingRect, clipRect);
|
| if (caret.isEmpty())
|
|
|