Alan Jeffrey
a43c842099
The constellation notifies the script thread about documents becoming inactive, active and fully active.
2017-01-27 12:39:43 -06:00
Anthony Ramine
d8238646a0
Kill ServoParser::pipeline
2017-01-27 12:12:21 +01:00
Anthony Ramine
90839305ae
Reformat dom::servoparser
2017-01-25 13:49:36 +01:00
Anthony Ramine
e9feb20775
Simplify processing of deferred scripts
...
It is now done on-demand when a deferred script finished loading, and when
the page source finished loading.
2017-01-20 16:41:49 +01:00
Anthony Ramine
0f244d6948
Mark the page source as loaded only after parsing is done
2017-01-19 16:17:14 +01:00
Anthony Ramine
44fd53fd48
Reorder some steps in ServoParser::finish
2017-01-17 14:25:23 +01:00
Anthony Ramine
70ed3e7006
Remove ScriptThread::parsing_complete
2017-01-17 14:24:37 +01:00
karenher
db2082bc6e
Store parser's current line when script elements are created.
...
Use the newly stored line as the starting line number when
evaluating JS. This ensures that inline scripts will report
errors with meaningful line numbers.
2017-01-11 21:11:00 -05:00
Anthony Ramine
30f0553ac7
Introduce PendingScript
...
This moves scripts' loading results in Document, instead of maintaining them
behind a DOMRefCell in each HTMLScriptElement.
2017-01-11 17:37:19 +01:00
Anthony Ramine
438182a7de
Introduce Document::has_pending_parsing_blocking_script
2017-01-11 14:52:40 +01:00
Anthony Ramine
d853e7fee9
Unify text insertion when parsing HTML and XML
2017-01-10 11:16:42 +01:00
Anthony Ramine
0cb09468a0
Properly insert text in document when parsing
...
If the last child of a node is a Text child and we are inserting text in that node,
we need to append it to that Text child. Doing that means that
HTMLStyleElement::children_changed gets called less frequently, but that's not a
problem during parsing thanks to the pop hook.
2017-01-07 19:21:02 +01:00
Anthony Ramine
8caa564540
Update xml5ever to 0.3.0
2017-01-07 18:10:30 +01:00
Ms2ger
ec5d08c887
Pass the Document's origin to its constructor.
...
CC #10963 .
2016-12-23 11:15:46 +01:00
Julien Wajsberg
d024787188
Expose Quirks Mode information in the style shared context r=emilio
2016-12-17 11:15:32 -08:00
Alan Jeffrey
9be4fd56ce
Removed util.
2016-12-14 18:04:37 -06: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
Anthony Ramine
620a67ff14
Mark JSTraceable and its method as unsafe
2016-12-06 13:15:06 -10:00
Anthony Ramine
a377caa7e9
Make Element::prefix return an Option<&DOMString>
2016-12-01 11:55:12 +01:00
Anthony Ramine
03e04179ae
Refactor fragment parsing
2016-12-01 11:55:06 +01:00
Anthony Ramine
4d93ee134c
Implement document.write ( fixes #3704 )
...
This is a bit crude because of some missing utility methods on BufferQueue.
2016-11-28 23:05:56 +01:00
Anthony Ramine
c801327eab
Rewrite how parser handles script scheduling
2016-11-26 22:58:20 +01:00
Anthony Ramine
a3da819d10
Make ServoParser::pending_input hold onto a BufferQueue
2016-11-18 10:12:06 +01:00
Emilio Cobos Álvarez
913c874cb5
Urlmageddon: Use refcounted urls more often.
2016-11-17 18:34:23 +01:00
Anthony Ramine
15e8e92540
Reorganise ServoParser
...
Free-standing fonctions parse_html and friends are now static methods
on ServoParser, and the HTML and XML tokenizers have been moved to private
submodules.
2016-11-14 10:21:07 +01:00
Anthony Ramine
330263bf2c
Update html5ever to 0.10.1
2016-11-10 14:58:10 +01:00
Simon Sapin
53b638c0e2
Update to string-cache 0.3
2016-11-03 16:23:05 +01:00
Anthony Ramine
7cb0955706
Update html5ever to 0.8
2016-11-03 10:58:34 +01:00
Ms2ger
623ab22468
Use fetch in ScriptThread.
...
I did not find the prose that defines the creation of the request in the HTML
standard (if it exists).
2016-11-02 09:25:57 +01:00
Anthony Ramine
b6d6b3b7f3
Bump html5ever to 0.5.5
2016-10-17 17:22:07 +02:00
Gregory
f1d0c8b8df
switch to using DOMRefCell<VeqDeque<String>> for ServoParser::pending_input
2016-10-16 18:39:37 +08:00
Anthony Ramine
0b3ab875f4
Remove intrinsic Root::r()
2016-10-11 19:44:32 +02:00
Anthony Ramine
4b813e0bdc
Merge script::parse and script::dom::servoparser
2016-10-11 16:42:01 +02:00