mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb: Add CSSStyleSheet.{insert,delete,remove}Rule() APIs
Note that insertRule() is really just a big TODO right now.
This commit is contained in:
parent
3a4565beec
commit
30d710a0a2
Notes:
sideshowbarker
2024-07-18 03:20:04 +09:00
Author: https://github.com/awesomekling
Commit: 30d710a0a2
5 changed files with 73 additions and 2 deletions
|
@ -36,6 +36,10 @@ public:
|
|||
CSSRuleList* css_rules() { return m_rules; }
|
||||
CSSRuleList const* css_rules() const { return m_rules; }
|
||||
|
||||
DOM::ExceptionOr<unsigned> insert_rule(StringView rule, unsigned index);
|
||||
DOM::ExceptionOr<void> remove_rule(unsigned index);
|
||||
DOM::ExceptionOr<void> delete_rule(unsigned index);
|
||||
|
||||
template<typename Callback>
|
||||
void for_each_effective_style_rule(Callback callback) const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue