Commit 4a68d257 authored by Ian Kilpatrick's avatar Ian Kilpatrick Committed by Commit Bot

[cleanup] Use ClearLayoutResults in LayoutBox::UpdateAfterLayout()

Followup from:
https://chromium-review.googlesource.com/c/chromium/src/+/2031547

Change-Id: I06de15554a90534978ef11c0516e81742058b834
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2035860
Commit-Queue: Koji Ishii <kojii@chromium.org>
Reviewed-by: default avatarKoji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#738054}
parent ea382e39
...@@ -779,10 +779,8 @@ void LayoutBox::UpdateAfterLayout() { ...@@ -779,10 +779,8 @@ void LayoutBox::UpdateAfterLayout() {
// We also want to make sure that if our entrance point into layout changes, // We also want to make sure that if our entrance point into layout changes,
// e.g. an OOF-positioned object is laid out by an NG containing block, then // e.g. an OOF-positioned object is laid out by an NG containing block, then
// Legacy, then NG again, NG won't use a stale layout result. // Legacy, then NG again, NG won't use a stale layout result.
if (IsOutOfFlowPositioned() && !IsLayoutNGObject()) { if (IsOutOfFlowPositioned() && !IsLayoutNGObject())
measure_result_.reset(); ClearLayoutResults();
layout_results_.clear();
}
} }
bool LayoutBox::HasOverrideIntrinsicContentWidth() const { bool LayoutBox::HasOverrideIntrinsicContentWidth() const {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment