mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
LibWeb: Add Page abstraction between PageView and main Frame
* A PageView is a view onto a Page object. * A Page always has a main Frame (root of Frame tree.) * Page has a PageClient. PageView is a PageClient. The goal here is to allow building another kind of view onto a Page while keeping the rest of LibWeb intact.
This commit is contained in:
parent
5072d4e02d
commit
92392398a2
Notes:
sideshowbarker
2024-07-19 05:44:51 +09:00
Author: https://github.com/awesomekling
Commit: 92392398a2
16 changed files with 351 additions and 179 deletions
|
@ -376,7 +376,7 @@ Color Document::link_color() const
|
|||
return m_link_color.value();
|
||||
if (!frame())
|
||||
return Color::Blue;
|
||||
return frame()->page_view()->palette().link();
|
||||
return frame()->page().palette().link();
|
||||
}
|
||||
|
||||
Color Document::active_link_color() const
|
||||
|
@ -385,7 +385,7 @@ Color Document::active_link_color() const
|
|||
return m_active_link_color.value();
|
||||
if (!frame())
|
||||
return Color::Red;
|
||||
return frame()->page_view()->palette().active_link();
|
||||
return frame()->page().palette().active_link();
|
||||
}
|
||||
|
||||
Color Document::visited_link_color() const
|
||||
|
@ -394,7 +394,7 @@ Color Document::visited_link_color() const
|
|||
return m_visited_link_color.value();
|
||||
if (!frame())
|
||||
return Color::Magenta;
|
||||
return frame()->page_view()->palette().visited_link();
|
||||
return frame()->page().palette().visited_link();
|
||||
}
|
||||
|
||||
JS::Interpreter& Document::interpreter()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue