diff options
Diffstat (limited to 'Libraries/LibWeb/Layout')
-rw-r--r-- | Libraries/LibWeb/Layout/LayoutBlock.cpp | 2 | ||||
-rw-r--r-- | Libraries/LibWeb/Layout/LayoutBlock.h | 2 | ||||
-rw-r--r-- | Libraries/LibWeb/Layout/LayoutBox.cpp | 2 | ||||
-rw-r--r-- | Libraries/LibWeb/Layout/LayoutBox.h | 2 | ||||
-rw-r--r-- | Libraries/LibWeb/Layout/LayoutDocument.cpp | 2 | ||||
-rw-r--r-- | Libraries/LibWeb/Layout/LayoutDocument.h | 2 | ||||
-rw-r--r-- | Libraries/LibWeb/Layout/LayoutListItemMarker.cpp | 2 | ||||
-rw-r--r-- | Libraries/LibWeb/Layout/LayoutNode.cpp | 2 | ||||
-rw-r--r-- | Libraries/LibWeb/Layout/LayoutNode.h | 2 |
9 files changed, 9 insertions, 9 deletions
diff --git a/Libraries/LibWeb/Layout/LayoutBlock.cpp b/Libraries/LibWeb/Layout/LayoutBlock.cpp index 6b4816d74f..1afd9c9b22 100644 --- a/Libraries/LibWeb/Layout/LayoutBlock.cpp +++ b/Libraries/LibWeb/Layout/LayoutBlock.cpp @@ -449,7 +449,7 @@ void LayoutBlock::render(RenderingContext& context) } } -HitTestResult LayoutBlock::hit_test(const Gfx::Point& position) const +HitTestResult LayoutBlock::hit_test(const Gfx::IntPoint& position) const { if (!children_are_inline()) return LayoutBox::hit_test(position); diff --git a/Libraries/LibWeb/Layout/LayoutBlock.h b/Libraries/LibWeb/Layout/LayoutBlock.h index 0a1d770c88..af1ab548bf 100644 --- a/Libraries/LibWeb/Layout/LayoutBlock.h +++ b/Libraries/LibWeb/Layout/LayoutBlock.h @@ -51,7 +51,7 @@ public: LineBox& ensure_last_line_box(); LineBox& add_line_box(); - virtual HitTestResult hit_test(const Gfx::Point&) const override; + virtual HitTestResult hit_test(const Gfx::IntPoint&) const override; LayoutBlock* previous_sibling() { return to<LayoutBlock>(LayoutNode::previous_sibling()); } const LayoutBlock* previous_sibling() const { return to<LayoutBlock>(LayoutNode::previous_sibling()); } diff --git a/Libraries/LibWeb/Layout/LayoutBox.cpp b/Libraries/LibWeb/Layout/LayoutBox.cpp index dc0e513818..3f6223da30 100644 --- a/Libraries/LibWeb/Layout/LayoutBox.cpp +++ b/Libraries/LibWeb/Layout/LayoutBox.cpp @@ -240,7 +240,7 @@ void LayoutBox::render(RenderingContext& context) context.painter().draw_rect(enclosing_int_rect(absolute_rect()), Color::Magenta); } -HitTestResult LayoutBox::hit_test(const Gfx::Point& position) const +HitTestResult LayoutBox::hit_test(const Gfx::IntPoint& position) const { // FIXME: It would be nice if we could confidently skip over hit testing // parts of the layout tree, but currently we can't just check diff --git a/Libraries/LibWeb/Layout/LayoutBox.h b/Libraries/LibWeb/Layout/LayoutBox.h index d95155af7b..4303612eb8 100644 --- a/Libraries/LibWeb/Layout/LayoutBox.h +++ b/Libraries/LibWeb/Layout/LayoutBox.h @@ -53,7 +53,7 @@ public: float absolute_y() const { return absolute_rect().y(); } Gfx::FloatPoint absolute_position() const { return absolute_rect().location(); } - virtual HitTestResult hit_test(const Gfx::Point& absolute_position) const override; + virtual HitTestResult hit_test(const Gfx::IntPoint& absolute_position) const override; virtual void set_needs_display() override; bool is_body() const; diff --git a/Libraries/LibWeb/Layout/LayoutDocument.cpp b/Libraries/LibWeb/Layout/LayoutDocument.cpp index ca240dd1ff..ea81093724 100644 --- a/Libraries/LibWeb/Layout/LayoutDocument.cpp +++ b/Libraries/LibWeb/Layout/LayoutDocument.cpp @@ -66,7 +66,7 @@ void LayoutDocument::layout(LayoutMode layout_mode) }); } -void LayoutDocument::did_set_viewport_rect(Badge<Frame>, const Gfx::Rect& a_viewport_rect) +void LayoutDocument::did_set_viewport_rect(Badge<Frame>, const Gfx::IntRect& a_viewport_rect) { Gfx::FloatRect viewport_rect(a_viewport_rect.x(), a_viewport_rect.y(), a_viewport_rect.width(), a_viewport_rect.height()); for_each_in_subtree_of_type<LayoutImage>([&](auto& layout_image) { diff --git a/Libraries/LibWeb/Layout/LayoutDocument.h b/Libraries/LibWeb/Layout/LayoutDocument.h index 542b415818..025d178b51 100644 --- a/Libraries/LibWeb/Layout/LayoutDocument.h +++ b/Libraries/LibWeb/Layout/LayoutDocument.h @@ -43,7 +43,7 @@ public: const LayoutRange& selection() const { return m_selection; } LayoutRange& selection() { return m_selection; } - void did_set_viewport_rect(Badge<Frame>, const Gfx::Rect&); + void did_set_viewport_rect(Badge<Frame>, const Gfx::IntRect&); virtual bool is_root() const override { return true; } diff --git a/Libraries/LibWeb/Layout/LayoutListItemMarker.cpp b/Libraries/LibWeb/Layout/LayoutListItemMarker.cpp index fe7582985f..41e44951a9 100644 --- a/Libraries/LibWeb/Layout/LayoutListItemMarker.cpp +++ b/Libraries/LibWeb/Layout/LayoutListItemMarker.cpp @@ -40,7 +40,7 @@ LayoutListItemMarker::~LayoutListItemMarker() void LayoutListItemMarker::render(RenderingContext& context) { - Gfx::Rect bullet_rect { 0, 0, 4, 4 }; + Gfx::IntRect bullet_rect { 0, 0, 4, 4 }; bullet_rect.center_within(enclosing_int_rect(absolute_rect())); // FIXME: It would be nicer to not have to go via the parent here to get our inherited style. auto color = parent()->style().color_or_fallback(CSS::PropertyID::Color, document(), context.palette().base_text()); diff --git a/Libraries/LibWeb/Layout/LayoutNode.cpp b/Libraries/LibWeb/Layout/LayoutNode.cpp index b0133e210b..b19e064616 100644 --- a/Libraries/LibWeb/Layout/LayoutNode.cpp +++ b/Libraries/LibWeb/Layout/LayoutNode.cpp @@ -98,7 +98,7 @@ void LayoutNode::render(RenderingContext& context) }); } -HitTestResult LayoutNode::hit_test(const Gfx::Point& position) const +HitTestResult LayoutNode::hit_test(const Gfx::IntPoint& position) const { HitTestResult result; for_each_child([&](auto& child) { diff --git a/Libraries/LibWeb/Layout/LayoutNode.h b/Libraries/LibWeb/Layout/LayoutNode.h index cc9153bd78..2c4357b9bc 100644 --- a/Libraries/LibWeb/Layout/LayoutNode.h +++ b/Libraries/LibWeb/Layout/LayoutNode.h @@ -94,7 +94,7 @@ class LayoutNode : public TreeNode<LayoutNode> { public: virtual ~LayoutNode(); - virtual HitTestResult hit_test(const Gfx::Point&) const; + virtual HitTestResult hit_test(const Gfx::IntPoint&) const; bool is_anonymous() const { return !m_node; } const Node* node() const { return m_node; } |