Issue #2490 - Part 17: Convert CSSKeyframeRule to WebIDL.

This commit is contained in:
Moonchild 2024-04-04 14:00:59 +02:00 committed by roytam1
commit 89d96e0226
8 changed files with 33 additions and 18 deletions

View file

@ -416,7 +416,6 @@ public:
, mKeys(mozilla::Move(aKeys))
, mDeclaration(mozilla::Move(aDeclaration))
{
SetIsNotDOMBinding();
mDeclaration->SetOwningRule(this);
}
private:
@ -440,6 +439,9 @@ public:
// WebIDL interface
uint16_t Type() const override;
void GetCssTextImpl(nsAString& aCssText) const override;
// Our XPCOM GetKeyText is OK.
// Our XPCOM SetKeyText is OK.
nsICSSDeclaration* Style();
const nsTArray<float>& GetKeys() const { return mKeys; }
mozilla::css::Declaration* Declaration() { return mDeclaration; }