aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/cssstylerule.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-01-27 16:30:37 -0800
committerGitHub <noreply@github.com>2017-01-27 16:30:37 -0800
commitb5c94bad371114ab9f03e910f66c00a042997fc2 (patch)
tree46aec036b4e1681f7d22762817b3afd3a615a7e0 /components/script/dom/cssstylerule.rs
parentd4ee8a3599a57078735766640b31df31c67d8201 (diff)
parentca9cee084e5ee8282c5d074f763b23936efc394f (diff)
downloadservo-b5c94bad371114ab9f03e910f66c00a042997fc2.tar.gz
servo-b5c94bad371114ab9f03e910f66c00a042997fc2.zip
Auto merge of #14971 - asajeffrey:script-track-active-documents, r=cbrewster
Constellation informs script about documents becoming inactive, active or fully active. <!-- Please describe your changes on the following line: --> This PR replaces the current freeze/thaw mechanism by messages from the constellation to script informing it about when documents become inactive, active or fully active. This means we can now implement |Document::is_active()| which is used in |document.write|. This PR also changes how timers work: previously they were initialized running, and were then frozen/thawed. This means there was a transitory period when timers were running even though the document was not fully active. With this PR, timers are initially suspended, and are only resumed when the document is made fully active. --- <!-- 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 #14876 - [X] These changes do not require tests because it's an interal refactoring. <!-- 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/14971) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/cssstylerule.rs')
0 files changed, 0 insertions, 0 deletions