1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 05:18:12 +00:00

LibWeb: Update HTMLObjectElement's children on fallback state changes

This is another event upon which the task to determine an object's
respresentation must be queued:

    * one of the element's ancestor object elements changes to or from
      showing its fallback content

For example, on Acid2, the image for the eyes is nested below an object
that is designed to fail to load. This ensures the eyes will render as
the fallback of the failed parent object.
This commit is contained in:
Timothy Flynn 2022-03-23 14:28:54 -04:00 committed by Andreas Kling
parent 8f7e642a96
commit 7774c9bb9e
2 changed files with 18 additions and 8 deletions

View file

@ -42,6 +42,7 @@ private:
void run_object_representation_fallback_steps();
void convert_resource_to_image();
void update_layout_and_child_objects();
// ^ResourceClient
virtual void resource_did_load() override;