Index: Source/core/rendering/RenderBlock.cpp |
diff --git a/Source/core/rendering/RenderBlock.cpp b/Source/core/rendering/RenderBlock.cpp |
index a3bffe2dace36061bf39b6c6254bf378e489526e..b6adb87eec591bab10914ea26fbd52b4b0640858 100644 |
--- a/Source/core/rendering/RenderBlock.cpp |
+++ b/Source/core/rendering/RenderBlock.cpp |
@@ -1332,38 +1332,6 @@ bool RenderBlock::updateImageLoadingPriorities() |
return true; |
} |
-LayoutSize RenderBlock::logicalOffsetFromShapeAncestorContainer(const RenderBlock* container) const |
-{ |
- const RenderBlock* currentBlock = this; |
- LayoutRect blockRect(currentBlock->borderBoxRect()); |
- while (currentBlock && !currentBlock->isRenderFlowThread() && currentBlock != container) { |
- RenderBlock* containerBlock = currentBlock->containingBlock(); |
- ASSERT(containerBlock); |
- if (!containerBlock) |
- return LayoutSize(); |
- |
- if (containerBlock->style()->writingMode() != currentBlock->style()->writingMode()) { |
- // We have to put the block rect in container coordinates |
- // and we have to take into account both the container and current block flipping modes |
- // Bug: Flipping inline and block directions at the same time will not work, |
- // as one of the flipped dimensions will not yet have been set to its final size |
- if (containerBlock->style()->isFlippedBlocksWritingMode()) { |
- if (containerBlock->isHorizontalWritingMode()) |
- blockRect.setY(currentBlock->height() - blockRect.maxY()); |
- else |
- blockRect.setX(currentBlock->width() - blockRect.maxX()); |
- } |
- currentBlock->flipForWritingMode(blockRect); |
- } |
- |
- blockRect.moveBy(currentBlock->location()); |
- currentBlock = containerBlock; |
- } |
- |
- LayoutSize result = isHorizontalWritingMode() ? LayoutSize(blockRect.x(), blockRect.y()) : LayoutSize(blockRect.y(), blockRect.x()); |
- return result; |
-} |
- |
void RenderBlock::computeRegionRangeForBlock(RenderFlowThread* flowThread) |
{ |
if (flowThread) |