Commit graph

8362 commits

Author SHA1 Message Date
Tim Taubert
a338fbc4b5 Use HashMap::find_with_or_insert_with in DocumentHelpers::register_named_element (fixes #3193) 2014-10-06 03:28:15 +02:00
Manish Goregaokar
427b3b7733 Remove Traceable/Untraceable entirely 2014-10-05 22:58:00 +05:30
Manish Goregaokar
b7c3a1cd5d Remove Untraceable from utils.rs 2014-10-05 22:53:52 +05:30
Manish Goregaokar
dcbb941300 Remove Traceable from callback.rs 2014-10-05 22:53:52 +05:30
Manish Goregaokar
707a2870fa Remove Traceable/Untraceable from page.rs 2014-10-05 22:53:50 +05:30
Manish Goregaokar
22567762a0 Remove Traceable/Untraceable from window.rs 2014-10-05 22:39:24 +05:30
Manish Goregaokar
a8f96ddfb2 Remove Traceable/Untraceable from node.rs 2014-10-05 22:36:08 +05:30
Manish Goregaokar
5c8a45d74e Remove Traceable/Untraceable from xmlhttprequest.rs 2014-10-05 22:32:10 +05:30
Manish Goregaokar
87df84fcf8 Remove Untraceable from workerlocation.rs 2014-10-05 22:27:54 +05:30
Manish Goregaokar
0fdee70cbf Remove Untraceable from workerglobalscope.rs 2014-10-05 22:27:52 +05:30
Manish Goregaokar
16d12d0a82 Remove Traceable from urlsearchparams.rs 2014-10-05 22:26:52 +05:30
Manish Goregaokar
1d2c15e657 Remove Traceable from uievent.rs 2014-10-05 22:26:50 +05:30
Manish Goregaokar
a8997e9638 Remove Untraceable from treewalker.rs 2014-10-05 22:23:02 +05:30
Manish Goregaokar
df8b8ab24f Remove Traceable from mouseevent.rs 2014-10-05 22:22:59 +05:30
Manish Goregaokar
d084523a84 Remove Traceable from messageevent.rs 2014-10-05 22:16:41 +05:30
Manish Goregaokar
b322db8866 Remove Untraceable from htmlimageelement.rs 2014-10-05 22:16:41 +05:30
Manish Goregaokar
dcda2cb94b Remove Traceable from htmliframelement.rs 2014-10-05 22:16:41 +05:30
Manish Goregaokar
c7bf94680f Remove Traceable from htmlcanvaselement.rs 2014-10-05 22:16:38 +05:30
Manish Goregaokar
d9d3ddc865 Remove Traceable from formdata.rs 2014-10-05 22:13:16 +05:30
Manish Goregaokar
25af998842 Remove Traceable from eventtarget.rs 2014-10-05 22:13:16 +05:30
Manish Goregaokar
7e1e76f8b0 Remove Traceable from event.rs 2014-10-05 22:13:14 +05:30
Manish Goregaokar
96f6c2fd67 Remove Traceable from element.rs 2014-10-05 22:09:12 +05:30
Manish Goregaokar
4f362ab5e6 Remove Untraceable/Traceable from document.rs 2014-10-05 21:58:59 +05:30
Manish Goregaokar
ad84dd7e47 Remove Untraceable from canvasrenderingcontext2d.rs 2014-10-05 21:36:19 +05:30
Manish Goregaokar
7defa5e941 Remove Untraceable from dedicatedglobalworkerscope.rs 2014-10-05 21:36:17 +05:30
Manish Goregaokar
63dd3070d1 Remove Traceable from customevent.rs 2014-10-05 21:33:45 +05:30
Manish Goregaokar
4f574b4732 Remove Traceable from characterdata.rs 2014-10-05 21:33:43 +05:30
Manish Goregaokar
8de00ab999 Remove Traceable from browsercontext.rs 2014-10-05 21:12:26 +05:30
Manish Goregaokar
b908d5accb Remove Traceable from attr.rs 2014-10-05 21:12:26 +05:30
Ms2ger
31f8100b9d Cleanup URL handling in ScriptTask::load a bit.
This should make it clearer that we always pass a URL to Document::new, and
avoids an unnecessary unwrap() call.
2014-10-04 15:19:08 +02:00
Ms2ger
208afda890 Stop reference-counting the ScriptTask.
The ScriptTask is owned by the proc in ScriptTaskFactory::create.

We started using a managed box for what would eventually become ScriptTask in
d21d27e086.
2014-10-04 13:14:23 +02:00
Andrew Guertin
815a701455 Replace Cell<Option<JS<T>>> with MutNullableJS<T>
https://github.com/servo/servo/issues/3564
2014-10-03 20:08:05 -04:00
Ms2ger
75ee535e3c Use or_else in Document.find_fragment_node. 2014-10-03 09:20:54 +02:00
Ms2ger
c96018152f Cleanup Document.find_fragment_node. 2014-10-02 19:54:12 +02:00
Ms2ger
4cc24e727b Clear the fragment_name field when resizing.
This reinstates the behaviour from before the change in
a1bf49c1ce.
2014-10-02 18:07:41 +02:00
Ms2ger
7508ca94b3 Remove the fragment_node field from Page (fixes #3543).
Since Page isn't reflected, it cannot be rooted, and pointers to JS-managed
objects inside it are not guaranteed to be traced. This may cause the pointer
to become dangling.
2014-10-02 15:31:26 +02:00
Ms2ger
5d335fd524 Move find_fragment_node to Document. 2014-10-02 12:04:05 +02:00
Josh Matthews
7401cd0aeb Split a long line. 2014-10-01 15:40:37 -04:00
Josh Matthews
8112859d55 Disallow toggling radio buttons. Use generated content for checkboxes and radio buttons. Switching to the glyph 0 for the average advance width. 2014-10-01 15:37:40 -04:00
Josh Matthews
f70bb68503 Implement simple layout for text, button, radio, and checkbox inputs. Implement simple interaction for checkboxes and radio buttons. 2014-10-01 15:35:42 -04:00
Josh Matthews
08cac68d5a Check if the immediate node is an element before looking at ancestors when clicking, and flush pending layout changes after dispatching the event. 2014-10-01 15:03:15 -04:00
bors-servo
bae5440689 auto merge of #3531 : Ms2ger/servo/MutNullableJS, r=Ms2ger
Extracted from #3527.
2014-10-01 09:09:28 -06:00
Josh Matthews
54fcab61d6 Implement MutNullableJS for mutable, nullable member pointers to DOM objects. 2014-10-01 17:06:23 +02:00
Cameron Zwarich
0ef191b37a Remove an extra lifetime parameter on PrivateTreeWalkerHelpers 2014-10-01 02:07:52 -07:00
Cameron Zwarich
72656717d4 Remove an extra lifetime parameter on NodeHelpers 2014-10-01 02:07:46 -07:00
Cameron Zwarich
78791af7d6 Convert the NodeHelpers trait to use self methods 2014-09-30 23:42:03 -07:00
Cameron Zwarich
8b0361e251 Remove an unused lifetime parameter 2014-09-30 21:26:19 -07:00
Cameron Zwarich
79b4ec99b4 Convert TNode / TElement to use self methods rather than &self 2014-09-30 21:26:19 -07:00
Cameron Zwarich
1581c383bb Convert the remaining ElementHelpers methods to take self 2014-09-30 21:26:19 -07:00
Cameron Zwarich
ccc5d976f7 Refine a lifetime parameter on TElement's get_local_name 2014-09-30 21:22:24 -07:00