diff --git a/components/script/dom/htmlstyleelement.rs b/components/script/dom/htmlstyleelement.rs
index 2e26803be96..dcf15060776 100644
--- a/components/script/dom/htmlstyleelement.rs
+++ b/components/script/dom/htmlstyleelement.rs
@@ -44,7 +44,6 @@ pub(crate) struct HTMLStyleElement {
in_stack_of_open_elements: Cell,
pending_loads: Cell,
any_failed_load: Cell,
- line_number: u64,
}
impl HTMLStyleElement {
@@ -62,7 +61,6 @@ impl HTMLStyleElement {
in_stack_of_open_elements: Cell::new(creator.is_parser_created()),
pending_loads: Cell::new(0),
any_failed_load: Cell::new(false),
- line_number: creator.return_line_number(),
}
}