Issue #2112 - Part 9: Remove handling for multiple style backends

This commit is contained in:
FranklinDM 2024-03-25 17:49:09 +08:00 committed by roytam1
commit b96b733bfa
20 changed files with 20 additions and 125 deletions

View file

@ -34,7 +34,6 @@
#include "mozilla/TouchEvents.h"
#include "mozilla/UniquePtr.h"
#include "mozilla/Unused.h"
#include "mozilla/StyleBackendType.h"
#include <algorithm>
#ifdef XP_WIN
@ -889,8 +888,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