summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Painting/MarkerPaintable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb/Painting/MarkerPaintable.cpp')
-rw-r--r--Userland/Libraries/LibWeb/Painting/MarkerPaintable.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Painting/MarkerPaintable.cpp b/Userland/Libraries/LibWeb/Painting/MarkerPaintable.cpp
index 6911166c84..8227a1c755 100644
--- a/Userland/Libraries/LibWeb/Painting/MarkerPaintable.cpp
+++ b/Userland/Libraries/LibWeb/Painting/MarkerPaintable.cpp
@@ -31,7 +31,8 @@ void MarkerPaintable::paint(PaintContext& context, PaintPhase phase) const
if (phase != PaintPhase::Foreground)
return;
- CSSPixelRect enclosing = absolute_rect().to_rounded<float>().to_type<CSSPixels>();
+ // FIXME: All this does is round to the nearest whole CSS pixel, but it's goofy.
+ CSSPixelRect enclosing = absolute_rect().to_type<float>().to_rounded<float>().to_type<CSSPixels>();
auto device_enclosing = context.enclosing_device_rect(enclosing);
CSSPixels marker_width = enclosing.height() / 2.0f;