diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-06 11:56:38 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-06 11:56:38 +0100 |
commit | 11580babbfb1b8ae0acab2400f11d905c35642f5 (patch) | |
tree | 3b26fcd4bf7afe9ff92203468ba7cd95e192d55f /Libraries/LibHTML/Frame.h | |
parent | 939a605334a71dd8b7af91cdcbe9047281f7b5b9 (diff) | |
download | serenity-11580babbfb1b8ae0acab2400f11d905c35642f5.zip |
LibDraw: Put all classes in the Gfx namespace
I started adding things to a Draw namespace, but it somehow felt really
wrong seeing Draw::Rect and Draw::Bitmap, etc. So instead, let's rename
the library to LibGfx. :^)
Diffstat (limited to 'Libraries/LibHTML/Frame.h')
-rw-r--r-- | Libraries/LibHTML/Frame.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Libraries/LibHTML/Frame.h b/Libraries/LibHTML/Frame.h index 3b7b484874..a99e675737 100644 --- a/Libraries/LibHTML/Frame.h +++ b/Libraries/LibHTML/Frame.h @@ -50,13 +50,13 @@ public: HtmlView* html_view() { return m_html_view; } const HtmlView* html_view() const { return m_html_view; } - const Size& size() const { return m_size; } - void set_size(const Size&); + const Gfx::Size& size() const { return m_size; } + void set_size(const Gfx::Size&); - void set_needs_display(const Rect&); - Function<void(const Rect&)> on_set_needs_display; + void set_needs_display(const Gfx::Rect&); + Function<void(const Gfx::Rect&)> on_set_needs_display; - void set_viewport_rect(const Rect&); + void set_viewport_rect(const Gfx::Rect&); Rect viewport_rect() const { return m_viewport_rect; } private: @@ -64,6 +64,6 @@ private: WeakPtr<HtmlView> m_html_view; RefPtr<Document> m_document; - Size m_size; - Rect m_viewport_rect; + Gfx::Size m_size; + Gfx::Rect m_viewport_rect; }; |