| Index: Source/core/rendering/RenderBoxModelObject.cpp
|
| diff --git a/Source/core/rendering/RenderBoxModelObject.cpp b/Source/core/rendering/RenderBoxModelObject.cpp
|
| index 6750eda2f0c3bac5c4c358aa7281d7f489427863..037f8a492ef0e1d0fc151a83edf91f99c4ba40ad 100644
|
| --- a/Source/core/rendering/RenderBoxModelObject.cpp
|
| +++ b/Source/core/rendering/RenderBoxModelObject.cpp
|
| @@ -2745,18 +2745,8 @@ void RenderBoxModelObject::mapAbsoluteToLocalPoint(MapCoordinatesFlags mode, Tra
|
| if (!o)
|
| return;
|
|
|
| - // The point inside a box that's inside a region has its coordinates relative to the region,
|
| - // not the FlowThread that is its container in the RenderObject tree.
|
| - if (o->isRenderFlowThread() && isRenderBlock()) {
|
| - // FIXME: switch to Box instead of Block when we'll have range information for boxes as well, not just for blocks.
|
| - RenderRegion* startRegion;
|
| - RenderRegion* ignoredEndRegion;
|
| - toRenderFlowThread(o)->getRegionRangeForBox(toRenderBlock(this), startRegion, ignoredEndRegion);
|
| - // If there is no region to use the FlowThread, then there's no region range for the content in that FlowThread.
|
| - // An API like elementFromPoint might crash without this check.
|
| - if (startRegion)
|
| - o = startRegion;
|
| - }
|
| + if (o->isRenderFlowThread())
|
| + transformState.move(o->columnOffset(LayoutPoint(transformState.mappedPoint())));
|
|
|
| o->mapAbsoluteToLocalPoint(mode, transformState);
|
|
|
|
|