mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:07:34 +00:00
LibWeb: Actually visit rules and media queries in imported style sheets
Due to CSSImportRule::has_import_result() being backwards, we never actually entered imported style sheets when traversing style rules or media queries. With this fixed, we no longer need the "collect style sheets" step in StyleComputer, as normal for_each_effective_style_rule() will now actually find all the rules. :^)
This commit is contained in:
parent
fe761a4e9b
commit
45f8542965
6 changed files with 21 additions and 19 deletions
|
@ -29,7 +29,6 @@ public:
|
|||
// FIXME: This should return only the specified part of the url. eg, "stuff/foo.css", not "https://example.com/stuff/foo.css".
|
||||
DeprecatedString href() const { return m_url.to_deprecated_string(); }
|
||||
|
||||
bool has_import_result() const { return !m_style_sheet; }
|
||||
CSSStyleSheet* loaded_style_sheet() { return m_style_sheet; }
|
||||
CSSStyleSheet const* loaded_style_sheet() const { return m_style_sheet; }
|
||||
CSSStyleSheet* style_sheet_for_bindings() { return m_style_sheet; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue