lpy
77938bf6f6
Implement document_from_node and window_from_node helpers.( fixes #1761 )
2014-03-01 21:57:37 +08:00
Josh Matthews
fa542e5de7
De-@mut the script crate.
2014-02-28 13:42:03 -05:00
Saurabh Anand
5c5cb3e9a7
Move Error, Fallible, ErrorResult out of utils.rs ( fixes #1749 )
2014-02-28 13:32:00 +05:30
lpy
8fc5ba5dc6
Add url getter to Page and fix users of Page url with it.( fixes #1762 )
2014-02-28 14:13:08 +08:00
Ms2ger
432e9cb3a7
Call after_remove_attr before removing the attribute, and rename it before_remove_attr.
2014-02-26 14:50:57 +01:00
Ms2ger
938f6baf9e
Handle removing the src attribute from an img element ( fixes #1469 ).
2014-02-25 19:33:49 +01:00
Ms2ger
9faf2c89e4
Pass the attribute value to the update_image function.
2014-02-25 19:17:58 +01:00
Ms2ger
e834e532c5
Fetch the image cache inside the update_image function.
2014-02-25 19:12:34 +01:00
Ms2ger
2639e36c78
Remove the image loading workaround from the parser.
2014-02-25 19:04:47 +01:00
Josh Matthews
625325434b
Implement JSManaged for DOM objects.
2014-02-24 15:16:42 -05:00
Ms2ger
59184bf6e1
Move DOMString into servo_util.
2014-02-14 12:48:51 +01:00
Ms2ger
0f5c9a35b9
Use DOMString more consistently.
2014-02-13 19:32:59 +01:00
Simon Sapin
33f8ef618b
Rename make_url/current_url to parse_url/base_url, to align with spec terminology.
2014-02-01 17:51:15 +01:00
Simon Sapin
624e2714d4
Move script::dom::namespace into util, in order to use it from style later.
2014-01-25 12:14:06 -08:00
Jack Moffitt
c443bcbfff
Change get_attr()
to get_attr_val_for_layout()
.
...
The old code was used by both layout and script, but was erroneously
borrowing for the layout case (which causes parallelism
problems). script now uses only `value_ref()` or `get_attribute()`, and
layout now has its own unsafe version that dances around the borrows of
`@mut Attr`.
2014-01-22 17:02:21 -07:00
Tetsuharu OHZEKI
7a9ecffaa0
Implement Element.removeAttribute()/removeAttributeNS().
2014-01-13 23:12:08 +09:00
Jack Moffitt
a7ef1cd35e
Upgrade to latest Rust.
2014-01-12 19:45:45 -07:00
Ms2ger
95913d1fed
Pass a Namespace to Element::get_attr.
2013-12-23 13:03:52 +01:00
Patrick Walton
be69a503fe
script: Eliminate the phantom type in favor of just whitelisting methods
...
that layout can safely call.
This is simpler. Currently, the set of methods is not safe, but I plan
to lock it down more soon.
2013-12-17 18:07:12 -08:00
Patrick Walton
199ca33b72
script: Make trees less generic
2013-12-17 13:46:14 -08:00
Simon Sapin
b290823f4d
Fix #1264 : support namespaced attribute selectors.
2013-12-10 17:53:12 +00:00
Tetsuharu OHZEKI
f5ef4365f4
Stop passing DOMStrings via borrowed pointer. ( #1201 )
2013-11-14 20:35:36 +09:00
Ms2ger
591de8cff5
Cleanup attribute setting functions a bit.
2013-11-13 17:38:08 +01:00
Ms2ger
08afc6d19d
Don't pass nullable strings to native DOM methods that want non-nullable strings. Fixes #1207 .
2013-11-12 13:57:18 +01:00
Ms2ger
803cd4b7cf
Make DOMString represent a non-nullable string.
2013-11-12 13:32:53 +01:00
Ms2ger
e2c90d1198
Rename HTMLElement::new to HTMLElement::new_inherited.
2013-11-02 20:55:18 +01:00
Ms2ger
c9bc5f6409
Introduce HTMLImageElement::new.
2013-10-31 16:01:54 +01: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
Ms2ger
c08e4fe36b
Make Node.owner_doc private.
2013-10-17 18:44:26 +02:00
Simon Sapin
a509755447
Failing for a blank line before the license, really?
2013-10-16 23:28:36 +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
Simon Sapin
a325905fa6
Move the gfx::geometry module to servo_util::geometry.
...
This is part of #1006 , in order to use Au from the script crate
without introducing a circular crate dependency.
2013-10-16 14:55:07 +01:00
Ms2ger
60b6d1bb57
Issue #1071 - Ensure that Documents always have a non-null Window.
2013-10-16 10:15:09 +02:00
Ms2ger
04319fdb68
Issue #888 - Node's owner document should never be None.
2013-10-10 10:57:38 +02: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
Patrick Walton
76d288fe62
script: Implement image source setting from script and write a demo for this.
2013-09-12 18:03:11 -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
Brian Anderson
42c6a53148
Implement getters and setters for img width and height properties
2013-09-11 22:08:44 -07:00
Keegan McAllister
be061a9aa0
Library changes
2013-08-15 13:55:40 -07:00
Josh Matthews
8e2c39d2dd
Generate bindings for HTMLImageElement.
2013-08-06 21:54:37 -04:00