Index: Source/core/rendering/RenderRegion.cpp |
diff --git a/Source/core/rendering/RenderRegion.cpp b/Source/core/rendering/RenderRegion.cpp |
index 91d212f655ad879efec19f3165c64c8bc6ec9705..194b9bd924a3b07bcd967e1a77893c77f6a4c50f 100644 |
--- a/Source/core/rendering/RenderRegion.cpp |
+++ b/Source/core/rendering/RenderRegion.cpp |
@@ -144,6 +144,18 @@ void RenderRegion::repaintFlowThreadContentRectangle(const LayoutRect& repaintRe |
invalidatePaintRectangle(clippedRect); |
} |
+LayoutUnit RenderRegion::logicalTopOfFlowThreadContentRect(const LayoutRect& rect) const |
+{ |
+ ASSERT(isValid()); |
+ return flowThread()->isHorizontalWritingMode() ? rect.y() : rect.x(); |
+} |
+ |
+LayoutUnit RenderRegion::logicalBottomOfFlowThreadContentRect(const LayoutRect& rect) const |
+{ |
+ ASSERT(isValid()); |
+ return flowThread()->isHorizontalWritingMode() ? rect.maxY() : rect.maxX(); |
+} |
+ |
void RenderRegion::computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidth) const |
{ |
if (!isValid()) { |