forked from mirrors/gecko-dev
Bug 1795804 - Persist sizemode synchronously. r=smaug
Much like everything else. This is important because the front-end uses sizemode for styling. The comment I'm removing doesn't really make much sense, since sizemode and size are persisted separately (using different dirty flags) so it's not like we're saving duplicate work or something. The delay this fixes existed already on Linux since ~forever at least, haven't tested macOS. Depends on D159578 Differential Revision: https://phabricator.services.mozilla.com/D159579
This commit is contained in:
parent
be12f96292
commit
e2a5d100fe
1 changed files with 1 additions and 4 deletions
|
|
@ -2825,10 +2825,7 @@ void AppWindow::SizeModeChanged(nsSizeMode aSizeMode) {
|
|||
|
||||
RecomputeBrowsingContextVisibility();
|
||||
|
||||
// Persist mode, but not immediately, because in many (all?)
|
||||
// cases this will merge with the similar call in NS_SIZE and
|
||||
// write the attribute values only once.
|
||||
PersistentAttributesDirty(PersistentAttribute::Misc, Async);
|
||||
PersistentAttributesDirty(PersistentAttribute::Misc, Sync);
|
||||
nsCOMPtr<nsPIDOMWindowOuter> ourWindow =
|
||||
mDocShell ? mDocShell->GetWindow() : nullptr;
|
||||
if (ourWindow) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue