diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2018-07-29 11:14:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-29 11:14:29 -0400 |
commit | 076198fe803faa357619c969ab452da85bcb1ec5 (patch) | |
tree | f561d094007733bbe9e2f0b35ed2c7fd603a8d17 /components/script/dom/htmlimageelement.rs | |
parent | e9bc6f43be349d0a8d900f62e90bec5274068ca1 (diff) | |
parent | e67adfc290cdde1dfc7239c0c5de1b63f628f1a9 (diff) | |
download | servo-076198fe803faa357619c969ab452da85bcb1ec5.tar.gz servo-076198fe803faa357619c969ab452da85bcb1ec5.zip |
Auto merge of #21111 - gterzian:implement_document_load_cancellation, r=jdm
Implement document load cancellation
<!-- 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: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #19309 fix #21114 fix #21113 (github issue number if applicable).
<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____
<!-- 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. -->
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21111)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/htmlimageelement.rs')
-rw-r--r-- | components/script/dom/htmlimageelement.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlimageelement.rs b/components/script/dom/htmlimageelement.rs index 7aead67ed79..727ba7e561d 100644 --- a/components/script/dom/htmlimageelement.rs +++ b/components/script/dom/htmlimageelement.rs @@ -300,7 +300,7 @@ impl HTMLImageElement { // This is a background load because the load blocker already fulfills the // purpose of delaying the document's load event. - document.loader().fetch_async_background(request, action_sender); + document.loader_mut().fetch_async_background(request, action_sender); } /// Step 14 of https://html.spec.whatwg.org/multipage/#update-the-image-data |