Skip to content

Commit 65b08e7

Browse files
committed
LibWeb: Use correct point type in to_top_level_position()
This occurred because 90a211b changed the return type of `transform_rect_to_viewport()` but 7fc945d didn't take this into account.
1 parent 7fc945d commit 65b08e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Libraries/LibWeb/HTML/Navigable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2592,7 +2592,7 @@ CSSPixelPoint Navigable::to_top_level_position(CSSPixelPoint a_position)
25922592
auto const& scroll_state = viewport_paintable.scroll_state_snapshot();
25932593
auto point = paintable_box->absolute_position();
25942594
point.translate_by(position);
2595-
position = accumulated_visual_context.transform_rect_to_viewport({ point, { 0, 0 } }, scroll_state).location();
2595+
position = accumulated_visual_context.transform_rect_to_viewport({ point, { 0, 0 } }, scroll_state).location().to_type<CSSPixels>();
25962596
} else {
25972597
position.translate_by(paintable->box_type_agnostic_position());
25982598
}

0 commit comments

Comments
 (0)