1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:37:35 +00:00

LibWeb: Give StyleComputer a helper for getting the current viewport

This commit is contained in:
Andreas Kling 2022-03-19 18:08:52 +01:00
parent 3c1815a0d9
commit aa45cdf71d
2 changed files with 21 additions and 20 deletions

View file

@ -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;