From 0d1d9fec7b55712d16be3bda8ea3618bc2f84e8d Mon Sep 17 00:00:00 2001 From: Phil Ringnalda Date: Sun, 26 Nov 2017 23:32:41 -0800 Subject: [PATCH] Backed out 2 changesets (bug 1418433) for unexpected "why should we have flushed style again?" assertion failures Backed out changeset 761f84b8edb0 (bug 1418433) Backed out changeset 436723f33b10 (bug 1418433) MozReview-Commit-ID: 84FAoZcyQjU --HG-- extra : rebase_source : 5fbba91a8b80fbb25f57f4a6d8b521c8feb7f89a --- layout/style/ServoStyleSet.cpp | 5 ----- layout/style/test/test_computed_style.html | 22 +--------------------- 2 files changed, 1 insertion(+), 26 deletions(-) diff --git a/layout/style/ServoStyleSet.cpp b/layout/style/ServoStyleSet.cpp index 2db96d969c94..3993d06e4026 100644 --- a/layout/style/ServoStyleSet.cpp +++ b/layout/style/ServoStyleSet.cpp @@ -1330,11 +1330,6 @@ ServoStyleSet::UpdateStylist() mBindingManager->UpdateBoundContentBindingsForServo(mPresContext); } - // We need to invalidate cached style in getComputedStyle for undisplayed - // elements, since we don't know if any of the style sheet change that we - // do would affect undisplayed elements. - mPresContext->RestyleManager()->AsServo()->IncrementUndisplayedRestyleGeneration(); - mStylistState = StylistState::NotDirty; } diff --git a/layout/style/test/test_computed_style.html b/layout/style/test/test_computed_style.html index 37f0aa3c733c..b1d37df75ce0 100644 --- a/layout/style/test/test_computed_style.html +++ b/layout/style/test/test_computed_style.html @@ -4,12 +4,12 @@ Test for miscellaneous computed style issues - Mozilla Bug