aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/browsercontext.rs
Commit message (Collapse)AuthorAgeFilesLines
* Rename the browsercontext module.Ms2ger2015-12-111-281/+0
|
* Rustfmt some of script.Ms2ger2015-11-181-27/+50
|
* Clean up the conversion routinesAnthony Ramine2015-11-111-3/+2
| | | | | | | | Functions returning `Root<T>` are prefixed by "root_" and the ones returning `*const T` by "native_". Functions taking `*mut JSObject` are now suffixed by "_from_object" and the ones taking `&T` by "_from_reflector".
* Make BrowsingContext JS-managed.Ms2ger2015-11-041-33/+42
|
* Get rid of a bunch of explicit derefsDavid Zbarsky2015-11-031-1/+1
|
* rearrange imports to be in alphabetical orderrohan.prinja2015-10-301-1/+1
|
* more refactoringrohan.prinja2015-10-301-1/+2
|
* Return a reference in BrowserContext::active_window()Anthony Ramine2015-10-191-4/+4
|
* Return a reference in Document::window()Anthony Ramine2015-10-191-1/+1
|
* Return a reference in BrowserContext::frame_element()Anthony Ramine2015-10-171-2/+2
|
* Return a reference in BrowserContext::active_document()Anthony Ramine2015-10-171-4/+3
|
* Stop implementing Copy for JS<T>.Eli Friedman2015-10-151-1/+1
| | | | | A copy of a JS<T> doesn't have the rooting properties of the original, so it makes no sense for it to implement Copy.
* Support the updated spidermonkey bindingsMichael Wu2015-10-141-24/+23
|
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-241-8/+8
|
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-2/+0
| | | | This merges import blocks that were reported by tidy as unmerged.
* Remove needless returnsManish Goregaokar2015-09-041-1/+1
|
* Remove helper traitsAnthony Ramine2015-08-271-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that JSRef<T> is gone, there is no need to have helper traits. On components/script/*.rs: # Remove imports. /^ *use dom::[a-z]+::\{.*Helpers/ { s/\{(Raw[^L]|[^L][^a])[a-zA-Z]+Helpers, /\{/ s/, (Raw[^L]|[^L][^a])[a-zA-Z]+Helpers([,}])/\2/g s/\{([a-zA-Z]+)\}/\1/ /\{\}/d s/::self;$/;/ } /^ *use dom::[a-z]+::\{?(Raw[^L]|[^L][^a])[a-zA-Z]+Helpers\}?;$/d On components/script/dom/*.rs: # Ignore layout things. /^(pub )?(impl|trait).*Layout.* \{/,/^}$/ { P; D; } # Delete helpers traits. /^(pub )?trait ([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? \{$/,/^\}$/D # Patch private helpers. /^impl.*Private.*Helpers/,/^\}$/ { s/^impl<'a> Private([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? for &'a ([^ ]+) \{$/impl \3 {/ /^ *(unsafe )?fn .*\(self.*[<&]'a/ { s/&'a /\&/g s/<'a, /</g } /^ *(unsafe )?fn /s/\(self([,)])/\(\&self\1/ } # Patch public helpers. /^impl.*Helpers/,/^\}$/ { s/^impl(<'a>)? ([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? for (&'a )?([^ ]+) \{$/impl \5 {/ /^ *(unsafe )?fn .*\(self.*[<&]'a/ { s/&'a /\&/g s/<'a, /</g } /^ *(unsafe )?fn .*\(&?self[,)]/s/(unsafe )?fn/pub &/ /^ *pub (unsafe )?fn /s/\(self([,)])/\(\&self\1/ } The few error cases were then fixed by hand.
* sort all usesJohann Tuffe2015-08-201-7/+7
|
* Update js.Ms2ger2015-08-181-1/+1
|
* Start reporting memory usage for Window and all nodes in all DOM trees for ↵Josh Matthews2015-08-031-2/+2
| | | | frame treese in script tasks.
* Make struct part of unrooted_must_root handle type parametersManish Goregaokar2015-07-221-0/+1
|
* Rename BrowserContext to BrowsingContext.Ms2ger2015-07-201-5/+5
|
* Refactor #[jstraceable] to #[derive(JSTraceable)]David Winslow2015-07-011-2/+2
| | | | fixes #6524
* Silence a warning about BrowserContext.Ms2ger2015-06-231-0/+1
|
* Upgrade to SM 39Michael Wu2015-06-191-107/+105
|
* Reduce max line length from 150 to 120 charactersCorey Farwell2015-05-241-7/+14
| | | | Part of https://github.com/servo/servo/issues/6041
* Remove Temporary::new()Anthony Ramine2015-04-281-2/+2
| | | | Temporary::from_rooted() now takes an Assignable value.
* Uniformise root() methodsAnthony Ramine2015-04-281-2/+2
| | | | | They now live in traits Rootable, OptionalOptionalRootable, OptionalRootable and ResultRootable.
* Stop using int/uint in script.Ms2ger2015-04-031-1/+1
|
* Replace unsafe_blocks by unsafe_code.Manish Goregaokar2015-03-211-3/+8
|
* Fix #2108 by renaming unwrap functions to native_from_reflectorChris Double2015-03-121-2/+2
| | | | | | | | | | 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'.
* Move everything unrelated to the frame tree out of Page and into Document or ↵Josh Matthews2015-03-031-4/+2
| | | | Window. Reduce the API surface of Page to a bare minimum to allow for easier future removal.
* Implement window.frameElement, change window.parent to make use of it.Glenn Watson2015-02-071-9/+8
|
* Replace Root::deref by a custom get_unsound_ref_forever method.Ms2ger2015-02-051-1/+1
| | | | | This will hopefully make it clearer that this is not the correct function to call.
* Implement window.parent for iframes.Glenn Watson2015-02-051-1/+9
|
* Rename GetArrayIndexFromId to get_array_index_from_id.Ms2ger2015-01-291-4/+4
|
* Rename FillPropertyDescriptor to fill_property_descriptor.Ms2ger2015-01-291-2/+2
|
* Rename getPropertyDescriptor to get_property_descriptor.Ms2ger2015-01-291-2/+3
|
* raw_pointer_deriving -> raw_pointer_deriveManish Goregaokar2015-01-281-1/+1
|
* Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.Josh Matthews2015-01-281-6/+9
|
* Implement most of the important WindowProxy trapsTom Schuster2015-01-121-9/+116
|
* Deny unsafe blocks in script.Ms2ger2015-01-091-0/+2
| | | | As a first start, this allows them indiscriminately where used.
* auto merge of #4526 : servo/servo/deref-1, r=Manishearthbors-servo2015-01-021-1/+2
|\ | | | | | | This is a start towards fixing #3868. Not all callers have been fixed yet, so the `Deref` implementation remains for now.
| * Remove unsound Root::deref() call in BrowserContext::create_window_proxy.Ms2ger2015-01-011-1/+2
| |
| * Replace Root::deref() calls by Root::r() calls where possible.Ms2ger2015-01-011-2/+2
| | | | | | | | This changes those calls that were already sound.
* | Stop using ptr.is_not_null() in script.Ms2ger2015-01-011-3/+3
|/ | | | | This method is deprecated in rust master; removing its users in advance will make a future rust upgrade smoother.
* Fix warnings post-upgradeManish Goregaokar2014-12-271-0/+2
|
* Add inheritance-checking lintManish Goregaokar2014-12-271-1/+3
|
* Implement dummy getOwnPropertyNames and enumerate traps.Ms2ger2014-12-241-3/+3
|
* Rust upgrade to rustc hash b03a2755193cd756583bcf5831cf4545d75ecb8aJack Moffitt2014-11-131-2/+2
|