ソースを参照

LibWeb: Make SVGSVGElement's view_box() const

Tobias Christiansen 3 年 前
コミット
4f1df48bd9
1 ファイル変更1 行追加1 行削除
  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;