mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 01:40:46 +00:00
LibWeb: Give StyleComputer a helper for getting the current viewport
This commit is contained in:
parent
3c1815a0d9
commit
aa45cdf71d
Notes:
sideshowbarker
2024-07-17 17:05:11 +09:00
Author: https://github.com/awesomekling
Commit: aa45cdf71d
2 changed files with 21 additions and 20 deletions
|
@ -86,6 +86,9 @@ private:
|
|||
template<typename Callback>
|
||||
void for_each_stylesheet(CascadeOrigin, Callback) const;
|
||||
|
||||
Gfx::IntRect viewport_rect() const;
|
||||
float root_element_font_size() const;
|
||||
|
||||
struct MatchingRuleSet {
|
||||
Vector<MatchingRule> user_agent_rules;
|
||||
Vector<MatchingRule> author_rules;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue