summaryrefslogtreecommitdiff
path: root/Source/WebCore/rendering/RenderBlock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/rendering/RenderBlock.cpp')
-rw-r--r--[-rwxr-xr-x]Source/WebCore/rendering/RenderBlock.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/WebCore/rendering/RenderBlock.cpp b/Source/WebCore/rendering/RenderBlock.cpp
index 796156a60..6e1087d35 100755..100644
--- a/Source/WebCore/rendering/RenderBlock.cpp
+++ b/Source/WebCore/rendering/RenderBlock.cpp
@@ -1373,6 +1373,7 @@ void RenderBlock::updateScrollInfoAfterLayout()
void RenderBlock::layout()
{
+ StackStats::LayoutCheckPoint layoutCheckPoint;
OverflowEventDispatcher dispatcher(this);
// Update our first letter info now.
@@ -6093,11 +6094,9 @@ void RenderBlock::computeBlockPreferredLogicalWidths()
LayoutUnit childMinPreferredLogicalWidth, childMaxPreferredLogicalWidth;
if (child->isBox() && child->isHorizontalWritingMode() != isHorizontalWritingMode()) {
RenderBox* childBox = toRenderBox(child);
- LayoutUnit oldHeight = childBox->logicalHeight();
- childBox->setLogicalHeight(childBox->borderAndPaddingLogicalHeight());
- childBox->updateLogicalHeight();
- childMinPreferredLogicalWidth = childMaxPreferredLogicalWidth = childBox->logicalHeight();
- childBox->setLogicalHeight(oldHeight);
+ LogicalExtentComputedValues computedValues;
+ childBox->computeLogicalHeight(childBox->borderAndPaddingLogicalHeight(), 0, computedValues);
+ childMinPreferredLogicalWidth = childMaxPreferredLogicalWidth = computedValues.m_extent;
} else {
childMinPreferredLogicalWidth = child->minPreferredLogicalWidth();
childMaxPreferredLogicalWidth = child->maxPreferredLogicalWidth();