aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/servoparser/html.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2017-01-18 14:04:19 +0100
committerAnthony Ramine <n.oxyde@gmail.com>2017-01-19 16:17:14 +0100
commit0f244d6948a0545009a8a1a5acbcb36e1e125b03 (patch)
treea23643129340ffb81783a2086bfd2c2b8a55e6f4 /components/script/dom/servoparser/html.rs
parentd5442b87fce26b1e5cea1bba4fe37d05c5eaa049 (diff)
downloadservo-0f244d6948a0545009a8a1a5acbcb36e1e125b03.tar.gz
servo-0f244d6948a0545009a8a1a5acbcb36e1e125b03.zip
Mark the page source as loaded only after parsing is done
Diffstat (limited to 'components/script/dom/servoparser/html.rs')
-rw-r--r--components/script/dom/servoparser/html.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/dom/servoparser/html.rs b/components/script/dom/servoparser/html.rs
index 1e53cea8341..a6270eaaf26 100644
--- a/components/script/dom/servoparser/html.rs
+++ b/components/script/dom/servoparser/html.rs
@@ -93,6 +93,10 @@ impl Tokenizer {
self.inner.end();
}
+ pub fn url(&self) -> &ServoUrl {
+ &self.inner.sink().sink().base_url
+ }
+
pub fn set_plaintext_state(&mut self) {
self.inner.set_plaintext_state();
}