mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 20:17:13 +02:00
LibWeb: Implement requestFullscreen algorithm
The required functionality to exit fullscreen will be in a followup commit.
This commit is contained in:
Notes:
github-actions[bot]
2026-02-23 18:46:42 +00:00
Author: https://github.com/Lubrsi Commit: https://github.com/LadybirdBrowser/ladybird/commit/bc17805b2bc Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7649 Reviewed-by: https://github.com/shannonbooth ✅ Reviewed-by: https://github.com/tcl3
@@ -43,6 +43,9 @@ public:
|
||||
|
||||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
||||
void set_iframe_fullscreen_flag(bool iframe_fullscreen_flag) { m_iframe_fullscreen_flag = iframe_fullscreen_flag; }
|
||||
bool iframe_fullscreen_flag() const { return m_iframe_fullscreen_flag; }
|
||||
|
||||
private:
|
||||
HTMLIFrameElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
||||
@@ -68,6 +71,9 @@ private:
|
||||
// https://html.spec.whatwg.org/multipage/iframe-embed-object.html#current-navigation-was-lazy-loaded
|
||||
bool m_current_navigation_was_lazy_loaded { false };
|
||||
|
||||
// https://fullscreen.spec.whatwg.org/#iframe-fullscreen-flag
|
||||
bool m_iframe_fullscreen_flag { false };
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/iframe-embed-object.html#iframe-pending-resource-timing-start-time
|
||||
Optional<HighResolutionTime::DOMHighResTimeStamp> m_pending_resource_start_time = {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user