summaryrefslogtreecommitdiff
path: root/Userland/Services/WebContent
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-03-25 11:56:38 +0100
committerAndreas Kling <kling@serenityos.org>2022-03-25 11:57:30 +0100
commitbd44d9d6410cfe202a0dc691877b0a7a96cd7aa6 (patch)
tree172b27ca2a98c102dd2beebc5d472419e2ca94b2 /Userland/Services/WebContent
parent261cd1d4c7bf1e73d14a944d41d7ff06b9c221e3 (diff)
downloadserenity-bd44d9d6410cfe202a0dc691877b0a7a96cd7aa6.zip
LibWeb: Show correct element margin values in Inspector "Box Model" view
We were showing the margin-top value for all 4 margin values.
Diffstat (limited to 'Userland/Services/WebContent')
-rw-r--r--Userland/Services/WebContent/ConnectionFromClient.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Services/WebContent/ConnectionFromClient.cpp b/Userland/Services/WebContent/ConnectionFromClient.cpp
index b7605e33c0..20a975d959 100644
--- a/Userland/Services/WebContent/ConnectionFromClient.cpp
+++ b/Userland/Services/WebContent/ConnectionFromClient.cpp
@@ -313,9 +313,9 @@ Messages::WebContentServer::InspectDomNodeResponse ConnectionFromClient::inspect
MUST(serializer.add("padding_bottom", box_model.padding.bottom));
MUST(serializer.add("padding_left", box_model.padding.left));
MUST(serializer.add("margin_top", box_model.margin.top));
- MUST(serializer.add("margin_right", box_model.margin.top));
- MUST(serializer.add("margin_bottom", box_model.margin.top));
- MUST(serializer.add("margin_left", box_model.margin.top));
+ MUST(serializer.add("margin_right", box_model.margin.right));
+ MUST(serializer.add("margin_bottom", box_model.margin.bottom));
+ MUST(serializer.add("margin_left", box_model.margin.left));
MUST(serializer.add("border_top", box_model.border.top));
MUST(serializer.add("border_right", box_model.border.right));
MUST(serializer.add("border_bottom", box_model.border.bottom));