mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 15:18:06 +00:00
LibWeb: Implement CSS declaration block's "updating flag"
This flag is used to prevent reparsing the style attribute after it is automatically updated after using the CSSOM API to mutate style.
This commit is contained in:
parent
66618a666b
commit
a8afb883c1
Notes:
sideshowbarker
2024-07-17 12:04:57 +09:00
Author: https://github.com/awesomekling
Commit: a8afb883c1
4 changed files with 27 additions and 2 deletions
|
@ -103,7 +103,7 @@ public:
|
|||
void set_computed_css_values(RefPtr<CSS::StyleProperties> style) { m_computed_css_values = move(style); }
|
||||
NonnullRefPtr<CSS::StyleProperties> resolved_css_values();
|
||||
|
||||
const CSS::CSSStyleDeclaration* inline_style() const { return m_inline_style; }
|
||||
CSS::CSSStyleDeclaration const* inline_style() const;
|
||||
|
||||
NonnullRefPtr<CSS::CSSStyleDeclaration> style_for_bindings();
|
||||
|
||||
|
@ -152,7 +152,7 @@ private:
|
|||
String m_html_uppercased_qualified_name;
|
||||
NonnullRefPtr<NamedNodeMap> m_attributes;
|
||||
|
||||
RefPtr<CSS::CSSStyleDeclaration> m_inline_style;
|
||||
RefPtr<CSS::ElementInlineCSSStyleDeclaration> m_inline_style;
|
||||
|
||||
RefPtr<CSS::StyleProperties> m_computed_css_values;
|
||||
HashMap<FlyString, CSS::StyleProperty> m_custom_properties;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue