mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibWeb: Update displayed favicon when a favicon is loaded
When a favicon has been loaded, trigger a favicon update on document level. Of all the link tags in the header, the last favicon that is load should be shown. When the favicon could not be loaded, load the next icon in reverse tree order.
This commit is contained in:
committed by
Andreas Kling
parent
13847aa7e8
commit
06d9853a8b
@@ -28,6 +28,9 @@ public:
|
||||
String type() const { return attribute(HTML::AttributeNames::type); }
|
||||
String href() const { return attribute(HTML::AttributeNames::href); }
|
||||
|
||||
bool has_loaded_icon() const;
|
||||
bool load_favicon_and_use_if_window_is_active();
|
||||
|
||||
private:
|
||||
void parse_attribute(FlyString const&, String const&) override;
|
||||
|
||||
@@ -35,6 +38,9 @@ private:
|
||||
virtual void resource_did_fail() override;
|
||||
virtual void resource_did_load() override;
|
||||
|
||||
void resource_did_load_stylesheet();
|
||||
void resource_did_load_favicon();
|
||||
|
||||
struct Relationship {
|
||||
enum {
|
||||
Alternate = 1 << 0,
|
||||
|
||||
Reference in New Issue
Block a user