瀏覽代碼

LibWeb: Add getter to NavigationDestination to get its URL as an AK::URL

Other parts of LibWeb are going to want to mess with the URL object, not
its serialzied representation. So let's add a backdoor getter.
Andrew Kaster 1 年之前
父節點
當前提交
e05a6f6aa2
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Userland/Libraries/LibWeb/HTML/NavigationDestination.h

+ 2 - 0
Userland/Libraries/LibWeb/HTML/NavigationDestination.h

@@ -37,6 +37,8 @@ public:
 
     virtual ~NavigationDestination() override;
 
+    AK::URL const& raw_url() const { return m_url; }
+
 private:
     NavigationDestination(JS::Realm&);