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

@ -12,7 +12,6 @@
#define mozilla_DeclarationBlock_h
#include "mozilla/ServoUtils.h"
#include "mozilla/StyleBackendType.h"
#include "nsCSSPropertyID.h"
@ -30,11 +29,11 @@ class Rule;
class DeclarationBlock
{
protected:
explicit DeclarationBlock(StyleBackendType aType)
: mImmutable(false), mType(aType) { mContainer.mRaw = 0; }
explicit DeclarationBlock()
: mImmutable(false) { mContainer.mRaw = 0; }
DeclarationBlock(const DeclarationBlock& aCopy)
: DeclarationBlock(aCopy.mType) {}
: DeclarationBlock() {}
public:
MOZ_DECL_STYLO_METHODS(css::Declaration)
@ -136,8 +135,6 @@ private:
// set when declaration put in the rule tree;
// also by ToString (hence the 'mutable').
mutable bool mImmutable;
const StyleBackendType mType;
};
} // namespace mozilla