Auto merge of #26481 - mrobinson:remove-fixme, r=jdm

Remove a TODO from the implementation of getComputedStyle

The spec is now clear that disconnected elements shouldn't return a
style.

Closes #6860.

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #6860
- [x] These changes do not require tests because they just update a comment.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
This commit is contained in:
bors-servo 2020-05-10 08:40:07 -04:00 committed by GitHub
commit 4d541e8e38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();