mirror of
https://github.com/servo/servo.git
synced 2025-06-21 07:38:59 +01:00
Remove a TODO from the implementation of getComputedStyle
The spec is now clear that disconnected elements shouldn't return a style. Closes #6860.
This commit is contained in:
parent
75fce11335
commit
4b4ea6483a
1 changed files with 0 additions and 2 deletions
|
@ -242,8 +242,6 @@ impl CSSStyleDeclaration {
|
||||||
CSSStyleOwner::Element(ref el) => {
|
CSSStyleOwner::Element(ref el) => {
|
||||||
let node = el.upcast::<Node>();
|
let node = el.upcast::<Node>();
|
||||||
if !node.is_connected() {
|
if !node.is_connected() {
|
||||||
// TODO: Node should be matched against the style rules of this window.
|
|
||||||
// Firefox is currently the only browser to implement this.
|
|
||||||
return DOMString::new();
|
return DOMString::new();
|
||||||
}
|
}
|
||||||
let addr = node.to_trusted_node_address();
|
let addr = node.to_trusted_node_address();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue