mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 17:49:40 +00:00
LibWeb: Use invalidation sets for "style" attribute invalidation
This commit is contained in:
parent
bf36d829ef
commit
e0051db62e
Notes:
github-actions[bot]
2025-01-20 17:24:39 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: e0051db62e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3310
3 changed files with 19 additions and 39 deletions
|
@ -297,8 +297,12 @@ public:
|
|||
bool child_needs_style_update() const { return m_child_needs_style_update; }
|
||||
void set_child_needs_style_update(bool b) { m_child_needs_style_update = b; }
|
||||
|
||||
enum class ForceSelfStyleInvalidation : bool {
|
||||
Yes,
|
||||
No
|
||||
};
|
||||
void invalidate_style(StyleInvalidationReason);
|
||||
void invalidate_style(StyleInvalidationReason, Vector<CSS::InvalidationSet::Property> const&);
|
||||
void invalidate_style(StyleInvalidationReason, Vector<CSS::InvalidationSet::Property> const&, ForceSelfStyleInvalidation = ForceSelfStyleInvalidation::No);
|
||||
|
||||
void set_document(Badge<Document>, Document&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue