Browse Source

LibWeb: Make SVGSVGElement's view_box() const

Tobias Christiansen 3 năm trước cách đây
mục cha
commit
4f1df48bd9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Userland/Libraries/LibWeb/SVG/SVGSVGElement.h

+ 1 - 1
Userland/Libraries/LibWeb/SVG/SVGSVGElement.h

@@ -25,7 +25,7 @@ public:
     virtual bool requires_svg_container() const override { return false; }
     virtual bool is_svg_container() const override { return true; }
 
-    Optional<ViewBox> const& view_box() { return m_view_box; }
+    Optional<ViewBox> const& view_box() const { return m_view_box; }
 
 private:
     virtual void parse_attribute(FlyString const& name, String const& value) override;