| Index: sky/engine/core/rendering/RenderLineBoxList.cpp
|
| diff --git a/sky/engine/core/rendering/RenderLineBoxList.cpp b/sky/engine/core/rendering/RenderLineBoxList.cpp
|
| index dd437ba900ed1ec442e0a0d735fdb94c58bb748a..e0cf849bb1ad33e35cd5168a661c386d754e1642 100644
|
| --- a/sky/engine/core/rendering/RenderLineBoxList.cpp
|
| +++ b/sky/engine/core/rendering/RenderLineBoxList.cpp
|
| @@ -155,15 +155,9 @@ bool RenderLineBoxList::rangeIntersectsRect(RenderBoxModelObject* renderer, Layo
|
| LayoutUnit physicalExtent = absoluteValue(physicalEnd - physicalStart);
|
| physicalStart = std::min(physicalStart, physicalEnd);
|
|
|
| - if (renderer->style()->isHorizontalWritingMode()) {
|
| - physicalStart += offset.y();
|
| - if (physicalStart >= rect.maxY() || physicalStart + physicalExtent <= rect.y())
|
| - return false;
|
| - } else {
|
| - physicalStart += offset.x();
|
| - if (physicalStart >= rect.maxX() || physicalStart + physicalExtent <= rect.x())
|
| - return false;
|
| - }
|
| + physicalStart += offset.y();
|
| + if (physicalStart >= rect.maxY() || physicalStart + physicalExtent <= rect.y())
|
| + return false;
|
|
|
| return true;
|
| }
|
|
|