diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-11-08 11:48:31 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-01-05 17:42:31 +0100 |
commit | 02cd853eee3f3bb6404a7d758efbe1a9e8d50356 (patch) | |
tree | 3f85f806afe8312e11114ca35a230d77b1d55595 /Userland/Services/WebContent | |
parent | 5d8e3f512203d81ccb793a9e268225189c0dc282 (diff) | |
download | serenity-02cd853eee3f3bb6404a7d758efbe1a9e8d50356.zip |
LibWeb+Browser+WebContent: Convert BoxModelMetrics to new pixel units
Diffstat (limited to 'Userland/Services/WebContent')
-rw-r--r-- | Userland/Services/WebContent/ConnectionFromClient.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Userland/Services/WebContent/ConnectionFromClient.cpp b/Userland/Services/WebContent/ConnectionFromClient.cpp index b2e664667e..e4f9da7229 100644 --- a/Userland/Services/WebContent/ConnectionFromClient.cpp +++ b/Userland/Services/WebContent/ConnectionFromClient.cpp @@ -342,18 +342,18 @@ Messages::WebContentServer::InspectDomNodeResponse ConnectionFromClient::inspect auto box_model = box->box_model(); StringBuilder builder; auto serializer = MUST(JsonObjectSerializer<>::try_create(builder)); - MUST(serializer.add("padding_top"sv, box_model.padding.top)); - MUST(serializer.add("padding_right"sv, box_model.padding.right)); - MUST(serializer.add("padding_bottom"sv, box_model.padding.bottom)); - MUST(serializer.add("padding_left"sv, box_model.padding.left)); - MUST(serializer.add("margin_top"sv, box_model.margin.top)); - MUST(serializer.add("margin_right"sv, box_model.margin.right)); - MUST(serializer.add("margin_bottom"sv, box_model.margin.bottom)); - MUST(serializer.add("margin_left"sv, box_model.margin.left)); - MUST(serializer.add("border_top"sv, box_model.border.top)); - MUST(serializer.add("border_right"sv, box_model.border.right)); - MUST(serializer.add("border_bottom"sv, box_model.border.bottom)); - MUST(serializer.add("border_left"sv, box_model.border.left)); + MUST(serializer.add("padding_top"sv, box_model.padding.top.value())); + MUST(serializer.add("padding_right"sv, box_model.padding.right.value())); + MUST(serializer.add("padding_bottom"sv, box_model.padding.bottom.value())); + MUST(serializer.add("padding_left"sv, box_model.padding.left.value())); + MUST(serializer.add("margin_top"sv, box_model.margin.top.value())); + MUST(serializer.add("margin_right"sv, box_model.margin.right.value())); + MUST(serializer.add("margin_bottom"sv, box_model.margin.bottom.value())); + MUST(serializer.add("margin_left"sv, box_model.margin.left.value())); + MUST(serializer.add("border_top"sv, box_model.border.top.value())); + MUST(serializer.add("border_right"sv, box_model.border.right.value())); + MUST(serializer.add("border_bottom"sv, box_model.border.bottom.value())); + MUST(serializer.add("border_left"sv, box_model.border.left.value())); if (auto* paint_box = box->paint_box()) { MUST(serializer.add("content_width"sv, paint_box->content_width().value())); MUST(serializer.add("content_height"sv, paint_box->content_height().value())); |