mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 16:16:43 +00:00
LibWeb: Remove StyleValue::has/to_number()
Only NumericStyleValue holds numbers. Renamed `to_number()` to `number()` because it's just a getter now.
This commit is contained in:
parent
5f755d721e
commit
4ecf0b7768
Notes:
sideshowbarker
2024-07-17 02:05:41 +09:00
Author: https://github.com/AtkinsSJ
Commit: 4ecf0b7768
Pull-request: https://github.com/SerenityOS/serenity/pull/19084
4 changed files with 14 additions and 15 deletions
|
@ -294,7 +294,6 @@ public:
|
|||
bool has_auto() const;
|
||||
virtual bool has_color() const { return false; }
|
||||
virtual bool has_length() const { return false; }
|
||||
virtual bool has_number() const { return false; }
|
||||
virtual bool has_integer() const { return false; }
|
||||
|
||||
virtual ErrorOr<ValueComparingNonnullRefPtr<StyleValue const>> absolutized(CSSPixelRect const& viewport_rect, Length::FontMetrics const& font_metrics, Length::FontMetrics const& root_font_metrics) const;
|
||||
|
@ -302,7 +301,6 @@ public:
|
|||
virtual Color to_color(Optional<Layout::NodeWithStyle const&>) const { return {}; }
|
||||
ValueID to_identifier() const;
|
||||
virtual Length to_length() const { VERIFY_NOT_REACHED(); }
|
||||
virtual float to_number() const { return 0; }
|
||||
virtual float to_integer() const { return 0; }
|
||||
virtual ErrorOr<String> to_string() const = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue