mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:38:10 +00:00
LibWeb: Split OverflowStyleValue out of StyleValue.{h,cpp}
This commit is contained in:
parent
7f6add1c6e
commit
f98634586e
7 changed files with 68 additions and 34 deletions
|
@ -40,6 +40,7 @@
|
|||
#include <LibWeb/CSS/StyleValues/LinearGradientStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/ListStyleStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/NumericStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/OverflowStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/RadialGradientStyleValue.h>
|
||||
#include <LibWeb/DOM/Document.h>
|
||||
#include <LibWeb/HTML/BrowsingContext.h>
|
||||
|
@ -1137,11 +1138,6 @@ ErrorOr<void> PositionValue::serialize(StringBuilder& builder) const
|
|||
return {};
|
||||
}
|
||||
|
||||
ErrorOr<String> OverflowStyleValue::to_string() const
|
||||
{
|
||||
return String::formatted("{} {}", TRY(m_properties.overflow_x->to_string()), TRY(m_properties.overflow_y->to_string()));
|
||||
}
|
||||
|
||||
ErrorOr<String> PercentageStyleValue::to_string() const
|
||||
{
|
||||
return m_percentage.to_string();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue