mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Don't run update_the_image_data() algorithm if already started
This ensures that events are not fired if the image source is updated while it is being fetched.
This commit is contained in:
committed by
Andreas Kling
parent
66263f142b
commit
fdd3975104
Notes:
github-actions[bot]
2025-11-15 11:40:28 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/fdd3975104e Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6620
@@ -115,7 +115,7 @@ public:
|
||||
private:
|
||||
HTMLImageElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
||||
void update_the_image_data_impl(bool restart_the_animations = false, bool maybe_omit_events = false);
|
||||
void update_the_image_data_impl(bool restart_the_animations, bool maybe_omit_events, u64 update_the_image_data_count);
|
||||
|
||||
virtual bool is_html_image_element() const override { return true; }
|
||||
|
||||
@@ -164,6 +164,8 @@ private:
|
||||
SourceSet m_source_set;
|
||||
|
||||
CSSPixelSize m_last_seen_viewport_size;
|
||||
|
||||
u64 m_update_the_image_data_count { 0 };
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user