Guillaume Gomez
3d0b7fbc41
Implement EventListenerOptions for EventTarget
...
For now, only "capture" is supported.
2017-09-30 02:12:35 +02:00
Anthony Ramine
f87c2a8d76
Rename Root<T> to DomRoot<T>
...
In a later PR, DomRoot<T> will become a type alias of Root<Dom<T>>,
where Root<T> will be able to handle all the things that need to be
rooted that have a stable traceable address that doesn't move for the
whole lifetime of the root. Stay tuned.
2017-09-26 09:49:10 +02:00
Anthony Ramine
577370746e
Rename DOMRefCell<T> to DomRefCell<T>
...
I don't want to do such a gratuitous rename, but with all the other types
now having "Dom" as part of their name, and especially with "DomOnceCell",
I feel like the other cell type that we already have should also follow
the convention. That argument loses weight though when we realise there
is still DOMString and other things.
2017-09-26 09:49:08 +02:00
Anthony Ramine
7be32fb237
Rename JS<T> to Dom<T>
2017-09-26 09:48:55 +02:00
Anthony Ramine
0e3c54c191
Rename dom::bindings::js to dom::bindings::root
2017-09-26 02:19:05 +02:00
Anthony Ramine
7875fea6cf
Use absolute paths in the event handlers macros
2017-09-01 11:54:09 +02:00
Emilio Cobos Álvarez
d1725b1f19
style: Replicate the list of stylesheets on the layout thread.
...
This is a patch that unifies a bit how Gecko and Stylo stylesheets work, in
order to be able to eventually move the stylesheets into the stylist, and be
able to incrementally update the invalidation map.
2017-08-18 14:31:35 +02:00
Brad Werth
557ffa979d
Rework MediaType to be an atom-based struct instead of an enum.
...
MozReview-Commit-ID: 1Tfrs9PBkhA
2017-08-09 13:25:30 -07:00
Alan Jeffrey
caa3585219
Fixed scaling artefacts in paint worklets caused by zoom and hidpi.
2017-07-20 17:25:50 -05:00
Anthony Ramine
f68e2fded9
Propagate quirks mode all the way to ParserContext
...
The quirks mode is still not properly propagated in geckolib.
2017-04-27 10:41:55 +02:00
Anthony Ramine
31e9d81c0f
Make #[dom_struct] a proc_macro attribute
2017-02-24 01:50:51 +01:00
Glenn Watson
30ff2f8f0d
Introduce CSSPixel as a replacement for ViewportPx and PagePx.
2017-02-24 06:58:10 +10:00
Prudhvi Rampey
0c21333777
Calling matchMedia during a MQL change event will not panic
2017-02-18 20:12:19 +05:30
Pavel Potocek
0d9b4e858c
Fix #14497 : WeakMediaQueryListVec assumes its contents are still alive
2017-01-17 18:35:49 +01:00
bd339
567284189f
Spec conformance
...
Use MediaQueryListEvent instead of Event, in MediaQueryList.
2016-12-20 22:13:01 +01:00
Anthony Ramine
620a67ff14
Mark JSTraceable and its method as unsafe
2016-12-06 13:15:06 -10:00
Xidorn Quan
2733ec3bdc
Rename media_queries::MediaQueryList to MediaList
2016-11-08 13:09:31 +11:00
Ravi Shankar
6061985898
Prefer Servo-specific ToCss for all types
2016-11-07 09:14:22 +05:30
Stefan Schindler
d2c23942a8
Remove unneeded #allow(unsafe_code)
2016-11-05 17:42:29 +01:00
Corey Farwell
f447040ea9
Migrate EventTarget
event firing functions to use Atom
s.
...
This allows us to utilize more `atom` macros.
2016-11-03 17:04:30 -04:00
Corey Farwell
c3b279a4c3
Remove "fire a simple event" concept, refactor event firing API.
...
"fire a simple event" concept was removed in
https://github.com/whatwg/html/pull/1933 .
2016-11-03 15:01:07 -04:00
Jack Moffitt
138a0480fe
Implement matchMedia and MediaQueryList
...
Fixes #13376 .
2016-11-02 13:40:22 -06:00