Ms2ger
ccd9306681
Remove DerivedWrapper.
2013-11-06 18:16:31 +01:00
Ms2ger
53731b62ae
Remove Reflectable::wrap_object_shared.
2013-11-06 16:40:16 +01:00
Ms2ger
8a7448bc67
Rewrite Document creation and reflection.
2013-11-05 20:45:50 +01:00
Josh Matthews
bb97fd13f3
Add Event and EventTarget hierarchy via gross AbstractFoo mechanism.
2013-11-05 12:58:28 -05:00
Josh Matthews
7ecf5abbbd
Generate code for handling callbacks. Implement add/removeEventListener and hacky dispatchEvent proof-of-concept.
2013-11-05 12:58:28 -05:00
Ms2ger
78e51c8309
Rewrite DocumentFragment::new to current standards.
2013-11-02 22:23:44 +01:00
Ms2ger
a431202989
Rewrite Comment::new to current standards.
2013-11-02 22:10:07 +01:00
Ms2ger
da37fde44f
Rewrite Text::new to current standards.
2013-11-02 21:55:36 +01:00
Ms2ger
7700a892fc
Cleanup build_element_from_tag's signature.
2013-11-02 21:13:37 +01:00
Ms2ger
e918d4daf0
Use HTMLTitleElement::new in Document::SetTitle.
2013-11-02 20:36:50 +01:00
Josh Matthews
99a36cbeb6
Make Document a Node.
2013-10-31 13:34:44 -04:00
Ms2ger
2ca1eede9a
Implement insertBefore and reimplement appendChild.
2013-10-29 21:48:28 +01:00
Patrick Walton
baba35adc9
Revert "Make Document a Node." for breaking Acid1
...
This reverts commit 4e47d59165
.
Conflicts:
src/components/script/dom/domparser.rs
2013-10-24 15:08:09 -07:00
bors-servo
13644ccab1
auto merge of #1079 : jdm/servo/docnode, r=jdm,metajack
...
The bit I don't like about these changes is that I ended up hiding the document node from the CSS selecting/matching code, so it continues thinking of the document's first child as the root. When I tried to send the full tree including the document node to layout, the layout code refused to create any child flows. When I sent the document's first child without hiding the document, it saw inherited values for properties like font-family, and later tried to treat the document node as an Element when searching for named nodes.
2013-10-24 09:15:55 -07:00
Josh Matthews
4e47d59165
Make Document a Node.
2013-10-24 18:07:46 +02:00
Ms2ger
5d1eea5f03
Remove unused get_scope_and_cx functions.
2013-10-24 16:37:56 +02:00
bors-servo
d222443b38
auto merge of #1117 : Ms2ger/servo/HTMLCollection, r=kmcallister
2013-10-24 06:22:16 -07:00
bors-servo
21270738ae
auto merge of #1102 : Ms2ger/servo/dead-document-code, r=jdm
...
I don't think it's useful to keep those lying around, in particular because we should never even implement some of those (`mozHidden`, `mozVisibilityState`, …)
2013-10-24 05:40:24 -07:00
Ms2ger
8cb4976136
Cleanup HTMLCollection binding.
2013-10-23 20:59:14 +02:00
Jack Moffitt
94202661c0
Update to latest Rust.
2013-10-21 17:38:34 -06:00
Ms2ger
e418e4d830
Remove no-op implementations from Document and HTMLDocument.
2013-10-21 19:51:12 +02:00
Ms2ger
b90766404c
Replace Document::{with_base, with_mut_base} by Document::{document, mut_document}.
2013-10-21 17:57:44 +02:00
Ms2ger
364256e359
Replace Node::{with_base, with_mut_base} by Node::{node, mut_node}.
2013-10-21 15:58:16 +02:00
Ms2ger
321e0373fa
Merge BindingObject and Reflectable.
2013-10-18 17:02:16 +02:00
Ms2ger
3da1a206d8
Remove DerivedWrapper::wrap_shared, as it's unused.
2013-10-18 15:56:35 +02:00
Ms2ger
c08e4fe36b
Make Node.owner_doc private.
2013-10-17 18:44:26 +02:00
Ms2ger
25cae74093
Remove unused aTriedToWrap argument.
2013-10-17 16:43:28 +02:00
Simon Sapin
62f1f03c16
Move Element::get_attr to a trait defined in util::tree
...
… and add a get_local_name() method to that trait.
2013-10-16 18:10:39 +01:00
Ms2ger
60b6d1bb57
Issue #1071 - Ensure that Documents always have a non-null Window.
2013-10-16 10:15:09 +02:00
bors-servo
8d3c7a2ded
auto merge of #1051 : Ms2ger/servo/private-root, r=jdm
...
In preparation for removing it as part of making Document a Node.
2013-10-14 10:22:00 -07:00
bors-servo
90baad3fff
auto merge of #983 : saneyuki/servo/getid, r=jdm
...
This has not implemented these features yet:
* Update hashmap which is used for `getElementById()` when updating element attributes.
* Keep node order in tree.
However, this has the quality of that we can use this method for testcases.
2013-10-14 10:01:10 -07:00
bors-servo
5d00b52055
auto merge of #1050 : Ms2ger/servo/get_cx, r=jdm
2013-10-14 09:37:14 -07:00
Tetsuharu OHZEKI
db3b5c3c4c
Basic Implementation of document.getElementById(), #740
2013-10-15 00:21:13 +09:00
Ms2ger
b6b2606c96
Make Document::root private, in preparation for removing it as part of making Document a Node.
2013-10-13 14:08:37 +02:00
Ms2ger
da2cf6cbd7
Implement Window::get_cx() to reduce code repetition.
2013-10-13 12:06:32 +02:00
Ms2ger
438d121cd8
Implement DocumentFragment.
2013-10-12 15:14:09 +02:00
Ms2ger
98cdf5c118
Implement Document.createComment.
2013-10-11 12:40:35 +02:00
Bobby Holley
c4bbc4cd37
Introduce mutable/immutable variants of reflector() with named lifetimes, and kill unsafe casts.
2013-10-10 13:11:24 +02:00
Ms2ger
04319fdb68
Issue #888 - Node's owner document should never be None.
2013-10-10 10:57:38 +02:00
Bobby Holley
5ed8b9e83f
Rename |wrapper| to |reflector_| in Reflectable implementations for DOM objects.
2013-10-09 12:21:38 +02:00
Bobby Holley
92e91c58da
Rename the |wrapper| field in Reflector.
2013-10-09 12:18:17 +02:00
Bobby Holley
549ac6a29b
Rename some local variables and shorten some lines.
...
This was done manually, and might benefit from a more careful review.
2013-10-09 12:15:56 +02:00
Bobby Holley
622aa76515
Rename WrappableDocument stuff.
2013-10-09 12:13:18 +02:00
Bobby Holley
6bf740d967
Rename {get,set}_wrapper to {get,set}_jsobject. v1
2013-10-09 12:13:18 +02:00
Bobby Holley
62ddac8b6f
Rename get_wrappercache() to reflector(). v1
...
I also updated some variable names in the codegen.
2013-10-09 12:11:25 +02:00
Bobby Holley
2cbe2d7ce9
Rename WrapperCache to Reflector.
...
I think the abstraction from the raw JSObject is still probably worthwhile for
now.
2013-10-09 12:07:41 +02:00
Bobby Holley
0a0599ad9b
Rename CacheableWrapper to Reflectable.
2013-10-09 12:03:18 +02:00
bors-servo
77f8dba48b
auto merge of #1016 : Ms2ger/servo/ownerdoc, r=jdm
2013-10-08 05:16:01 -07:00
Ms2ger
388f685549
Cleanup some code.
2013-10-07 16:30:34 +02:00
Ms2ger
e43505d641
Remove Document::set_root.
...
All callers have an AbstractDocument, and this makes my life easier later.
2013-10-07 15:17:47 +02:00