diff options
author | Andreas Kling <kling@serenityos.org> | 2021-02-22 15:20:31 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-22 15:21:42 +0100 |
commit | 21371bf6eeb41fc342b0f44584272e2bfb04c051 (patch) | |
tree | 10e44fdde30ddf82317e70b19e5b977b94ceba2f /Userland/Libraries/LibWeb/CSS/StyleProperties.h | |
parent | 42f582bf8bc6e4893fcc100c2a9afff71fb86fde (diff) | |
download | serenity-21371bf6eeb41fc342b0f44584272e2bfb04c051.zip |
LibWeb: Add parsing and application of CSS "overflow" property
We don't actually do anything with the values yet, but now they are
available for layout nodes once we are ready to implement them.
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/StyleProperties.h')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/StyleProperties.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/StyleProperties.h b/Userland/Libraries/LibWeb/CSS/StyleProperties.h index 24e286b6f7..9777162850 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleProperties.h +++ b/Userland/Libraries/LibWeb/CSS/StyleProperties.h @@ -70,6 +70,8 @@ public: Optional<CSS::TextTransform> text_transform() const; Optional<CSS::ListStyleType> list_style_type() const; Optional<CSS::FlexDirection> flex_direction() const; + Optional<CSS::Overflow> overflow_x() const; + Optional<CSS::Overflow> overflow_y() const; const Gfx::Font& font() const { @@ -88,6 +90,7 @@ public: private: HashMap<unsigned, NonnullRefPtr<StyleValue>> m_property_values; + Optional<CSS::Overflow> overflow(CSS::PropertyID) const; void load_font() const; |