diff options
author | Tom Tromey <tom@tromey.com> | 2017-08-24 07:37:02 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-08-28 12:49:30 -0600 |
commit | 546ecaeee9270d65d4ab8065d762f0a1c16eb898 (patch) | |
tree | 6b0128c274917364e838bd150e2438df03592127 /components/script/dom/htmlstyleelement.rs | |
parent | a266e96d28b7960b4fb0b236c3e8e93cf70f09b0 (diff) | |
download | servo-546ecaeee9270d65d4ab8065d762f0a1c16eb898.tar.gz servo-546ecaeee9270d65d4ab8065d762f0a1c16eb898.zip |
Use cssparser's new_with_line_number_offset
cssparser provides a way to set the initial line number on a
ParserInput. This patch changes servo to use this facility, rather than
reimplement the same functionality itself.
Diffstat (limited to 'components/script/dom/htmlstyleelement.rs')
-rw-r--r-- | components/script/dom/htmlstyleelement.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlstyleelement.rs b/components/script/dom/htmlstyleelement.rs index a18b29bd304..ac5df3d9689 100644 --- a/components/script/dom/htmlstyleelement.rs +++ b/components/script/dom/htmlstyleelement.rs @@ -98,7 +98,7 @@ impl HTMLStyleElement { shared_lock, Some(&loader), win.css_error_reporter(), doc.quirks_mode(), - self.line_number); + self.line_number as u32); let sheet = Arc::new(sheet); |