mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibWeb: Remove ancient HTML_DEBUG debug logging
This commit is contained in:
@@ -159,17 +159,11 @@ void StyleProperties::load_font() const
|
||||
if (file_name.is_null())
|
||||
continue;
|
||||
|
||||
#ifdef HTML_DEBUG
|
||||
dbg() << "Found font " << file_name << " for family " << font_family << " weight " << font_weight;
|
||||
#endif
|
||||
m_font = Gfx::Font::load_from_file(String::format("/res/fonts/%s", file_name.characters()));
|
||||
FontCache::the().set({ font_name, font_weight }, *m_font);
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef HTML_DEBUG
|
||||
dbg() << "Failed to find a font for family " << font_family << " weight " << font_weight;
|
||||
#endif
|
||||
if (font_weight == "bold")
|
||||
m_font = Gfx::Font::default_bold_font();
|
||||
else
|
||||
|
||||
@@ -100,13 +100,6 @@ Vector<MatchingRule> StyleResolver::collect_matching_rules(const DOM::Element& e
|
||||
++style_sheet_index;
|
||||
});
|
||||
|
||||
#ifdef HTML_DEBUG
|
||||
dbgprintf("Rules matching Element{%p}\n", &element);
|
||||
for (auto& rule : matching_rules) {
|
||||
dump_rule(rule);
|
||||
}
|
||||
#endif
|
||||
|
||||
return matching_rules;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user