Граф коммитов

579228 Коммитов

Автор SHA1 Сообщение Дата
Hiroyuki Ikezoe 7061542dd0 Bug 1415780 - Make AnimationEventDispatcher::SortEvents() private. r=birtles
Now we sort pending events only when dispatching the events, i.e.
only inside DispatchEvent().

MozReview-Commit-ID: BZbuF8gD39b

--HG--
extra : rebase_source : 2a90697356d980b1fd1329d34936eaef1179d12f
2018-01-27 21:17:27 +09:00
Hiroyuki Ikezoe 7828b6be59 Bug 1415780 - Let nsPresContext have AnimationEventDispatcher. r=birtles
Now we sort CSS animation/transition events by scheduled event time prior
to compositor order.

SortEvents() will be a private method in the next patch in this patch
series.

MozReview-Commit-ID: ICkOayquN0f

--HG--
extra : rebase_source : 405c8232e93c54a073c722a4332873af02daa870
2018-01-27 21:17:27 +09:00
Hiroyuki Ikezoe 21a53275cd Bug 1415780 - Make AnimationEventDispatcher refcountable. r=birtles
In a subsequent patch in this patch series, we want to make nsPresContext
have an AnimationEventDispatcher as RefPtr<>.

Instead, if we were trying to make nsPresContext have the
AnimationEventDispatcher as data object (not RefPtr<>) just like we did in
CommonAnimationManager, we will fall into header inclusion hell since Element.h
includes nsPresContext.h and AnimationEventDispatcher.h ends up including
Element.h.  Even if we could solve the inclusion hell, we will suffer from Rust
bindgen issues for some reasons.

MozReview-Commit-ID: B0nX2JzIRJD

--HG--
extra : rebase_source : 4eb998876b2fc39de8d09cac09c19e1a51cd382e
2018-01-27 21:17:27 +09:00
Hiroyuki Ikezoe 75fc208a71 Bug 1415780 - De-templatize AnimationEventDispatcher. r=birtles,masayuki
Now single AnimationEventDispatcher can handle both CSS animation/transition
events simultaneously.  To do this we had to change AnimationEventInfo and
TransitionEventInfo into a single struct, the struct is also named
AnimationEventInfo.

It results we can sort both CSS animation/transition events altogether.  Thus
we make sure CSS animation/transition events are sorted by scheduled event time
prior to their composite order (i.e. transitions is prior to animations).

At this moment, we don't sort both events altogether since nsAnimationManager
and nsTransitionManager has an AnimationEventDispatcher respectively.  In the
next patch we move AnimationEventDispatcher into nsPresContext, i.e. each
document has an AnimationEventDispatcher without the distinction between
CSS animations and transitions.

Note that, after this patch, we copy all members in InternalTransitionEvent and
InternalAnimationEvent in the copy-constructor of AnimationEventInfo, this
will be fixed once WidgetEvent has move-constructor and move-assignment
(bug 1433008).

MozReview-Commit-ID: 5JAh6N7C6ee

--HG--
extra : rebase_source : 50da76f51cf65cdd1245d93d8b48aaf0ae0ec94b
2018-01-27 21:17:27 +09:00
Hiroyuki Ikezoe 45ef4d82a6 Bug 1415780 - Split AnimationEventDipatcher into an independent file. r=birtles
MozReview-Commit-ID: Fcqtu7G400Z

--HG--
extra : rebase_source : 50de08148dcd4e4db0ea9a9ad1b501718852ca78
2018-01-27 21:17:27 +09:00
Hiroyuki Ikezoe 7fd0af8304 Bug 1415780 - Rename DelayedEventsDispatcher to AnimationEventDispatcher. r=birtles
We plan to use this class to dispatch web animation API events as well
(bug 1354501).

MozReview-Commit-ID: 7DMmc0aJzJ5

--HG--
extra : rebase_source : 445428771238ad31697cede8afbab35c1144a422
2018-01-27 21:17:27 +09:00
Hiroyuki Ikezoe 0340a8a1ca Bug 1415780 - Drop the comment for nsAnimationManager::DispatchEvents(). r=birtles
The comment is no longer correct since bug 1180125.

MozReview-Commit-ID: A4NWgmwAOFt

--HG--
extra : rebase_source : 57471f99bcbef86bf211692eee8cf06513f4b60a
2018-01-27 21:17:26 +09:00
Hiroyuki Ikezoe 2bb54f7aa1 Bug 1415780 - Move AnimationCollection::PseudoTypeAsString into nsCSSPseudoElements. r=birtles
It's not need to be a template function since the function is independent from
AnimationType.

MozReview-Commit-ID: 13WkRIfaQbZ

--HG--
extra : rebase_source : 5df3eb22dc2785b43718f388a9a32915a18c8be2
2018-01-27 21:17:26 +09:00
Hiroyuki Ikezoe 357f94c98c Bug 1415780 - Don't count all observers for nsRefreshDriver. r=smaug
We just need information whether there is still an observer or not in most
cases.  The only case we need to know the count is in an assertion in the
dtor of nsRefreshDriver.  In the dtor we are checking there remains no
observers other than early runners.

Note that the order in HasObserver() was adjusted to reflect that we check
boolean flag first (mViewManagerFlushIsPending) and subsequently check observer
which is likey happen to.  mFrameRequestCallbackDocs should have checked prior
to mResizeEventFlushObservers though.

MozReview-Commit-ID: E1qplusqw1Y

--HG--
extra : rebase_source : ebd9e6eb08952df954c55860638233c9a8729856
2018-01-27 21:17:26 +09:00
Hiroyuki Ikezoe f4d1fdc0b1 Bug 1415780 - Undef GetCurrentTime in the template function that uses Animation::GetCurrentTime. r=birtles
MozReview-Commit-ID: DaOZtYRx4Ud

--HG--
extra : rebase_source : 40f4465e39e5cc0d846989ab25bf264547778aac
2018-01-27 21:17:26 +09:00
Tom Ritter 59cfa9d5ce Bug 1432319 Bump MinGW version to incorporate Process Mitigation structs needed by the sandbox r=froydnj
MozReview-Commit-ID: HnYuQa8DflY

--HG--
extra : rebase_source : ed06ff4ffc4938a861afaec833537676e32e1907
2018-01-27 19:44:45 -06:00
CYBAI 1824d90740 servo: Merge #19889 - script: Move `style` as Element method (from CYBAI:style-inside-element); r=emilio
r? emilio

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #19886
- [x] These changes do not require tests because it should not break anything

Source-Repo: https://github.com/servo/servo
Source-Revision: 64c514ac3a54254720440d869c1c739f7b2a6802

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 11acd8b191d15e680de77e244c9127ad8f95c100
2018-01-28 12:00:45 -06:00
Aneesh Agrawal 0e0e7a2324 servo: Merge #19882 - Move global CI environment variables to servo (from aneeshusa:move-global-env-vars-to-servo); r=jdm
Migrate RUST_BACKTRACE out of saltfs.
SCCACHE_IDLE_TIMEOUT has already been migrated.

<!-- 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
- [x] `./mach test-tidy` does not report any errors
- [x] These changes help with servo/saltfs#770 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because they change the CI configuration

<!-- 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. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 1cb824d48e832b2e11b5e7341b188ad579b43111

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 1cc4d753a0a36683d0665a6adb7fd68d1fa5f65a
2018-01-28 11:01:23 -06:00
Aneesh Agrawal 36105822c1 servo: Merge #19883 - Re-enable sccache for Linux builds (from aneeshusa:reenable-sccache-partially); r=jdm
As far as I know, sccache is working properly
on the non-cross-compiling Linux builders.
For safety, only enable it for the builders that run on PRs,
to avoid breaking our nightly generation and scheduled test runs.

This will also allow testing new versions of sccache more easily.
This implements my suggestion from https://github.com/servo/servo/pull/19858#issuecomment-360514782, and should also let us
handle testing a new sccache: https://github.com/rust-lang/rust/issues/42867#issuecomment-358692077 (our current version of sccache [seems to be 2018-01-09](f50214b8fa/servo-build-dependencies/ci-map.jinja (L5))).

<!-- 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
- [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 they change the CI configuration

<!-- 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. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 78ffce1cbe5fcce4d057b69c3cbf0cd2bc2b449c

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 04b98e4452ebe655c59d54f42827b6f3c29b0cd9
2018-01-28 10:17:02 -06:00
Jon Leighton ec2ff2cabb servo: Merge #19881 - Add layout RPC query for getting an element's style (from jonleighton:issue-19811); r=emilio
This enables us to implement Element::has_css_layout_box() in a more
direct way, and also enables us to remove some of the existing more
specific queries.

Fixes #19811.

r? @emilio

Source-Repo: https://github.com/servo/servo
Source-Revision: 2a46067587d63aec176621ab3b6112ef5200a248

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 715f36d9bedb88b8bba29eff16913cb31a426305
2018-01-28 05:52:56 -06:00
Nico Grunbaum c4a0cebf58 Bug 1433576 - bring rtp sources js timestamp and timebase up to spec r=jib
MozReview-Commit-ID: 2joFQ41NaMp

--HG--
extra : rebase_source : e424cbbeb00d0b152609a4390d43d5ca6e4aceb7
2018-01-26 13:40:30 -08:00
J.C. Jones c2ff67b667 Bug 1433525 - Web Authentication Client Data needs the "type" field r=keeler,smaug
The Web Authentication CollectedClientData is missing the type field, which
is just a simple string. (The editor's draft also removes hashAlgorithm, but
let's not get ahead of ourselves...)

Add in that simple string. This was found at interop testing.

MozReview-Commit-ID: DlawLyHTYhB

--HG--
extra : rebase_source : 6cdd8e14161dc4aea5bfd1baf60c7384219ba951
2018-01-26 10:41:37 -08:00
Gary Kwong 4a6be8beb3 Bug 1433597 - Remove unused --wasm-check-bce flag, r=luke 2018-01-26 16:58:00 +02:00
Ted Campbell 65cc03ef2a Bug 1433837 - Cleanup JSObject slots_ initialization r=jandem
js::Allocate<JSObject> now only sets slots_ if nDynamicSlots is
non-zero. This avoids spurious writes for other types and is now
consistent with JIT code.

MozReview-Commit-ID: 3spPMFj7Fxz

--HG--
extra : histedit_source : f01b0e2c54c85ec6b21f42ed564e714d0366cae0
2018-01-29 08:20:00 +02:00
Ted Campbell 79e38596f4 Bug 1433837 - Cleanup JSObject initialization nits r=jandem
Make JSObject initializations more consistent accross different types.

MozReview-Commit-ID: Ixbr1bfM0hj

--HG--
extra : histedit_source : a9d5a9bc53f169939caf6c4a2e463bbb0b90f199
2018-01-28 20:31:00 +02:00
Ted Campbell 613ec551bd Bug 1433837 - Delay MetadataBuilder for UnboxedObject and TypedObject r=jandem
Avoid NewObjectMetadata hook while OutlineTypedObjects have a
uninitialized owner pointer.

MozReview-Commit-ID: Hn0HmnEUmz5

--HG--
extra : histedit_source : 64387c21c2d8a27ffe55f5ac407fa6f8ef3201b5
2018-01-28 20:25:00 +02:00
Ted Campbell d172f1db6e Bug 1433837 - Objects that are isNative should extend NativeObject r=jandem
MozReview-Commit-ID: E3p4j45xnc7

--HG--
extra : histedit_source : 102760de3a858a80f22975d7f9118561137d21a7
2018-01-28 20:23:00 +02:00
Aditya Bharti 2d08e81fe6 Bug 1428888 - Allow C++ to accumulate multiple samples into a categorical histogram in one call r=chutten
Telemetry::Accumulate now supports two new signatures: Accumulate(HistogramId, nsTArray stringLabels) and
Accumulate(nsTArray enumValues). In the stringLabels case, if the array contains an invalid label, then no
samples are accumulated at all. In the enumValues array case, the class template ensures that we do not have
a mismatch of labels in the array, since the enumValues class is tied to the id of the histogram we want to
accumulate to.
2018-01-28 16:53:40 +05:30
Marco Castelluccio 1d7efd79f2 Bug 1433610 - Increase number of chunks for mochitest-devtools-chrome on windows10-64-ccov. r=jmaher
--HG--
extra : rebase_source : 144a31db13253fcfeb2d4a33b94fc2a004d73f7a
2018-01-29 11:51:17 +01:00
Boris Zbarsky 9da3878bc9 Bug 1418076 part 11. Eliminate the nsIDOMHTMLDocument interface. r=mystor
MozReview-Commit-ID: 4lEcUeenbg3
2018-01-26 01:03:25 -05:00
Boris Zbarsky 5d7b053f45 Bug 1418076 part 10. Get rid of JS uses of Ci.nsIDOMHTMLDocument. r=mystor
MozReview-Commit-ID: IT2OEbCODTX
2018-01-26 01:01:38 -05:00
Boris Zbarsky d3dc65034f Bug 1418076 part 9. Eliminate remaining uses of nsIDOMHTMLDocument. r=mystor
MozReview-Commit-ID: DqjJPKKRYOx
2018-01-26 01:01:25 -05:00
Boris Zbarsky 94892c7519 Bug 1418076 part 8. Remove remaining, unused, nsIDOMHTMLDocument methods. r=mystor.
MozReview-Commit-ID: AshWkds4I8Z
2018-01-26 01:01:16 -05:00
Boris Zbarsky 7fdae0afd0 Bug 1418076 part 7. Get rid of nsIDOMHTMLDocument's color attributes. r=mystor
MozReview-Commit-ID: 4jgoGqWyymA
2018-01-26 01:01:08 -05:00
Boris Zbarsky aa98a6d46b Bug 1418076 part 6. Get rid of nsIDOMHTMLDocument's queryCommand* methods. r=mystor
MozReview-Commit-ID: Jch0wfisBZa
2018-01-26 01:00:58 -05:00
Boris Zbarsky 311e6cf3f4 Bug 1418076 part 5. Get rid of nsIDOMHTMLDocument's designMode attribute. r=mystor
MozReview-Commit-ID: 8CB3OZBHa9q
2018-01-26 01:00:49 -05:00
Boris Zbarsky 48ae6aca91 Bug 1418076 part 4. Get rid of nsIDOMHTMLDocument's open/close/write/writeln methods. r=mystor
MozReview-Commit-ID: 4HbZljdQR2I
2018-01-26 01:00:41 -05:00
Boris Zbarsky ff483d92c6 Bug 1418076 part 3. Get rid of nsIDOMHTMLDocument's head attribute. r=mystor
MozReview-Commit-ID: Cj7l9TqmAby
2018-01-26 01:00:33 -05:00
Boris Zbarsky 9350bc9e65 Bug 1418076 part 2. Get rid of nsIDOMHTMLDocument's cookie attribute. r=mystor
MozReview-Commit-ID: JLW7dFPbY3m
2018-01-26 01:00:20 -05:00
Boris Zbarsky 3c11d297e3 Bug 1418076 part 1. Get rid of nsIDOMHTMLDocument's domain attribute. r=mystor
MozReview-Commit-ID: Igf83iosX8L
2018-01-26 01:00:04 -05:00
Cosmin Sabou 9a65a40178 Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Boris Zbarsky 2e85a4c2dc Bug 1276438 part 7. Get rid of nsIDOMHTMLDocument::GetBody. r=mystor
MozReview-Commit-ID: 5XyZc8hQndQ
2018-01-26 00:53:35 -05:00
Boris Zbarsky 8c61d57bca Bug 1276438 part 6. Stop using nsIDOMHTMLDocument::GetBody. r=mystor
MozReview-Commit-ID: EcDTnByuZsm
2018-01-26 00:53:35 -05:00
Boris Zbarsky e2482fb957 Bug 1276438 part 5. Get rid of IsCurrentBodyElement. r=mystor
MozReview-Commit-ID: JMBFmVoMiMS
2018-01-26 00:53:35 -05:00
Boris Zbarsky a2a8a03a92 Bug 1276438 part 4. Move the .body getter from HTMLDocument to Document. r=mystor
The "body" part of responsexml-document-properties.htm is not really per current
spec text, and fails in every non-Firefox browser, and in Firefox after this
change.  https://github.com/w3c/web-platform-tests/issues/2668 tracks this issue
to some extent, but if all browsers are going to align here anyway, we should
just adjust the test and move on.

MozReview-Commit-ID: HTLfggvi5LL
2018-01-26 00:53:34 -05:00
Boris Zbarsky e8182afa14 Bug 1276438 part 3. Align the .body setter with the spec a bit better. r=mystor
There are two changes here:

1) We allow setting .body even if the root element is not an <html:html>.  This
is what the spec says to do, and what we used to do before the changes in bug
366200.  No tests for this yet, pending
https://github.com/whatwg/html/issues/3403 getting resolved.

2) We use GetBody(), not GetBodyElement(), to look for an existing thing to
replace.  This matters if there are <frameset>s involved.

MozReview-Commit-ID: JCaQGHKgzE7
2018-01-26 00:52:40 -05:00
Boris Zbarsky 8d8cae1597 Bug 1276438 part 2. Move the implementation of the .body setter from nsHTMLDocument to nsIDocument. r=mystor
MozReview-Commit-ID: EJAZfrXC0QJ
2018-01-26 00:36:57 -05:00
Byron Campen [:bwc] 4cfe4f3aa5 Bug 1411977 - Part 6: Don't unwind the stack when firing onsignalingstatechange. r=drno
MozReview-Commit-ID: 5qAlxKFzKQk

--HG--
extra : rebase_source : 6757a3c16e974cf9ebd5c1216c40bd25369880e5
2018-01-25 10:09:17 -06:00
Byron Campen [:bwc] be3a417b19 Bug 1411977 - Part 5: Don't pass a pointer to a temporary to NotifyDataChannel_m. r=drno
MozReview-Commit-ID: 3ydeM9U1P4b

--HG--
extra : rebase_source : aad2510f6179d5cc3218b0b352540072a9dd2561
2018-01-25 10:04:55 -06:00
Byron Campen [:bwc] 83c9be0a4e Bug 1411977 - Part 4: Only try to dispatch the release of TransportLayers when there is a target thread. r=drno
MozReview-Commit-ID: 8fOkZwcxKHy

--HG--
extra : rebase_source : 29eafb58f0207e2d0b973ce8e846ce437a23317e
2018-01-25 09:55:12 -06:00
Byron Campen [:bwc] 2dc55eb3d7 Bug 1411977 - Part 3: Clear the SingletonThreadHolder _after_ thread shutdowns are finished, not before they are started. r=drno
MozReview-Commit-ID: Hgak51ReEOO

--HG--
extra : rebase_source : eee5baeb6b9e2c2310f86dcad1f8fa825969c827
2018-01-25 09:54:07 -06:00
Byron Campen [:bwc] e066f9f6f4 Bug 1411977 - Part 2: Stop using sync dispatch and queue jumping with SingletonThreadHolder. r=drno
MozReview-Commit-ID: F2BbHI2kiK1

--HG--
extra : rebase_source : 0f6aef6343a71bce29327d79766b8b84a2cfa1d2
2018-01-25 09:53:04 -06:00
Byron Campen [:bwc] aaf0e9394c Bug 1411977 - Part 1: Stop queue jumping in RUN_ON_THREAD. r=drno
MozReview-Commit-ID: GaCcLZuo7uy

--HG--
extra : rebase_source : f0f3330aef0f8f41038c070fea42d6631a6bb8a6
2018-01-25 08:32:58 -06:00
Boris Zbarsky 672340ede6 Bug 1276438 part 1. Move the implementation of the .body getter from nsHTMLDocument to nsIDocument. r=mystor
MozReview-Commit-ID: BhQuGS1NdmQ
2018-01-25 06:55:47 -05:00
Boris Zbarsky fba82e4ebc Bug 1432977 part 3. Remove nsIDOMHTMLElement's offsetWidth/Height attributes. r=mccr8
MozReview-Commit-ID: EoSwBkeGj60
2018-01-29 23:40:11 -05:00