mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-16 05:51:55 +00:00
LibWeb/SVG: Process script element when its text content changes
This commit is contained in:
parent
db7aa68340
commit
a187d5f28f
Notes:
github-actions[bot]
2025-02-26 15:09:59 +00:00
Author: https://github.com/tcl3
Commit: a187d5f28f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3703
Reviewed-by: https://github.com/awesomekling ✅
6 changed files with 42 additions and 3 deletions
|
@ -21,8 +21,12 @@ class SVGScriptElement
|
|||
public:
|
||||
void process_the_script_element();
|
||||
|
||||
void set_parser_inserted(Badge<HTML::HTMLParser>) { m_parser_inserted = true; }
|
||||
void set_source_line_number(Badge<HTML::HTMLParser>, size_t source_line_number) { m_source_line_number = source_line_number; }
|
||||
|
||||
virtual void inserted() override;
|
||||
virtual void children_changed(ChildrenChangedMetadata const*) override;
|
||||
|
||||
protected:
|
||||
SVGScriptElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
||||
|
@ -34,6 +38,7 @@ private:
|
|||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
||||
bool m_already_processed { false };
|
||||
bool m_parser_inserted { false };
|
||||
|
||||
GC::Ptr<HTML::ClassicScript> m_script;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue