Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1732)

Unified Diff: Source/core/rendering/RenderBoxModelObject.cpp

Issue 264103002: [New Multicolumn] fast/multicol/multicol-with-child-renderLayer-for-input.html puts the textfield i… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: See if this 'fixes' the minor rendering difference on Mac. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/frame/FrameView.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « Source/core/frame/FrameView.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698