Chromium Code Reviews| Index: Source/core/layout/LayoutBox.cpp |
| diff --git a/Source/core/layout/LayoutBox.cpp b/Source/core/layout/LayoutBox.cpp |
| index a73c9fa68a333709f851161cef7003549fd8c997..c97ccce337231de5d2346bd70f405146bf0fb45b 100644 |
| --- a/Source/core/layout/LayoutBox.cpp |
| +++ b/Source/core/layout/LayoutBox.cpp |
| @@ -1947,7 +1947,7 @@ void LayoutBox::computeLogicalWidth(LogicalExtentComputedValues& computedValues) |
| } |
| // If layout is limited to a subtree, the subtree root's logical width does not change. |
| - if (node() && view()->frameView() && view()->frameView()->isLayoutRoot(*this)) |
| + if (node() && !parent()->needsLayout() && view()->frameView() && view()->frameView()->isLayoutRoot(*this)) |
|
chrishtr
2015/06/12 00:42:26
Maybe just delete the early-out? Does it matter?
esprehn
2015/06/12 00:44:52
It'd be nice to avoid computing preferredLogicalWi
|
| return; |
| // The parent box is flexing us, so it has increased or decreased our |