diff options
author | Andreas Kling <kling@serenityos.org> | 2021-09-24 13:49:57 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-24 15:12:15 +0200 |
commit | f8dd3e14bae66bc9b3b26f4f896d9ca43f26e274 (patch) | |
tree | dd1c2eab045fa1d45fd298de7bddd98454157656 /Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp | |
parent | 3dc6f0bc4718f5f54f2d18119a0f9fe457c283a8 (diff) | |
download | serenity-f8dd3e14bae66bc9b3b26f4f896d9ca43f26e274.zip |
LibWeb: Rename CSS::StyleResolver => StyleComputer
Resolved style is a spec concept that refers to the weird mix of
computed style and used style reflected by getComputedStyle().
The purpose of this class is to produce the *computed* style for a given
element, so let's call it StyleComputer.
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp index 3cbcca10b7..14e79b1a87 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp @@ -6,7 +6,7 @@ #include <LibGfx/Bitmap.h> #include <LibWeb/CSS/Parser/Parser.h> -#include <LibWeb/CSS/StyleResolver.h> +#include <LibWeb/CSS/StyleComputer.h> #include <LibWeb/DOM/Document.h> #include <LibWeb/DOM/Event.h> #include <LibWeb/HTML/EventNames.h> @@ -70,7 +70,7 @@ void HTMLImageElement::parse_attribute(const FlyString& name, const String& valu RefPtr<Layout::Node> HTMLImageElement::create_layout_node() { - auto style = document().style_resolver().resolve_style(*this); + auto style = document().style_computer().compute_style(*this); if (style->display() == CSS::Display::None) return nullptr; return adopt_ref(*new Layout::ImageBox(document(), *this, move(style), m_image_loader)); |