mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 09:39:39 +00:00
LibWeb: Implement document.execCommand("styleWithCSS")
This commit is contained in:
parent
bb618736e9
commit
4b0d8cbfad
Notes:
github-actions[bot]
2024-11-30 16:36:59 +00:00
Author: https://github.com/gmta
Commit: 4b0d8cbfad
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2655
Reviewed-by: https://github.com/shannonbooth
Reviewed-by: https://github.com/yyny
3 changed files with 28 additions and 0 deletions
|
@ -753,6 +753,10 @@ public:
|
|||
FlyString const& default_single_line_container_name() const { return m_default_single_line_container_name; }
|
||||
void set_default_single_line_container_name(FlyString const& name) { m_default_single_line_container_name = name; }
|
||||
|
||||
// https://w3c.github.io/editing/docs/execCommand/#css-styling-flag
|
||||
bool css_styling_flag() const { return m_css_styling_flag; }
|
||||
void set_css_styling_flag(bool flag) { m_css_styling_flag = flag; }
|
||||
|
||||
protected:
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
@ -1046,6 +1050,9 @@ private:
|
|||
|
||||
// https://w3c.github.io/editing/docs/execCommand/#default-single-line-container-name
|
||||
FlyString m_default_single_line_container_name { HTML::TagNames::div };
|
||||
|
||||
// https://w3c.github.io/editing/docs/execCommand/#css-styling-flag
|
||||
bool m_css_styling_flag { false };
|
||||
};
|
||||
|
||||
template<>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue