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

@ -20,11 +20,10 @@ using namespace mozilla::dom;
namespace mozilla {
StyleSheet::StyleSheet(StyleBackendType aType, css::SheetParsingMode aParsingMode)
StyleSheet::StyleSheet(css::SheetParsingMode aParsingMode)
: mDocument(nullptr)
, mOwningNode(nullptr)
, mParsingMode(aParsingMode)
, mType(aType)
, mDisabled(false)
, mDocumentAssociationMode(NotOwnedByDocument)
{
@ -37,7 +36,6 @@ StyleSheet::StyleSheet(const StyleSheet& aCopy,
, mDocument(aDocumentToUse)
, mOwningNode(aOwningNodeToUse)
, mParsingMode(aCopy.mParsingMode)
, mType(aCopy.mType)
, mDisabled(aCopy.mDisabled)
// We only use this constructor during cloning. It's the cloner's
// responsibility to notify us if we end up being owned by a document.