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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutMultiColumnSet.cpp

Issue 2590463002: Make column snapping optional when translating to flow thread coordinates. (Closed)
Patch Set: Created 4 years 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
Index: third_party/WebKit/Source/core/layout/LayoutMultiColumnSet.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutMultiColumnSet.cpp b/third_party/WebKit/Source/core/layout/LayoutMultiColumnSet.cpp
index 7d251344bb3c5ea25451bd41e06cfeb678ccf201..6044f69169fe3fa7d924520e3e87119b918052b2 100644
--- a/third_party/WebKit/Source/core/layout/LayoutMultiColumnSet.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutMultiColumnSet.cpp
@@ -474,8 +474,9 @@ PositionWithAffinity LayoutMultiColumnSet::positionForPoint(
// Convert the visual point to a flow thread point.
const MultiColumnFragmentainerGroup& row =
fragmentainerGroupAtVisualPoint(point);
- LayoutPoint flowThreadPoint =
- row.visualPointToFlowThreadPoint(point + row.offsetFromColumnSet());
+ LayoutPoint flowThreadPoint = row.visualPointToFlowThreadPoint(
+ point + row.offsetFromColumnSet(),
+ MultiColumnFragmentainerGroup::SnapToColumn);
// Then drill into the flow thread, where we'll find the actual content.
return flowThread()->positionForPoint(flowThreadPoint);
}

Powered by Google App Engine
This is Rietveld 408576698