summaryrefslogtreecommitdiffstats
path: root/layout/style/CSSPageRule.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:35:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:35:49 +0000
commitd8bbc7858622b6d9c278469aab701ca0b609cddf (patch)
treeeff41dc61d9f714852212739e6b3738b82a2af87 /layout/style/CSSPageRule.h
parentReleasing progress-linux version 125.0.3-1~progress7.99u1. (diff)
downloadfirefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.tar.xz
firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.zip
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/style/CSSPageRule.h')
-rw-r--r--layout/style/CSSPageRule.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/layout/style/CSSPageRule.h b/layout/style/CSSPageRule.h
index 705d526bdf..904f94d2c0 100644
--- a/layout/style/CSSPageRule.h
+++ b/layout/style/CSSPageRule.h
@@ -7,7 +7,7 @@
#ifndef mozilla_dom_CSSPageRule_h
#define mozilla_dom_CSSPageRule_h
-#include "mozilla/css/Rule.h"
+#include "mozilla/css/GroupRule.h"
#include "mozilla/ServoBindingTypes.h"
#include "nsDOMCSSDeclaration.h"
@@ -53,13 +53,14 @@ class CSSPageRuleDeclaration final : public nsDOMCSSDeclaration {
RefPtr<DeclarationBlock> mDecls;
};
-class CSSPageRule final : public css::Rule {
+class CSSPageRule final : public css::GroupRule {
public:
CSSPageRule(RefPtr<StyleLockedPageRule> aRawRule, StyleSheet* aSheet,
css::Rule* aParentRule, uint32_t aLine, uint32_t aColumn);
NS_DECL_ISUPPORTS_INHERITED
- NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS_INHERITED(CSSPageRule, css::Rule)
+ NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS_INHERITED(CSSPageRule,
+ css::GroupRule)
bool IsCCLeaf() const final;
@@ -76,6 +77,8 @@ class CSSPageRule final : public css::Rule {
size_t SizeOfIncludingThis(MallocSizeOf aMallocSizeOf) const final;
+ already_AddRefed<StyleLockedCssRules> GetOrCreateRawRules() final;
+
#ifdef DEBUG
void List(FILE* out = stdout, int32_t aIndent = 0) const final;
#endif