diff options
author | Andreas Kling <kling@serenityos.org> | 2021-10-14 18:37:24 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-14 18:39:27 +0200 |
commit | 81590b180470e24492ac0ff5d798f6bca1eced9c (patch) | |
tree | f2660e30de4c10c483770eb6f4be5399f07fe148 /Userland/Libraries/LibWeb/Layout/CanvasBox.cpp | |
parent | 1b1bf5c3218f9903600dda1a8d4ede1595d40be8 (diff) | |
download | serenity-81590b180470e24492ac0ff5d798f6bca1eced9c.zip |
LibWeb: Make intrinsic width/height/ratio a Box concept and simplify it
Apparently it's not only replaced elements that can have intrinsic
sizes, so let's move this concept from ReplacedBox to Box. To avoid
bloating Box, we make the accessors virtual.
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/CanvasBox.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/CanvasBox.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/CanvasBox.cpp b/Userland/Libraries/LibWeb/Layout/CanvasBox.cpp index 7a4731cf24..adb0b9e396 100644 --- a/Userland/Libraries/LibWeb/Layout/CanvasBox.cpp +++ b/Userland/Libraries/LibWeb/Layout/CanvasBox.cpp @@ -20,8 +20,6 @@ CanvasBox::~CanvasBox() void CanvasBox::prepare_for_replaced_layout() { - set_has_intrinsic_width(true); - set_has_intrinsic_height(true); set_intrinsic_width(dom_node().width()); set_intrinsic_height(dom_node().height()); } |