mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:47:45 +00:00
LibWeb: Don't print debug spam when looking up missing initial values
I'm about to look up a lot of missing values, and the spam was getting out of hand.
This commit is contained in:
parent
720d494799
commit
7ed49e954f
1 changed files with 3 additions and 5 deletions
|
@ -202,12 +202,10 @@ RefPtr<StyleValue> property_initial_value(PropertyID property_id)
|
||||||
generator.append(R"~~~(
|
generator.append(R"~~~(
|
||||||
}
|
}
|
||||||
|
|
||||||
auto maybe_value = initial_values.get(property_id);
|
auto it = initial_values.find(property_id);
|
||||||
if (!maybe_value.has_value()) {
|
if (it == initial_values.end())
|
||||||
dbgln("No initial value found for '{}' property!", string_from_property_id(property_id));
|
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
return it->value;
|
||||||
return maybe_value.value();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool property_has_quirk(PropertyID property_id, Quirk quirk)
|
bool property_has_quirk(PropertyID property_id, Quirk quirk)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue