ported from UXP: Issue #2112 - Part 9: Remove handling for multiple style backends (b96b733b)

This commit is contained in:
2024-04-03 15:22:50 +08:00
parent 21d37f54c8
commit 31a5ab92b4
23 changed files with 26 additions and 133 deletions
+1 -3
View File
@@ -36,7 +36,6 @@
#include "mozilla/TouchEvents.h"
#include "mozilla/UniquePtr.h"
#include "mozilla/Unused.h"
#include "mozilla/StyleBackendType.h"
#include <algorithm>
#ifdef XP_WIN
@@ -872,8 +871,7 @@ PresShell::Init(nsIDocument* aDocument,
// Bind the context to the presentation shell.
mPresContext = aPresContext;
StyleBackendType backend = StyleBackendType::Gecko;
aPresContext->AttachShell(this, backend);
aPresContext->AttachShell(this);
// Now we can initialize the style set. Make sure to set the member before
// calling Init, since various subroutines need to find the style set off