summaryrefslogtreecommitdiffstats
path: root/layout/style/StyleSheet.h
diff options
context:
space:
mode:
authorJustOff <Off.Just.Off@gmail.com>2020-01-07 13:05:05 +0200
committerJustOff <Off.Just.Off@gmail.com>2020-01-07 13:05:05 +0200
commitb4d686d62da679acabdbb7b30153a2971a200f79 (patch)
tree1b1284a85bf5ecfdbc134f75abd9c877f3fab01f /layout/style/StyleSheet.h
parente30d68b699bb3dca89534727974a08d4b43b62f8 (diff)
downloadUXP-b4d686d62da679acabdbb7b30153a2971a200f79.tar
UXP-b4d686d62da679acabdbb7b30153a2971a200f79.tar.gz
UXP-b4d686d62da679acabdbb7b30153a2971a200f79.tar.lz
UXP-b4d686d62da679acabdbb7b30153a2971a200f79.tar.xz
UXP-b4d686d62da679acabdbb7b30153a2971a200f79.zip
Issue #1345 - Implement non-standard legacy CSSStyleSheet rules
Diffstat (limited to 'layout/style/StyleSheet.h')
-rw-r--r--layout/style/StyleSheet.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/layout/style/StyleSheet.h b/layout/style/StyleSheet.h
index f21a6d648..863f6d22f 100644
--- a/layout/style/StyleSheet.h
+++ b/layout/style/StyleSheet.h
@@ -143,6 +143,9 @@ public:
void DeleteRule(uint32_t aIndex,
nsIPrincipal& aSubjectPrincipal,
ErrorResult& aRv);
+ int32_t AddRule(const nsAString& aSelector, const nsAString& aBlock,
+ const dom::Optional<uint32_t>& aIndex,
+ nsIPrincipal& aSubjectPrincipal, ErrorResult& aRv);
// WebIDL miscellaneous bits
inline dom::ParentObject GetParentObject() const;