mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:07:46 +00:00
LibWeb: Remove pointless type casts
In these cases, the parameters' static type matched the desired dynamic type, so these calls were discarded.
This commit is contained in:
parent
f95a11a7da
commit
b19fe744ab
2 changed files with 1 additions and 4 deletions
|
@ -68,8 +68,6 @@ Vector<MatchingRule> StyleResolver::collect_matching_rules(DOM::Element const& e
|
|||
|
||||
size_t style_sheet_index = 0;
|
||||
for_each_stylesheet([&](auto& sheet) {
|
||||
if (!is<CSSStyleSheet>(sheet))
|
||||
return;
|
||||
size_t rule_index = 0;
|
||||
static_cast<CSSStyleSheet const&>(sheet).for_each_effective_style_rule([&](auto& rule) {
|
||||
size_t selector_index = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue