Commit 1e1b9272 authored by Rune Lillesveen's avatar Rune Lillesveen Committed by Commit Bot

Fix failing invalidation test condition for FlatTreeStyleRecalc.

Document node is not marked with ChildNeedsStyleRecalc when
FlatTreeStyleRecalc is enabled. Test StyleEngine::NeedsStyleRecalc
instead.

Bug: 972752
Change-Id: I9d3276c76d74d7e1c9f44bbc1a30dff318aebce2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1841954Reviewed-by: default avatarMorten Stenshorne <mstensho@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#703285}
parent 3947fddf
......@@ -56,7 +56,7 @@ TEST_F(PendingInvalidationsTest, ScheduleOnDocumentNode) {
EXPECT_FALSE(GetDocument().NeedsStyleInvalidation());
EXPECT_FALSE(GetDocument().ChildNeedsStyleInvalidation());
EXPECT_FALSE(GetDocument().NeedsStyleRecalc());
EXPECT_TRUE(GetDocument().ChildNeedsStyleRecalc());
EXPECT_TRUE(GetStyleEngine().NeedsStyleRecalc());
GetDocument().View()->UpdateAllLifecyclePhases(
DocumentLifecycle::LifecycleUpdateReason::kTest);
......
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