Ms2ger
803cd4b7cf
Make DOMString represent a non-nullable string.
2013-11-12 13:32:53 +01:00
James Graham
15b9d4d199
Initial support for Attr and namespaces.
2013-11-12 17:39:04 +09:00
Simon Sapin
74dfc3b66a
Add :any-link (Level 4), :link and :visited selectors.
...
All links are considered "unvisited" for now.
2013-11-07 15:06:17 +00:00
Ms2ger
80a6103f7d
Remove Reflectable::GetParentObject.
2013-11-06 21:56:47 +01:00
Ms2ger
53731b62ae
Remove Reflectable::wrap_object_shared.
2013-11-06 16:40:16 +01:00
bors-servo
b1c068b203
auto merge of #1125 : Ms2ger/servo/ClientRectList, r=jdm
2013-10-24 07:42:59 -07:00
bors-servo
d222443b38
auto merge of #1117 : Ms2ger/servo/HTMLCollection, r=kmcallister
2013-10-24 06:22:16 -07:00
Ms2ger
8cb4976136
Cleanup HTMLCollection binding.
2013-10-23 20:59:14 +02:00
Ms2ger
6af555ab23
Cleanup ClientRectList binding.
2013-10-23 20:44:22 +02:00
Ms2ger
f75568e939
Cleanup ClientRect binding.
2013-10-23 20:15:36 +02:00
Seo Sanghyeon
b2431912d3
Use the new style system
...
Credits to:
Deokjin Kim
Ilyong Cho
Jaeman Park
Junyoung Cho
Ryan Choi
Sangeun Kim
Yongjin Kim
Youngmin Yoo
Youngsoo Son
2013-10-23 16:49:35 +09:00
Jack Moffitt
94202661c0
Update to latest Rust.
2013-10-21 17:38:34 -06:00
Ms2ger
b90766404c
Replace Document::{with_base, with_mut_base} by Document::{document, mut_document}.
2013-10-21 17:57:44 +02:00
bors-servo
5c725b31af
auto merge of #1025 : saneyuki/servo/attr, r=metajack
2013-10-18 20:43:03 -07:00
Marcos Caceres
faf53fd05c
Implemention of HTMLMainElement
2013-10-18 22:03:58 +01:00
Ms2ger
321e0373fa
Merge BindingObject and Reflectable.
2013-10-18 17:02:16 +02:00
Tetsuharu OHZEKI
41dda86557
Enable to update Element's attributes.
2013-10-19 00:00:43 +09:00
Ms2ger
c08e4fe36b
Make Node.owner_doc private.
2013-10-17 18:44:26 +02:00
Simon Sapin
6d808fbdd0
Move AbastractNode::is_element to the TreeNodeRef trait.
2013-10-16 19:22:44 +01:00
Simon Sapin
6c41be9c13
Add a with_imm_element_like() method.
...
… gives a generic element from a generic node.
2013-10-16 18:44:41 +01: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
Tetsuharu OHZEKI
f5e2b2ec67
Auto-generate some binding codes for HTMLElement, Element, CharacterData.
2013-10-16 00:37:15 +09:00
Tetsuharu OHZEKI
0de35fdc2f
Implement HTMLTableDataCellElement & HTMLTableHeaderCellElement.
2013-10-15 22:37:06 +09: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
Tetsuharu OHZEKI
db3b5c3c4c
Basic Implementation of document.getElementById(), #740
2013-10-15 00:21:13 +09:00
Ms2ger
da2cf6cbd7
Implement Window::get_cx() to reduce code repetition.
2013-10-13 12:06:32 +02:00
Tim Taubert
9fe9145be4
implement NodeList and consolidate common scope and context retrieval
2013-10-11 07:34:38 -07: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
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
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
Ms2ger
388f685549
Cleanup some code.
2013-10-07 16:30:34 +02:00
Simon Sapin
20089e4bea
New style sytsem: add selector matching
...
Also make scribt::dom::element::Element::get_attr ASCII case-insensitive
on attribute names, per spec:
http://dom.spec.whatwg.org/#dom-element-getattribute
2013-10-02 00:28:14 +01:00
Luis de Bethencourt
cfd726f7d6
Rename the node field of the DOM node hierarchy
...
Renamed the Node elements
Fixes #924
2013-09-19 19:39:38 -04:00
Luis de Bethencourt
2dbd065d91
Rename the element field of the DOM Node hierarchy
...
Renamed htmlelement, and element
Fixes #924
2013-09-19 19:39:38 -04:00
Keegan McAllister
73c1a12f30
bindings: Return errors in Result rather than setting an out parameter
...
Fixes #909 .
2013-09-18 18:07:37 -07:00
Keegan McAllister
68ddc6b4ab
Make DOMString an alias for Option<~str>
...
Fixes #898 .
2013-09-18 14:46:42 -07:00
Josh Matthews
21b0fc35b6
Allow image prefetching to occur during parsing when no window or document is present. Fixes #939 .
2013-09-13 23:10:31 -07:00
bors-servo
ab743c17fe
auto merge of #920 : jdm/servo/setattrabstract, r=metajack
...
r? @metajack
2013-09-12 15:51:49 -07:00
Josh Matthews
8ae725146c
Make Window store an @Page instead of a *Page and remove a bunch of unsafe code.
2013-09-12 14:45:47 -07:00
Josh Matthews
a410651fba
Make Element.set_attr require an AbstractNode so we can always downcast.
2013-09-12 14:40:00 -07:00
Josh Matthews
9640324721
Make sandboxed iframes run with different script tasks.
2013-09-11 11:57:40 -07:00
Ms2ger
c9470d5dda
Fix unused import warnings.
2013-09-09 13:11:23 +02:00
Josh Matthews
79444596d1
Make querying layout for content boxes an infallible operation.
2013-09-04 11:07:11 -04:00
bors-servo
4cfcad0a0e
auto merge of #837 : saneyuki/servo/webidl, r=jdm
2013-09-03 10:46:00 -07:00
Brandon Frohs
02437f7e87
Convert tagName to uppercase ASCII per spec
...
http://dom.spec.whatwg.org/#dom-element-tagname
2013-09-02 21:21:30 -04:00