diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-06 13:02:38 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-06 13:02:38 +0100 |
commit | 20cfd2a6bff8c469970651dd73ffee60ab0e5176 (patch) | |
tree | 4f92b38ae97fb0add184ccae97d679f484ef1a49 /Libraries/LibHTML | |
parent | c39d44fc2ef0d2e5435524c5b96b5a367df2438b (diff) | |
download | serenity-20cfd2a6bff8c469970651dd73ffee60ab0e5176.zip |
LibGfx: Unpublish Gfx::Rect from global namespace
Diffstat (limited to 'Libraries/LibHTML')
-rw-r--r-- | Libraries/LibHTML/Frame.h | 2 | ||||
-rw-r--r-- | Libraries/LibHTML/HtmlView.cpp | 2 | ||||
-rw-r--r-- | Libraries/LibHTML/Layout/LayoutListItemMarker.cpp | 2 | ||||
-rw-r--r-- | Libraries/LibHTML/RenderingContext.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/Libraries/LibHTML/Frame.h b/Libraries/LibHTML/Frame.h index 0d98ae4ba5..830653b45e 100644 --- a/Libraries/LibHTML/Frame.h +++ b/Libraries/LibHTML/Frame.h @@ -57,7 +57,7 @@ public: Function<void(const Gfx::Rect&)> on_set_needs_display; void set_viewport_rect(const Gfx::Rect&); - Rect viewport_rect() const { return m_viewport_rect; } + Gfx::Rect viewport_rect() const { return m_viewport_rect; } private: explicit Frame(HtmlView&); diff --git a/Libraries/LibHTML/HtmlView.cpp b/Libraries/LibHTML/HtmlView.cpp index e8deca8265..cfdfa066b5 100644 --- a/Libraries/LibHTML/HtmlView.cpp +++ b/Libraries/LibHTML/HtmlView.cpp @@ -55,7 +55,7 @@ HtmlView::HtmlView(GUI::Widget* parent) update(); return; } - Rect adjusted_rect = content_rect; + Gfx::Rect adjusted_rect = content_rect; adjusted_rect.set_location(to_widget_position(content_rect.location())); update(adjusted_rect); }; diff --git a/Libraries/LibHTML/Layout/LayoutListItemMarker.cpp b/Libraries/LibHTML/Layout/LayoutListItemMarker.cpp index aad050c186..03d793f1f0 100644 --- a/Libraries/LibHTML/Layout/LayoutListItemMarker.cpp +++ b/Libraries/LibHTML/Layout/LayoutListItemMarker.cpp @@ -38,7 +38,7 @@ LayoutListItemMarker::~LayoutListItemMarker() void LayoutListItemMarker::render(RenderingContext& context) { - Rect bullet_rect { 0, 0, 4, 4 }; + Gfx::Rect bullet_rect { 0, 0, 4, 4 }; bullet_rect.center_within(enclosing_int_rect(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/LibHTML/RenderingContext.h b/Libraries/LibHTML/RenderingContext.h index 66814a7981..028555fd2a 100644 --- a/Libraries/LibHTML/RenderingContext.h +++ b/Libraries/LibHTML/RenderingContext.h @@ -47,7 +47,7 @@ public: bool should_show_line_box_borders() const { return m_should_show_line_box_borders; } void set_should_show_line_box_borders(bool value) { m_should_show_line_box_borders = value; } - Rect viewport_rect() const { return m_viewport_rect; } + Gfx::Rect viewport_rect() const { return m_viewport_rect; } void set_viewport_rect(const Gfx::Rect& rect) { m_viewport_rect = rect; } private: |