Issue #2488 - Part 2: Remove the DeclarationBlock class and use Declaration directly

This commit is contained in:
FranklinDM 2024-03-28 19:04:36 +08:00 committed by roytam1
commit 4d7bdedade
27 changed files with 210 additions and 356 deletions

View file

@ -20,10 +20,10 @@ struct JSContext;
class JSObject;
namespace mozilla {
class DeclarationBlock;
namespace css {
class Loader;
class Rule;
class Declaration;
} // namespace css
} // namespace mozilla
@ -119,8 +119,8 @@ protected:
// AttributeWillChange.
eOperation_RemoveProperty
};
virtual mozilla::DeclarationBlock* GetCSSDeclaration(Operation aOperation) = 0;
virtual nsresult SetCSSDeclaration(mozilla::DeclarationBlock* aDecl) = 0;
virtual mozilla::css::Declaration* GetCSSDeclaration(Operation aOperation) = 0;
virtual nsresult SetCSSDeclaration(mozilla::css::Declaration* aDecl) = 0;
// Document that we must call BeginUpdate/EndUpdate on around the
// calls to SetCSSDeclaration and the style rule mutation that leads
// to it.