Anthony Ramine
b8c55e7da6
Set have_metadata for audio elements too
...
We don't store video-specific metadata anymore, and we don't ignore audio-specific
metadata anymore. We now just acknowledge that we received some metadata.
2017-10-04 11:28:47 +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
c52fd0a780
Rename MutNullableJS<T> to MutNullableDom<T>
2017-09-26 09:49:02 +02:00
Anthony Ramine
0e3c54c191
Rename dom::bindings::js to dom::bindings::root
2017-09-26 02:19:05 +02:00
Anthony Ramine
40a72f3e83
Decouple media load blockers from their resource URL
...
A media element can delay the document's load event without having a resource URL,
and it can even block it while being inserted into a different document AFAIK.
2017-09-25 13:04:52 +02:00
Anthony Ramine
5245931dc2
Implement the error path for source children of media elements
...
This removes some test timeout.
2017-09-25 00:35:35 +02:00
Anthony Ramine
49dd04cd8b
Return a promise from HTMLMediaElement::Play
2017-09-23 12:01:43 +02:00
Anthony Ramine
6c5fe041d7
Ignore media-related tasks when starting the media load algorithm
2017-09-23 12:01:39 +02:00
Anthony Ramine
9aaa42b061
Remove some obsolete comments
2017-09-23 10:01:24 +02:00
Anthony Ramine
6c9fb5ae7a
Introduce TaskOnce
...
Having both TaskBox and TaskOnce allows us to remove the superfluous inner boxing
from CancellableTask<T>.
2017-09-20 10:37:09 +02:00
Anthony Ramine
0e2249f07f
Clean up HTMLMediaElement::Play
2017-09-19 14:26:11 +02:00
Anthony Ramine
7e835c351e
Handle invalid MIME types in HTMLMediaElement::CanPlayType
2017-09-19 14:26:10 +02:00
Anthony Ramine
bd9486bbe2
Clean up code for the media element load algorithm
2017-09-19 14:26:09 +02:00
Anthony Ramine
e8d7eaf8a3
Clean up code of the resource fetch algorithm
2017-09-19 14:26:07 +02:00
Anthony Ramine
5352697558
Clean up the resource selection algorithm a bit
2017-09-19 14:26:06 +02:00
Anthony Ramine
e4cd6be831
Clean up HTMLMediaElement::change_ready_state
2017-09-19 14:26:05 +02:00
Anthony Ramine
30a1d3f617
Use task! for the dedicated media source failure steps
2017-09-18 02:47:11 +02:00
Anthony Ramine
91c2865e36
Use task! for notifying about playing
2017-09-18 02:47:09 +02:00
Anthony Ramine
5412767f46
Introduce a task! macro and use it for internal pause steps
2017-09-18 02:47:06 +02:00
Anthony Ramine
46628fba05
Move Task to its own module
2017-09-18 02:47:04 +02:00
Anthony Ramine
56117d3185
Rename Runnable to Task
...
The changes are:
* `*Runnable` -> `*Task`;
* `RunnableMsg` -> `Task`;
* `RunnableWrapper` -> `TaskCanceller`;
* `MainThreadRunnable` -> `MainThreadTask`;
* `wrap_runnable` -> `wrap_task`;
* `get_runnable_wrapper` -> `task_canceller`;
* `handler` -> `run`;
* `main_thread_handler` -> `run_with_script_thread`.
2017-09-16 15:43:26 +02:00
Anthony Ramine
518e34e7c8
Use an enum for the ready state of media elements
2017-09-14 15:30:20 +02:00
Anthony Ramine
86b25cd6b5
Use an enum for the network state of media elements
2017-09-14 14:23:06 +02:00
Anthony Ramine
87bb5ba381
Fix some HTMLMediaElement spec links
2017-09-14 13:52:25 +02:00
Anthony Ramine
a3044a3755
Document HTMLMediaElement fields and cleanup some algos
2017-09-07 13:45:42 +02:00
Anthony Ramine
e169acd1d6
Put HTMLMediaElement first in its module
2017-09-06 13:50:56 +02:00
Anthony Ramine
62c73b61b7
Do not NIH queueing a task to fire an event in htmlmediaelement
2017-09-04 16:14:04 +02:00
toidiu
99e4504f85
move name implementation as default implementation to the trait and remove overrides.
2017-09-03 16:30:48 -04:00
Clément DAVID
c5fe235112
order derivable traits lists
...
Ignoring :
- **generated**.rs
- python/tidy/servo_tidy_tests/rust_tidy.rs
2017-08-23 21:38:44 +02:00
Fausto Núñez Alberro
6032940fb8
Change RequestInit origin type to ImmutableOrigin
2017-07-16 21:44:33 +02:00
Gregory Terzian
a8390aea24
use microtasks to await a stable state
2017-05-19 17:29:16 +08:00
Christian Poveda
62821a6915
Solving merge conficts related to the html5ever_atoms -> html5ever change
2017-05-03 12:57:49 -05:00
Christian Poveda
875e422fe6
Changed all prefixes from DOMString to the atomic Prefix from html5ever
2017-05-03 10:17:42 -05:00
Simon Sapin
6c518c89b9
Upgrade to html5ever 0.16
2017-05-02 19:24:28 +02:00
Anthony Ramine
31e9d81c0f
Make #[dom_struct] a proc_macro attribute
2017-02-24 01:50:51 +01:00
Ms2ger
1bc0862214
Remove and allow some dead code.
2016-12-22 16:06:22 +01:00
Simon Sapin
53f5023685
Fix/silence some warnings
2016-12-20 07:07:06 +01:00
Anthony Ramine
1327ebd52f
Remove HeapGCValue
...
It could be used to have mutable JSVal fields without GC barriers.
With the removal of that trait, MutHeap and MutNullableHeap can respectively
be replaced by MutJS and MutNullableJS.
2016-12-12 10:47:54 -10:00
Corey Farwell
449f6337d4
Rename Reflectable
to DomObject
.
...
Fixes https://github.com/servo/servo/issues/8473 .
2016-12-08 08:50:35 -10:00
Pu Xingyu
91f3d4f474
Remove redundant url clones
...
They are now redundant since now document.url() returns a struct rather
than a reference.
2016-11-18 12:39:22 +08:00
Emilio Cobos Álvarez
913c874cb5
Urlmageddon: Use refcounted urls more often.
2016-11-17 18:34:23 +01:00
Keith Yeung
72cb856e31
Properly implement TaskSource for NetworkingTaskSource
2016-11-11 14:50:42 -08:00
Simon Sapin
53b638c0e2
Update to string-cache 0.3
2016-11-03 16:23:05 +01:00
Corey Farwell
2944c8d964
Make make_enumerated_getter prettier again.
...
Fixes https://github.com/servo/servo/issues/4723 .
2016-10-12 23:00:07 -04:00
Ms2ger
490fff2a7f
Use the fetch stack for HTMLMediaElement.
2016-10-10 17:36:46 +02:00
Anthony Ramine
44ca9f3d71
Make TaskSource::queue take a &GlobalScope
2016-10-06 21:35:52 +02:00
Anthony Ramine
fcb59d3057
Make reflect_dom_object take a &GlobalScope
2016-10-06 20:59:09 +02:00
Gregory
3e3349599e
checking for metadata in htmlmediaelement::response_complete
...
updated test expectations
reverting changes to webgl test
2016-09-27 19:36:36 +08:00
Ying-Ruei Liang(KK)
55a2270e16
Bring referrer policy delivery to <a> and <link> via rel attribute
2016-09-20 21:17:37 +08:00