aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
Commit message (Collapse)AuthorAgeFilesLines
* Fix obsolete format traits.Ms2ger2015-01-0212-23/+23
| | | | They are to be removed from the language in the next rust upgrade.
* auto merge of #4526 : servo/servo/deref-1, r=Manishearthbors-servo2015-01-0271-568/+592
|\ | | | | | | This is a start towards fixing #3868. Not all callers have been fixed yet, so the `Deref` implementation remains for now.
| * Construct a new JSRef in Root::r().Ms2ger2015-01-021-1/+4
| |
| * Rename GlobalRoot::root_ref() to GlobalRoot::r() for consistency.Ms2ger2015-01-019-23/+23
| |
| * Remove unsound Root::deref() calls in HTML elements.Ms2ger2015-01-015-3/+8
| |
| * Remove unsound Root::deref() calls in DOMParser::ParseFromString.Ms2ger2015-01-011-8/+8
| | | | | | | | Note that Root::clone() calls through to JSRef::clone() due to autoderef.
| * Remove unsound Root::deref() call in Document::set_quirks_mode.Ms2ger2015-01-011-0/+1
| |
| * Convince borrowck that Document::createNodeList is sound.Ms2ger2015-01-011-3/+4
| |
| * Remove unsound Root::deref() call in Document::get_html_element.Ms2ger2015-01-011-4/+6
| |
| * Remove unsound Root::deref() calls in CSSStyleDeclaration.Ms2ger2015-01-011-0/+2
| |
| * Remove unsound Root::deref() call in BrowserContext::create_window_proxy.Ms2ger2015-01-011-1/+2
| |
| * Remove unsound Root::deref() calls in XMLHttpRequest.Ms2ger2015-01-011-4/+4
| |
| * 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-0161-471/+479
| | | | | | | | This changes those calls that were already sound.
| * Rename Root::root_ref() to Root::r().Ms2ger2015-01-019-28/+28
| | | | | | | | | | As it will be used much more widely after the upcoming changes, this limits the effort reading and writing the method calls.
| * Remove the 'b lifetime from Root.Ms2ger2015-01-014-27/+27
| | | | | | | | | | It does not add any safety, as the reference is constructed from a raw pointer without limiting the lifetime in any way.
| * Remove the 'a lifetime from Root.Ms2ger2015-01-014-27/+27
| | | | | | | | | | It does not add any safety, as the reference is constructed from a raw pointer without limiting the lifetime in any way.
* | Stop using ptr.is_not_null() in script.Ms2ger2015-01-018-27/+27
|/ | | | | This method is deprecated in rust master; removing its users in advance will make a future rust upgrade smoother.
* auto merge of #4470 : shinglyu/servo/contentType, r=jdmbors-servo2015-01-014-21/+38
|\ | | | | | | A follow-up for issue #1820, adds the optional "type" support.
| * Bug #1820, add the optional "type" parameter to BlobShing Lyu2015-01-014-21/+38
| |
* | auto merge of #4496 : yodalee/servo/issue4484-ToJSValConvertible-for-str, r=jdmbors-servo2015-01-013-5/+11
|\ \ | | | | | | | | | | | | #4484 Add ToJSValConvertible trait to str type.
| * | use str to_jsval() nowyodalee2015-01-013-10/+3
| | | | | | | | | | | | | | | | | | | | | | | | xmlhttprequest.rs, CodegenRust.py replace into_string().to_jsval() to to_jsval() conversions.rs DOMString to_jsval() use as_slice().tojsval() now
| * | add str ToJSValConvertible for str typeyodalee2014-12-311-1/+14
| |/
* | Use or_init for HTMLCanvasElement::GetContext.Ms2ger2014-12-311-6/+4
| |
* | Replace the remaining to_string calls by into_string calls.Ms2ger2014-12-314-14/+14
|/
* Codegen style fixBruno de Oliveira Abinader2014-12-301-32/+47
|
* Codegen empty lines fixBruno de Oliveira Abinader2014-12-301-42/+34
|
* Codegen indent fixesBruno de Oliveira Abinader2014-12-301-5/+5
|
* Codegen whitespace fixesBruno de Oliveira Abinader2014-12-301-362/+362
|
* auto merge of #4057 : jdm/servo/refcountdom, r=Ms2gerbors-servo2014-12-2913-253/+422
|\ | | | | | | | | | | | | | | This replaces the specialized TrustedXHRAddress and TrustedWorkerAddress code that was used for the same purpose. A non-zero refcount pins the given DOM object's reflector and prevents it from being GCed even when there are no other outstanding references visible to SpiderMonkey. This will enable us to implement asynchronous operations that refer to particular DOM objects (such as "queue a task to fire a simple event named load at the iframe element" from the spec) safely and conveniently, and paves the way for things like asynchronous network responses. Some concerns about the resulting size of XHR progress messages have been expressed, but I believe optimizations to reduce that can be implemented in subsequent PRs. r? @Ms2ger - note in particular the changes to the worker lifetime code. I couldn't figure out how to achieve an identical lifetime to the previous addref/release pairing, and I also was having trouble figuring out why the existing setup was safe. The new implementation now holds the main script task Worker object alive via the TrustedWorkerAddress field in the dedicated worker global scope, which is a significant difference.
| * Force all messages to worker tasks to send a TrustedWorkerAddress along with ↵Josh Matthews2014-12-2911-121/+234
| | | | | | | | the ScriptMsg. This ensures that the main-thread Worker object is rooted for as long as there are events in flight or being processed.
| * Allow refcounting arbitrary DOM objects in concert with the GC to enable ↵Josh Matthews2014-12-298-154/+210
| | | | | | | | safe, asynchronous/cross-task references to pinned objects.
* | auto merge of #4483 : brunoabinader/servo/named-deleter, r=Ms2gerbors-servo2014-12-291-2/+43
|\ \ | | | | | | | | | Closes #4469.
| * | Add support for named deleterBruno de Oliveira Abinader2014-12-291-2/+43
| | | | | | | | | | | | Closes #4469.
* | | auto merge of #4501 : Ms2ger/servo/script_task, r=jdmbors-servo2014-12-291-6/+5
|\ \ \ | |/ / |/| |
| * | Simplify some code in handle_click_event.Ms2ger2014-12-291-6/+5
| |/
* / Added readonly flag for CSSStyleDeclarationProgramFOX2014-12-285-14/+35
|/
* auto merge of #4173 : Manishearth/servo/a-more-dom-struct, r=kmcallisterbors-servo2014-12-27126-788/+75
|\ | | | | | | | | | | 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-273-8/+3
| |
| * Ensure that Reflectors are the first fieldManish Goregaokar2014-12-2713-18/+134
| |
| * Add inheritance-checking lintManish Goregaokar2014-12-274-9/+17
| |
| * Remove extra spacesManish Goregaokar2014-12-2723-23/+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-27121-856/+47
| | | | | | | | | | | | | | | | | | 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
* | Remove some transmute calls.Ms2ger2014-12-271-2/+2
| |
* | script: to_string() -> into_string()Manish Goregaokar2014-12-2739-152/+152
| |
* | Implement DOMTokenList.toggleBruno de Oliveira Abinader2014-12-262-1/+27
| |
* | Implement DOMTokenList.removeBruno de Oliveira Abinader2014-12-262-1/+16
| |
* | Implement DOMTokenList.addBruno de Oliveira Abinader2014-12-262-1/+16
| |
* | DOMTokenList::check_token_exceptions now returns an AtomBruno de Oliveira Abinader2014-12-261-11/+11
| |
* | Added Element::get_tokenlist_attributeBruno de Oliveira Abinader2014-12-261-0/+10
| |