mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:47:35 +00:00
LibWeb: Set Cookie header on <img> and <object> resource requests
This required passing a reference to the owning HTML*Element to ImageLoader, the same way that CSSLoader has a reference to its owner.
This commit is contained in:
parent
347838a240
commit
0cacc52990
4 changed files with 12 additions and 5 deletions
|
@ -34,7 +34,7 @@ namespace Web {
|
|||
|
||||
class ImageLoader : public ImageResourceClient {
|
||||
public:
|
||||
ImageLoader();
|
||||
ImageLoader(DOM::Element& owner_element);
|
||||
|
||||
void load(const URL&);
|
||||
|
||||
|
@ -69,6 +69,8 @@ private:
|
|||
Failed,
|
||||
};
|
||||
|
||||
DOM::Element& m_owner_element;
|
||||
|
||||
mutable bool m_visible_in_viewport { false };
|
||||
|
||||
size_t m_current_frame_index { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue