mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 21:07:36 +00:00
LibWeb: Implement basic version of CSSOM View's VisualViewport
We got some errors while loading https://twinings.co.uk/ about this interface missing, and it looked fairly simple so I sketched it out. Note that I did leave some FIXMEs where it's not clear exactly which metrics we should be returning.
This commit is contained in:
parent
2a914a7a59
commit
9f6ceff7cf
13 changed files with 257 additions and 2 deletions
|
@ -380,6 +380,8 @@ public:
|
|||
void evaluate_media_queries_and_report_changes();
|
||||
void add_media_query_list(JS::NonnullGCPtr<CSS::MediaQueryList>);
|
||||
|
||||
JS::NonnullGCPtr<CSS::VisualViewport> visual_viewport();
|
||||
|
||||
bool has_focus() const;
|
||||
|
||||
void set_parser(Badge<HTML::HTMLParser>, HTML::HTMLParser&);
|
||||
|
@ -668,6 +670,8 @@ private:
|
|||
// https://html.spec.whatwg.org/multipage/images.html#list-of-available-images
|
||||
OwnPtr<HTML::ListOfAvailableImages> m_list_of_available_images;
|
||||
|
||||
JS::GCPtr<CSS::VisualViewport> m_visual_viewport;
|
||||
|
||||
// NOTE: Not in the spec per say, but Document must be able to access all IntersectionObservers whose root is in the document.
|
||||
OrderedHashTable<JS::NonnullGCPtr<IntersectionObserver::IntersectionObserver>> m_intersection_observers;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue