aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/node.rs
Commit message (Collapse)AuthorAgeFilesLines
* Replace unsafe_blocks by unsafe_code.Manish Goregaokar2015-03-211-3/+40
|
* Upgrade rustc to d3c49d2140fc65e8bb7d7cf25bfe74dda6ce5ecf/rustc-1.0.0-dev.Ms2ger2015-03-181-9/+30
|
* Refactored optional argument "last_modified" for DocumentMartin Schröder2015-03-161-1/+1
| | | | Fixes #4981
* Fix #2108 by renaming unwrap functions to native_from_reflectorChris Double2015-03-121-1/+1
| | | | | | | | | | As noted by @bholley. "unwrap" is confusing because we are both stripping off wrappers *and* getting a native from a reflector. Changing the "unwrap" usage to "native_from_reflector" for clarity. This renames 'unwrap' to 'native_from_reflector' and 'unwrap_jsmanaged' to 'native_from_reflector_jsmanaged'.
* Use new `if let` syntax wherever possible. Fixes #4153.Zack Slayton2015-03-101-21/+15
|
* auto merge of #5127 : KiChjang/servo/partial-eq-jsref, r=Ms2gerbors-servo2015-03-051-5/+5
|\ | | | | | | Fixes #5112, #3960
| * Added type parameter to PartialEq on JSRef (fixes #5112, #3960)Keith Yeung2015-03-031-5/+5
| |
* | Separate disposing of layout data from the GCing of the DOM object ↵Josh Matthews2015-03-031-0/+9
| | | | | | | | reflectors. Change the order of operations when shutting down the script task to ensure that Window globals aren't used after they've been GCed.
* | Move everything unrelated to the frame tree out of Page and into Document or ↵Josh Matthews2015-03-031-3/+3
|/ | | | Window. Reduce the API surface of Page to a bare minimum to allow for easier future removal.
* Reap layout data whenever a node is removed from the tree.Glenn Watson2015-03-031-32/+15
| | | | | | Also introduce a clear() function to layout data which will be used to clear items such as compositor layouts. Clear the layout data when a node becomes display:none.
* Move selector matching to an external library, for use outside Servo.Simon Sapin2015-02-231-3/+3
|
* Fix some warnings in script.Ms2ger2015-02-121-1/+1
|
* Upgrade to rustc ba2f13ef0 2015-02-04Simon Sapin2015-02-111-5/+2
|
* Implement an Unrooted smart pointer to replace JS when it is not traced.Ms2ger2015-02-061-2/+2
|
* Replace Root::deref by a custom get_unsound_ref_forever method.Ms2ger2015-02-051-27/+28
| | | | | This will hopefully make it clearer that this is not the correct function to call.
* Make Document::url return the page's URL to avoid stale URLs after redirects.Josh Matthews2015-02-041-1/+1
|
* LayoutJS<T> implements Layout*Helpers instead of JS<T>.Tetsuharu OHZEKI2015-02-011-20/+20
|
* auto merge of #4757 : servo/servo/newnewnewcss, r=mbrubeckbors-servo2015-01-301-10/+13
|\ | | | | | | | | | | (Still off by default. Enable with `RUST_LOG=style`.) r? @mbrubeck
| * End the libstyle 'pub use' madness.Simon Sapin2015-01-301-10/+13
| |
* | Use snake case in Node.Ms2ger2015-01-301-8/+8
|/
* Import the util crate as util rather than servo_util.Ms2ger2015-01-291-2/+2
| | | | | | | | 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.
* Don't shadow lifetimes in script.Ms2ger2015-01-281-1/+1
|
* raw_pointer_deriving -> raw_pointer_deriveManish Goregaokar2015-01-281-1/+1
|
* self importManish Goregaokar2015-01-281-1/+1
|
* Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.Josh Matthews2015-01-281-30/+56
|
* Make UntrustedNodeAddress a newtype.Josh Matthews2015-01-241-1/+1
| | | | This will allow us to make it Send after the Rust upgrade.
* Stop calling deref() and deref_mut() explicitly.Ms2ger2015-01-221-4/+4
|
* Port to the new cssparser.Simon Sapin2015-01-211-9/+3
| | | | https://github.com/servo/rust-cssparser/pull/68
* Move to to_owned rather than into_string.Ms2ger2015-01-201-12/+13
| | | | into_string has been removed from Rust.
* Remove OptionalSettable.Ms2ger2015-01-191-1/+1
| | | | It was obsoleted by MutNullableJS.
* Implement Element#closestJim Hoskins2015-01-171-0/+7
| | | | | | | | fixes #4603 - Add definition to the Element.webidl and implementation to element.rs. - Create inclusive_ancestors helper in NodeHelpers - Update test expectations
* Rewrite ReverseChildrenIterator to return Temporary.Ms2ger2015-01-101-10/+12
|
* auto merge of #4584 : Ms2ger/servo/unsafe, r=jdmbors-servo2015-01-091-0/+3
|\ | | | | | | As a first start, this allows them indiscriminately where used.
| * Deny unsafe blocks in script.Ms2ger2015-01-091-0/+3
| | | | | | | | As a first start, this allows them indiscriminately where used.
* | Fix assertion trying to remove a Node that has no parentArpad Borsos2015-01-091-0/+1
|/ | | | fixes #4562
* Fix `variable does not need to be mutable` warningMatthew Rasmus2015-01-081-1/+1
|
* Update rustc to revision 2cfb5acb5a2751c759627377e602bac4f88f2d19.Ms2ger2015-01-081-6/+8
|
* auto merge of #4495 : MeghaGupta/servo/typeid, r=Ms2gerbors-servo2015-01-041-9/+10
|\
| * Add HTMLElementTypeId enum (fixes #3625)Megha Gupta2015-01-021-9/+10
| |
* | Fix obsolete format traits.Ms2ger2015-01-021-1/+1
| | | | | | | | They are to be removed from the language in the next rust upgrade.
* | Replace Root::deref() calls by Root::r() calls where possible.Ms2ger2015-01-011-54/+55
| | | | | | | | This changes those calls that were already sound.
* | Rename Root::root_ref() to Root::r().Ms2ger2015-01-011-4/+4
|/ | | | | As it will be used much more widely after the upcoming changes, this limits the effort reading and writing the method calls.
* 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.
| * Fix warnings post-upgradeManish Goregaokar2014-12-271-1/+0
| |
| * 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/+2
| | | | | | | | | | | | | | | | | | 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-12/+12
|/
* GlobalRef passed by value in reflect_dom_object, reflect_node #4165Amanda Watson2014-12-201-1/+1
|
* Move unwrap_jsmanaged and related machinery to conversions.rs.Ms2ger2014-12-201-2/+2
|
* script: Remove glob imports added in #4405Tetsuharu OHZEKI2014-12-191-4/+3
|