aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
Commit message (Collapse)AuthorAgeFilesLines
* Implemented paint worklet properties.Alan Jeffrey2017-07-1111-72/+277
|
* stylo: Update rust-cssparser; extract more specific error types when ↵Josh Matthews2017-07-101-1/+1
| | | | reporting (bug 1352669).
* Refactor HTMLImageElement::handle_event to be idiomaticOmar Akkila2017-07-072-32/+30
| | | | | | | | | | | | Clean up HTMLImageElement::handle_event Area::hit_test now uses a reference instead of taking ownership Fix trailing whitespace Unalign => in match Fix Area::hit_test tests to reflect updated function signature
* Backed out changeset fec394734f83 (bug 17624) for build bustage a=backout ↵Gecko Backout2017-07-061-1/+1
| | | | | | CLOSED TREE Backs out https://github.com/servo/servo/pull/17624
* Auto merge of #17624 - jdm:stylo-error-reporter, r=emiliobors-servo2017-07-061-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hook up Stylo error reporter to Firefox devtools Reviewed by @emilio in https://bugzilla.mozilla.org/show_bug.cgi?id=1352669. --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] There are tests for these changes <!-- 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/17624) <!-- Reviewable:end -->
| * stylo: Update rust-cssparser; extract more specific error types when ↵Josh Matthews2017-07-061-1/+1
| | | | | | | | reporting (bug 1352669).
* | Auto merge of #17578 - pyfisch:input-event, r=jdmbors-servo2017-07-063-0/+95
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement the InputEvent Add WebIDL, from UI Events working draft. Implement script type for event. Note that actually firing InputEvents is not part of this commit. <!-- Please describe your changes on the following line: --> As part of my effort to improve [keyboard handling](https://groups.google.com/forum/#!topic/mozilla.dev.servo/e6R7eBDjo4M) it is necessary to introduce the InputEvent. While I have a working prototype using the input event this still needs a lot of work before it can be merged into servo. cc @jdm <!-- 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/17578) <!-- Reviewable:end -->
| * Implement the InputEventPyfisch2017-07-063-0/+95
| | | | | | | | | | | | | | Add WebIDL, from UI Events working draft. Implement script type for event. Note that actually firing InputEvents is not part of this commit.
* | Auto merge of #17608 - MortimerGoro:webvr_11, r=jdmbors-servo2017-07-0615-38/+112
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WebVR 1.1 spec compatibility <!-- Please describe your changes on the following line: --> Servo WebVR implementation started when WebVR spec 1.2 was about to be released. 1.2 API included some minor breaking changes from spec 1.1 in order to improve the support of the API in WebWorkers. But eventually the WebVR committee decided not to release 1.2 and make it a major version number with a lot more changes. WebVR API 2.0 is still under heavy churn. This PR removes the WebVR changes that non-released 1.2 version introduced to support full WebVR 1.1 spec. I pushed some GC fixes in a separate commit. See https://github.com/servo/servo/issues/17076 and https://github.com/servo/rust-mozjs/issues/351 --- <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [x] 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/17608) <!-- Reviewable:end -->
| * | GC FixesImanol Fernandez2017-07-055-14/+30
| | |
| * | WebVR 1.1 spec compatibilityImanol Fernandez2017-07-0510-24/+82
| | |
* | | Clean up Area::parse (#15834)Omar Akkila2017-07-061-7/+7
|/ / | | | | | | | | | | | | | | Replace mutable reference to array with direct use Remove unecessary clone Replace call to unwrap()
* | stylo: Fix StyleSheetInner/Stylesheet mappingEmilio Cobos Álvarez2017-07-026-27/+69
| | | | | | | | | | | | The key of this patch is the split between Stylesheet and StylesheetContents. Gecko will use StylesheetContents, which maps to a ServoStyleSheetInner.
* | Implemented paint worklet rendering context.Alan Jeffrey2017-06-3012-96/+526
| |
* | Implemented paint worklets invoking worklet scripts.Alan Jeffrey2017-06-2910-19/+412
|/
* Stop using the unstable optin_builtin_traits featureMatt Brubeck2017-06-282-8/+6
|
* style: Remove unused TElement::children_and_traversal_children_might_differ.Cameron McCormack2017-06-281-6/+0
| | | | MozReview-Commit-ID: GUmuxpdvAa8
* Auto merge of #17527 - cbrewster:iframe_cycles, r=asajeffreybors-servo2017-06-282-10/+11
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't return window proxy if it has been discarded <!-- 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 #17479 (github issue number if applicable). <!-- Either: --> - [x] 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/17527) <!-- Reviewable:end -->
| * Don't return window proxy if it has been discardedConnor Brewster2017-06-272-10/+11
| |
* | Auto merge of #17535 - jyc:unsafe-no-jsmanaged-field-ty, r=jdmbors-servo2017-06-281-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Have unsafe_no_jsmanaged_fields! macro take a type as argument rather than an ident. We only write unsafe_no_jsmanaged_fields!(SomeType), and the documentation says it is to be used for types. <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because it should be checked at compile time <!-- 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/17535) <!-- Reviewable:end -->
| * | Have unsafe_no_jsmanaged_fields! macro take a type as argument rather than ↵Jonathan Chan2017-06-271-1/+1
| |/ | | | | | | | | | | | | an ident. We only write unsafe_no_jsmanaged_fields!(SomeType), and the documentation says it is to be used for types.
* / replaced ParseNodeID with ParseNodeIdstreichgeorg2017-06-261-22/+22
|/
* Auto merge of #17515 - frewsxcv:frewsxcv-simple-node-iterator, r=KiChjangbors-servo2017-06-252-85/+49
|\ | | | | | | | | | | | | | | Merge explicit node iterator structures into single generic structure. <!-- 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/17515) <!-- Reviewable:end -->
| * Merge explicit node iterator structures into single generic structure.Corey Farwell2017-06-252-85/+49
| |
* | Auto merge of #17381 - cbrewster:custom_element_creation, r=jdmbors-servo2017-06-2310-51/+259
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Custom element creation <!-- Please describe your changes on the following line: --> This implements the CE-related steps when creating elements. `is` is now support by `document.createElement` and is stored on `Element`s. Only synchronously created autonomous elements are supported as async element creation and customized built-in elements both require custom element upgrade reactions. Spec: https://dom.spec.whatwg.org/#concept-create-element --- <!-- 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 #17191 (github issue number if applicable). <!-- Either: --> - [X] 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/17381) <!-- Reviewable:end -->
| * Allow element prefix to be setConnor Brewster2017-06-235-13/+22
| | | | | | | | | | Implements step 6.1.10 of https://dom.spec.whatwg.org/#concept-create-element
| * Add flag for sync/async CE creationConnor Brewster2017-06-236-35/+63
| |
| * Support `is` option when creating elementsConnor Brewster2017-06-238-21/+62
| |
| * Hook CE registry into element creationConnor Brewster2017-06-234-10/+140
| |
* | Auto merge of #17503 - frewsxcv:frewsxcv-return-node-list-2, r=mbrubeckbors-servo2017-06-231-30/+6
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace iterator struct with anonymous return iterator types. Similar to https://github.com/servo/servo/pull/17488. <!-- 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/17503) <!-- Reviewable:end -->
| * | Replace iterator struct with anonymous return iterator types.Corey Farwell2017-06-231-30/+6
| | | | | | | | | | | | Similar to https://github.com/servo/servo/pull/17488.
* | | Auto merge of #17491 - KiChjang:update-fetch, r=jdmbors-servo2017-06-232-29/+20
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce service-worker mode Bringing in the spec changes from whatwg/fetch#435. <!-- 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/17491) <!-- Reviewable:end -->
| * | | Introduce service-worker modeKeith Yeung2017-06-222-29/+20
| |/ /
* | | Auto merge of #17488 - frewsxcv:frewsxcv-return-node-list, r=jdmbors-servo2017-06-231-20/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace iterator struct with anonymous return iterator type. ``` hi servo. it's been some time. here's a pull request. i hope you like it. ``` <!-- 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/17488) <!-- Reviewable:end -->
| * | | Replace iterator struct with anonymous return iterator type.Corey Farwell2017-06-221-20/+3
| |/ /
* | | Auto merge of #17259 - jyc:new-CSSStyleSheet, r=emiliobors-servo2017-06-231-0/+1
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Force HTMLStyleElement to create a new CSSStyleSheet when re-parsing. - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes do not require tests because I'm pushing to find out what test results this changes; this is part of a series of PRs to fix bug #17182 <!-- 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/17259) <!-- Reviewable:end -->
| * | Force HTMLStyleElement to create a new CSSStyleSheet when re-parsing.Jonathan Chan2017-06-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We already call Document::invalidate_style_sheets and set the stylesheet member to a new Stylesheet. This matches the behavior of Firefox, and means the new CSSStyleSheet you get from accessing .sheet from JS will be correct instead of stale. (::get_cssom_stylesheet already tries to use the new Stylesheet, but MutNullableJS::or_init is called, so if we already created a CSSStyleSheet we will continue to return that one).
* | | Auto merge of #17385 - pyfisch:better-scroll, r=mrobinsonbors-servo2017-06-233-24/+23
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix several bugs related to scrolling * scrollLeft/scrollTop returned values of parent or even document root Only the scroll of the node itself is returned. Otherwise 0.0. * Scrolling via script had set viewport. This resulted in other nodes appearing scrolled. Now scroll_offsets are updated with correct node id. These bugs caused other odd behavior like both body and document.documentElement being scrolled or the view for scrolled elements jumping. Also try scrolling this [example page](https://pyfisch.org/stuff/scrolltest.html) in servo with and without this change. <!-- 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 #17342 (github issue number if applicable). <!-- Either: --> - [x] There are tests for these changes (partially) <!-- 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/17385) <!-- Reviewable:end -->
| * | | Fix several bugs related to scrollingPyfisch2017-06-193-24/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * scrollLeft/scrollTop returned values of parent or even document root Only the scroll of the node itself is returned. Otherwise 0.0. * Scrolling via script had set viewport. This resulted in other nodes appearing scrolled. Now scroll_offsets are updated with correct node id. These bugs caused other odd behavior like both body and document.documentElement being scrolled or the view for scrolled elements jumping.
* | | | Auto merge of #17472 - moonlightdrive:globalscope-current-option, r=asajeffreybors-servo2017-06-224-6/+10
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | return Option from GlobalScope::current <!-- Please describe your changes on the following line: --> handles the case where `GlobalScope::current` calls `CurrentGlobalOrNull` and the result is null --- <!-- 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 #17238 <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because: no functionality change & ./mach build -d has no errors <!-- 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/17472) <!-- Reviewable:end -->
| * | | return Option from GlobalScope::currentJyotsna Prakash2017-06-224-6/+10
| | | | | | | | | | | | | | | | | | | | handles the case where GlobalScope::current calls CurrentGlobalOrNull and the result is null
* | | | Auto merge of #17481 - jryans:move-rule-node, r=bholleybors-servo2017-06-221-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Stylo: Move match and cascade temporaries to CurrentElementInfo https://bugzilla.mozilla.org/show_bug.cgi?id=1370719 <!-- 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/17481) <!-- Reviewable:end -->
| * | | | Move match and cascade temporaries to CurrentElementInfoJ. Ryan Stinnett2017-06-221-1/+1
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this change, the `ComputedStyle` struct that is part of permanent style data per element holds 2 `StrongRuleNode`s (unvisited and visited) and 2 `Arc<ComputedValues>` (unvisited and visited). Both rule nodes and the visited values don't actually need to be here. This patch moves these 3 to new temporary storage in `CascadeInputs` on `CurrentElementInfo` during the match and cascade process. Rule nodes are pushed down inside the `ComputedValues` for later access after the cascade. (Visited values were already available there.) The permanent style data per element now has just the `Arc<ComputedValues>` for itself and eager pseudo-elements (plus the `RestyleHint`). MozReview-Commit-ID: 3wq52ERMpdi
* / | | Bump cssparser version to 0.16.1 in toml filesNazım Can Altınova2017-06-221-1/+1
|/ / /
* | | Auto merge of #17457 - cynicaldevil:trim-parse-node-data, r=noxbors-servo2017-06-221-19/+6
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove target and data fields from parse_node_data <!-- Please describe your changes on the following line: --> `parse_node_data` does not need to store `data` and `target`, they can automatically be passed as parameters to the parser operation (`ParseOperation::CreatePI`) that we already create to be processed. Also, this frees up `process_op` from depending on the sink's `parse_node_data` field, which will later allow for the sink to exist on the parser thread separately. --- <!-- 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 - [ ] These changes fix #__ (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/17457) <!-- Reviewable:end -->
| * | Remove target and data fields from parse_node_dataNikhil Shagrithaya2017-06-221-19/+6
| | |
* | | Auto merge of #17439 - bholley:compound_left_to_right, r=SimonSapinbors-servo2017-06-212-2/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Match compound selectors left-to-right (second try) https://bugzilla.mozilla.org/show_bug.cgi?id=1373800 <!-- 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/17439) <!-- Reviewable:end -->
| * | | Hoist sink into selectors.Bobby Holley2017-06-202-2/+2
| |/ / | | | | | | | | | | | | | | | It probably makes more sense (eventually) to put it in SmallVec. MozReview-Commit-ID: AIBKCLiMNN2
* | | Auto merge of #17398 - glennw:opt-composite, r=jdmbors-servo2017-06-211-21/+38
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve decisions in compositor over when to draw a frame. This patch fixes a couple of issues in the compositor: 1) Remove the delayed composition code. Previously, this would schedule a composite for 12ms in the future. This doesn't really make any sense with WR. There's no point in doing a composite unless WR has provided a new frame to be drawn. This fixes issues in several benchmarks where we were doing multiple composite / renders per rAF, which is a waste of CPU time. This *does* make the framerate slower in some cases (such as a slow rAF callback) but it's more correct - otherwise we were just compositing the same frame multiple times for no real benefit. 2) Inform the window of the current animation state of the compositor. Specifically, if an animation (or rAF) is currently active, the window system switches to use event polling, and does not block on the OS-level event loop. In the case of active animation, we just assume that we want to be running as the vsync interval and not blocking. This means the compositor thread only sleeps on vsync during animation, which reduces OS scheduling and results in much smoother animation. <!-- 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/17398) <!-- Reviewable:end -->
| * | | Fix rAF callbacks when in spurious mode.Glenn Watson2017-06-211-21/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes another rAF bug, that is being exposed by the previous two commits. Previously, the fake timer callback would only be set if we were being called from a non-rAF event handler. Now, if we're in fake / spurious mode, unconditionally set the one shot timer. Otherwise, notify the compositor that animations are present if we're not currently in a rAF callback.