aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/attr.rs
Commit message (Collapse)AuthorAgeFilesLines
* Import the util crate as util rather than servo_util.Ms2ger2015-01-291-1/+1
| | | | | | | | This used to conflict with the util crate from the standard library, which has long since been removed. The import in layout has not been changed because of a conflict with the util mod there.
* Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.Josh Matthews2015-01-281-2/+3
|
* Move to to_owned rather than into_string.Ms2ger2015-01-201-5/+6
| | | | into_string has been removed from Rust.
* Remove unsound Root::deref() call in Attr::set_value.Ms2ger2015-01-011-1/+2
| | | | | This changes those calls whose unsoundness was not picked up by the type system because of a lifetime constraint that cannot be expressed at this time.
* Replace Root::deref() calls by Root::r() calls where possible.Ms2ger2015-01-011-2/+2
| | | | This changes those calls that were already sound.
* auto merge of #4173 : Manishearth/servo/a-more-dom-struct, r=kmcallisterbors-servo2014-12-271-7/+1
|\ | | | | | | | | | | Now `#[dom_struct]` also generates Reflectable impls, and there's another lint to ensure that a DOM struct only contains one bare DOM field (as the first field) or a Reflector. A lot of this was generated by sed -- each autogenerated change has its own commit for easy review; these will be squashed later.
| * Remove extra spacesManish Goregaokar2014-12-271-1/+0
| | | | | | | | Command: `find . -maxdepth 1 -type f -print0 | xargs -0 sed -z -i "s/}\\n\\n\\n/}\\n\\n/"`
| * Remove manual impls of Reflectors (autogen)Manish Goregaokar2014-12-271-6/+1
| | | | | | | | | | | | | | | | | | Obtained via: `find . -maxdepth 1 -type f -print0 | xargs -0 sed -z -i "s/\\nimpl Reflectable for[^{]*{[^}]*}[^}]*}\\n//"` `find . -maxdepth 1 -type f -print0 |xargs -0 grep -lZ dom_struct | xargs -0 grep -LZ "reflector()\\|Reflector::new" |xargs -0 sed -z -i "s/use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};/use dom::bindings::utils::reflect_dom_object;/"` followed by semi-automated removal of leftover imports
* | script: to_string() -> into_string()Manish Goregaokar2014-12-271-5/+5
| |
* | Added AttrValue::from_atomic_tokens & Element::set_atomic_tokenlist_attributeBruno de Oliveira Abinader2014-12-261-0/+8
| |
* | Avoid duplicated tokens in AttrValue::from_serialized_tokenlistBruno de Oliveira Abinader2014-12-261-2/+6
| |
* | AttrValue's s/from_tokenlist/from_serialized_tokenlist/Bruno de Oliveira Abinader2014-12-261-1/+1
|/
* script: Remove glob imports added in #4405Tetsuharu OHZEKI2014-12-191-2/+2
|
* Update rustc to revision 3dcd2157403163789aaf21a9ab3c4d30a7c6494d.Ms2ger2014-12-171-17/+18
|
* Updated reflect_dom_object to be passed by valueMichael Booth2014-11-301-1/+1
|
* implement Document#createAttributeRohan Prinja2014-11-231-12/+20
|
* Implement Attr#nodeValueMatthew Rasmus2014-11-201-0/+8
| | | | Fixes #4047
* Use RefCell in DOMRefCell to reduce duplicated code.Ms2ger2014-11-141-2/+5
|
* Implement the whole Attr interfaceTom Schuster2014-11-071-0/+16
|
* Usage of JSRef<Attr> in before_remove_attr & after_set_attrBruno de Oliveira Abinader2014-10-221-11/+3
| | | | | JSRef<Attr> does not require allocating a DOMString for value, which are unused in most cases. It also provides more access to Attr data.
* Use #[dom_struct] everywhereManish Goregaokar2014-10-161-3/+1
|
* Use DOMRefCell<T> in Attr.Tetsuharu OHZEKI2014-10-151-9/+8
|
* script: Use atom comparison in more places, especially for attributes.Patrick Walton2014-10-141-6/+9
| | | | 75% improvement in style recalc for Guardians of the Galaxy.
* Privatize AttrTim Taubert2014-10-131-3/+19
|
* Remove unnecessary `deref()`s (fixes #3586)Tim Taubert2014-10-091-1/+1
|
* Remove Traceable from attr.rsManish Goregaokar2014-10-051-7/+6
|
* Use string-cache's Namespace typeKeegan McAllister2014-09-291-6/+6
|
* Eliminate servo_util::atomKeegan McAllister2014-09-291-1/+1
| | | | We only needed this for Encodable, and now we use JSTraceable instead.
* Upgrade to rustc d2b30f7d3 2014-09-23Simon Sapin2014-09-291-2/+2
|
* Make the AttrHelpers trait use extended_derefCameron Zwarich2014-09-261-8/+8
|
* Use JSTraceable everywhereManish Goregaokar2014-09-241-2/+3
|
* Convert various helper traits from &JSRef to JSRefCameron Zwarich2014-09-201-4/+4
| | | | | | | | | | | | | | | I converted them all with a few exceptions: - Methods that were used by trait objects, since trait objects don't work with `self` methods. - Methods that take an &'b JSRef<'a, T> and return an &'b. In reality, many (all?) could return an &'a instead, but this isn't allowed by the Deref trait. - Methods that internally rely on the same issue with Deref. - I left out the traits involved in layout entirely, even though not all of their methods suffer from one of the above problems. There will probably be solutions to all of these problems in the future.
* More progress in the &JSRef -> JSRef conversionCameron Zwarich2014-09-201-8/+7
| | | | | Change all of the <Class>Methods traits to take `self` instead of `&self`.
* First steps of &JSRef -> JSRef conversionCameron Zwarich2014-09-191-7/+7
| | | | | | | | | Replace &JSRef with JSRef in the bulk of the generated code. This will remove a level of indirection throughout all DOM code. This patch doesn't change methods implemented on JSRef<T> to take `self` rather than `&self`, and it leaves a few other uses of &JSRef, but those changes can be made incrementally.
* Retrieve some basic layout properties for nodes to make the box model ↵Josh Matthews2014-09-181-2/+3
| | | | somewhat useful.
* Enable real DOM inspector support.Josh Matthews2014-09-181-0/+10
|
* Revert "script: Use atom comparison in more places, especially for ↵Josh Matthews2014-09-181-10/+6
| | | | | | attributes." for persistent test failures. This reverts commit 874db261046d6155b1942efa106d2e0014295d6d.
* script: Use atom comparison in more places, especially for attributes.Patrick Walton2014-09-171-6/+10
| | | | 75% improvement in style recalc for Guardians of the Galaxy.
* Add unrooted_must_root lint for usages of JS<T> in let/for bindingsManish Goregaokar2014-09-161-2/+2
|
* Add unrooted_must_root lint for enums and structs containing JS<T>, as well ↵Manish Goregaokar2014-09-161-0/+1
| | | | | | | as functions with JS<T> in their parameter list For safe wrappers over JS<T> (eg Temporary<T>) use #[allow(unrooted_must_root)]. For all other types containing a #[must_root] value, annotate the type with #[must_root] to ensure that it is never used unrooted
* Make use of the list of Atoms in ClassSelectorGilles Leblanc2014-09-111-0/+10
| | | | | | | Make use of the list of Atoms in the class attribute selector (ClassSelector) in selector_matching. Fixes #3111
* Move Attr::local_name() to AttrHelpers/AttrHelpersForLayout.Tetsuharu OHZEKI2014-09-111-4/+10
|
* Move Attr helper methods to AttrHelpers trait to avoid to touch them from ↵Tetsuharu OHZEKI2014-09-111-29/+36
| | | | layout task.
* Cargoify servoJack Moffitt2014-09-081-0/+200