aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/window.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2018-09-12 10:47:13 -0400
committerGitHub <noreply@github.com>2018-09-12 10:47:13 -0400
commit9a83ab6297ddb62937fc54521b7fd4d19017e6b1 (patch)
tree5986171bb98de0a99c805aeaa86a3089e3e4053b /components/script/dom/window.rs
parent29ba51016b7c2b04d1c9e3d2cd5a2be4e43ff1dc (diff)
parent2de300d49cc90f6c2daf31e8ef8a7c0443eb0a94 (diff)
downloadservo-9a83ab6297ddb62937fc54521b7fd4d19017e6b1.tar.gz
servo-9a83ab6297ddb62937fc54521b7fd4d19017e6b1.zip
Auto merge of #21280 - paavininanda:Update_the_image_data, r=jdm
Reacting to environment changes <!-- 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 a subset of #11416 <!-- Either: --> - [x] These changes do not require tests because they will be added when the complete responsive images is complete <!-- 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/21280) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/window.rs')
-rw-r--r--components/script/dom/window.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs
index 052f121fb2a..1f2f622eb2a 100644
--- a/components/script/dom/window.rs
+++ b/components/script/dom/window.rs
@@ -1861,6 +1861,7 @@ impl Window {
mql.Matches());
event.upcast::<Event>().fire(mql.upcast::<EventTarget>());
}
+ self.Document().react_to_environment_changes();
}
/// Slow down/speed up timers based on visibility.