mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:47:34 +00:00
LibWeb: Rename Document::complete_url() => parse_url()
This better matches the spec nomenclature.
This commit is contained in:
parent
0839442da5
commit
e1fb8bef09
12 changed files with 18 additions and 16 deletions
|
@ -381,9 +381,11 @@ CSS::Repeat Document::background_repeat_y() const
|
|||
return body_layout_node->computed_values().background_repeat_y();
|
||||
}
|
||||
|
||||
URL Document::complete_url(const String& string) const
|
||||
// https://html.spec.whatwg.org/multipage/urls-and-fetching.html#parse-a-url
|
||||
URL Document::parse_url(String const& url) const
|
||||
{
|
||||
return m_url.complete_url(string);
|
||||
// FIXME: Make sure we do this according to spec.
|
||||
return m_url.complete_url(url);
|
||||
}
|
||||
|
||||
void Document::invalidate_layout()
|
||||
|
|
|
@ -69,7 +69,7 @@ public:
|
|||
|
||||
bool is_scripting_enabled() const { return true; }
|
||||
|
||||
URL complete_url(const String&) const;
|
||||
URL parse_url(String const&) const;
|
||||
|
||||
CSS::StyleResolver& style_resolver() { return *m_style_resolver; }
|
||||
const CSS::StyleResolver& style_resolver() const { return *m_style_resolver; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue