summaryrefslogtreecommitdiffstats
path: root/layout/base/RestyleManagerBase.cpp
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-04-17 06:14:10 -0400
committerMatt A. Tobin <email@mattatobin.com>2020-04-17 06:14:10 -0400
commite482e335bb8de6630a171cd0a784b420d91106b2 (patch)
tree70d27fa03ec0624a04e3418fb20ac1a434dcc3e5 /layout/base/RestyleManagerBase.cpp
parentf4a1d0123c41647f2f05aeaa2ae14bd1806fbb5c (diff)
downloadUXP-e482e335bb8de6630a171cd0a784b420d91106b2.tar
UXP-e482e335bb8de6630a171cd0a784b420d91106b2.tar.gz
UXP-e482e335bb8de6630a171cd0a784b420d91106b2.tar.lz
UXP-e482e335bb8de6630a171cd0a784b420d91106b2.tar.xz
UXP-e482e335bb8de6630a171cd0a784b420d91106b2.zip
Bug 1389743 - Only reconstruct frames synchronously from ContentRemoved when called from frame construction
Tag #1375
Diffstat (limited to 'layout/base/RestyleManagerBase.cpp')
-rw-r--r--layout/base/RestyleManagerBase.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/layout/base/RestyleManagerBase.cpp b/layout/base/RestyleManagerBase.cpp
index 6ef048a19..1a3cae4bf 100644
--- a/layout/base/RestyleManagerBase.cpp
+++ b/layout/base/RestyleManagerBase.cpp
@@ -1249,8 +1249,10 @@ if (!mDestroyedFrames) {
// We could also have problems with triggering of CSS transitions
// on elements whose frames are reconstructed, since we depend on
// the reconstruction happening synchronously.
- frameConstructor->RecreateFramesForContent(content, false,
- nsCSSFrameConstructor::REMOVE_FOR_RECONSTRUCTION, nullptr);
+ frameConstructor->RecreateFramesForContent(
+ content,
+ nsCSSFrameConstructor::InsertionKind::Sync,
+ nsCSSFrameConstructor::REMOVE_FOR_RECONSTRUCTION);
} else {
NS_ASSERTION(frame, "This shouldn't happen");