Summary: | Duplicate checks in overridingContainingBlockContentXXX() | ||
---|---|---|---|
Product: | WebKit | Reporter: | Sergio Villar Senin <svillar> |
Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW --- | ||
Severity: | Normal | CC: | rbuis, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Description
Sergio Villar Senin
2020-10-22 13:44:47 PDT
This is probably not possible. The code wants to distinguish between nullopt as in "there is nothing set" and "there is something set but it is not a number": if (logicalHeight.isPercentOrCalculated() && hasOverridingContainingBlockContentLogicalHeight()) return overridingContainingBlockContentLogicalHeight() == WTF::nullopt; It may be possible to set some magic value not nullopt for "there is something set but it is not a number" but I don't think it is worth it personally. |