diff options
author | Andreas Kling <kling@serenityos.org> | 2020-06-24 13:51:14 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-06-24 13:54:31 +0200 |
commit | 5e83a97fa235b152441c198e8d38c1260d97b16e (patch) | |
tree | f1fb7e1a07a91ba3171e7cc5fcfadd10cb8d2073 /Libraries/LibWeb/DOM/Document.cpp | |
parent | 90edaabc4b303f444752eddabd632daaeea68af9 (diff) | |
download | serenity-5e83a97fa235b152441c198e8d38c1260d97b16e.zip |
LibWeb: Rename LayoutNode::style() => specified_style()
Let's make way for a slightly-more-cooked style() that will eventually
replace the raw specified_style() for layout and paint purposes.
Diffstat (limited to 'Libraries/LibWeb/DOM/Document.cpp')
-rw-r--r-- | Libraries/LibWeb/DOM/Document.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibWeb/DOM/Document.cpp b/Libraries/LibWeb/DOM/Document.cpp index 0d62288c76..25c48e226b 100644 --- a/Libraries/LibWeb/DOM/Document.cpp +++ b/Libraries/LibWeb/DOM/Document.cpp @@ -190,7 +190,7 @@ Color Document::background_color(const Palette& palette) const if (!body_layout_node) return default_color; - auto background_color = body_layout_node->style().property(CSS::PropertyID::BackgroundColor); + auto background_color = body_layout_node->specified_style().property(CSS::PropertyID::BackgroundColor); if (!background_color.has_value() || !background_color.value()->is_color()) return default_color; @@ -207,7 +207,7 @@ RefPtr<Gfx::Bitmap> Document::background_image() const if (!body_layout_node) return {}; - auto background_image = body_layout_node->style().property(CSS::PropertyID::BackgroundImage); + auto background_image = body_layout_node->specified_style().property(CSS::PropertyID::BackgroundImage); if (!background_image.has_value() || !background_image.value()->is_image()) return {}; |