Index: Source/core/rendering/RenderMultiColumnSet.cpp |
diff --git a/Source/core/rendering/RenderMultiColumnSet.cpp b/Source/core/rendering/RenderMultiColumnSet.cpp |
index e54c7a0fb38a6a2638aec6ef87eec4361eef7283..5df882d74a1a7c253cec6bdb32be86f713461ffb 100644 |
--- a/Source/core/rendering/RenderMultiColumnSet.cpp |
+++ b/Source/core/rendering/RenderMultiColumnSet.cpp |
@@ -63,6 +63,16 @@ RenderMultiColumnSet* RenderMultiColumnSet::nextSiblingMultiColumnSet() const |
return 0; |
} |
+LayoutSize RenderMultiColumnSet::flowThreadTranslationAtOffset(LayoutUnit blockOffset) const |
+{ |
+ unsigned columnIndex = columnIndexAtOffset(blockOffset); |
+ LayoutRect portionRect(flowThreadPortionRectAt(columnIndex)); |
+ flipForWritingMode(portionRect); |
+ LayoutRect columnRect(columnRectAt(columnIndex)); |
+ flipForWritingMode(columnRect); |
+ return contentBoxRect().location() + columnRect.location() - portionRect.location(); |
+} |
+ |
LayoutUnit RenderMultiColumnSet::heightAdjustedForSetOffset(LayoutUnit height) const |
{ |
RenderBlockFlow* multicolBlock = multiColumnBlockFlow(); |