Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use new `if let` syntax wherever possible. Fixes #4153. | Zack Slayton | 2015-03-10 | 1 | -12/+8 |
| | |||||
* | auto merge of #5054 : psdh/servo/scriptimplementation, r=jdm | bors-servo | 2015-03-06 | 1 | -9/+26 |
|\ | | | | | | | Fixes #4089 | ||||
| * | implement missing steps from "prepare a script" algorithm | Prabhjyot Singh Sodhi | 2015-03-06 | 1 | -9/+26 |
| | | | | | | | | Fixes #4089 | ||||
* | | Move everything unrelated to the frame tree out of Page and into Document or ↵ | Josh Matthews | 2015-03-03 | 1 | -4/+3 |
|/ | | | | Window. Reduce the API surface of Page to a bare minimum to allow for easier future removal. | ||||
* | Implement Document.currentScript | James Gilbertson | 2015-02-27 | 1 | -10/+9 |
| | |||||
* | Implement 'beforescriptexecute' and 'afterscriptexecute' events. | James Gilbertson | 2015-02-25 | 1 | -21/+52 |
| | | | | Spec: https://html.spec.whatwg.org/multipage/scripting.html#execute-the-script-block, sections 2.b.2 & 2.b.9 | ||||
* | Split the 'Execute a script block' code out of prepare(). | Ms2ger | 2015-02-23 | 1 | -44/+128 |
| | | | | | | | This also adds comments for missing steps. The only change in behaviour should be the debug message when an external script fails to load. | ||||
* | Introduce dom::htmlscriptelement::EventDispatcher. | Tetsuharu OHZEKI | 2015-02-23 | 1 | -10/+19 |
| | |||||
* | Fixing Intermittent failure in pages with timers | Prabhjyot Singh Sodhi | 2015-02-22 | 1 | -2/+2 |
| | | | | Fixes #4923 | ||||
* | auto merge of #4939 : KiChjang/servo/script-element-error-events, r=jdm | bors-servo | 2015-02-21 | 1 | -3/+37 |
|\ | | | | | | | Fixes #4506 | ||||
| * | Script elements now fire async error events (fixes #4506) | Keith Yeung | 2015-02-21 | 1 | -3/+37 |
| | | |||||
* | | implementing step 12 of 'prepare a script' algorithm | Prabhjyot Singh Sodhi | 2015-02-21 | 1 | -2/+18 |
|/ | |||||
* | Import net as net rather than servo_net. | Ms2ger | 2015-02-10 | 1 | -1/+1 |
| | |||||
* | Initialize trusted-ness of DOM events properly | Gilles Leblanc | 2015-02-03 | 1 | -3/+2 |
| | | | | Fixes #3740 | ||||
* | Import the util crate as util rather than servo_util. | Ms2ger | 2015-01-29 | 1 | -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. | ||||
* | Don't shadow lifetimes in script. | Ms2ger | 2015-01-28 | 1 | -1/+1 |
| | |||||
* | Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev. | Josh Matthews | 2015-01-28 | 1 | -4/+4 |
| | |||||
* | Move to to_owned rather than into_string. | Ms2ger | 2015-01-20 | 1 | -1/+2 |
| | | | | into_string has been removed from Rust. | ||||
* | fixup! Make script load event asynchronous for internal scripts | Tetsuharu OHZEKI | 2015-01-11 | 1 | -1/+1 |
| | |||||
* | Make script load event asynchronous for internal scripts | Tetsuharu OHZEKI | 2015-01-11 | 1 | -0/+28 |
| | |||||
* | Add the enum to describe the script origin. | Tetsuharu OHZEKI | 2015-01-11 | 1 | -3/+8 |
| | |||||
* | Fix #3936 – {Window,WorkerGlobalScope}.set{Timeout,Interval}(DOMString) | Guillaume Bort | 2015-01-07 | 1 | -2/+2 |
| | |||||
* | auto merge of #4495 : MeghaGupta/servo/typeid, r=Ms2ger | bors-servo | 2015-01-04 | 1 | -4/+5 |
|\ | |||||
| * | Add HTMLElementTypeId enum (fixes #3625) | Megha Gupta | 2015-01-02 | 1 | -4/+5 |
| | | |||||
* | | Fix obsolete format traits. | Ms2ger | 2015-01-02 | 1 | -2/+2 |
| | | | | | | | | They are to be removed from the language in the next rust upgrade. | ||||
* | | Remove unsound Root::deref() calls in HTML elements. | Ms2ger | 2015-01-01 | 1 | -2/+3 |
| | | |||||
* | | Replace Root::deref() calls by Root::r() calls where possible. | Ms2ger | 2015-01-01 | 1 | -10/+10 |
| | | | | | | | | This changes those calls that were already sound. | ||||
* | | Replace the remaining to_string calls by into_string calls. | Ms2ger | 2014-12-31 | 1 | -1/+1 |
|/ | |||||
* | Remove manual impls of Reflectors (autogen) | Manish Goregaokar | 2014-12-27 | 1 | -6/+0 |
| | | | | | | | | | 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 | ||||
* | update to namespaced enums without re-exports | Eduard Burtescu | 2014-12-19 | 1 | -2/+2 |
| | |||||
* | update past rustup and use DoesNotBubble instead of Bubbles | Eduard Burtescu | 2014-12-19 | 1 | -5/+5 |
| | |||||
* | Trigger a load event after evaluating a <script>. | Eduard Burtescu | 2014-12-19 | 1 | -0/+11 |
| | |||||
* | Update rustc to revision 3dcd2157403163789aaf21a9ab3c4d30a7c6494d. | Ms2ger | 2014-12-17 | 1 | -10/+9 |
| | |||||
* | Implement the HTMLScriptElement.src setter | Matt Brubeck | 2014-12-04 | 1 | -4/+4 |
| | | | | Fixes #1113. | ||||
* | Lower case the type attribute before checking if it's JS | Claes 'Letharion' Gyllensvärd | 2014-11-18 | 1 | -2/+4 |
| | |||||
* | Move build_element_from_tag out of the HTML parser. | Ms2ger | 2014-10-30 | 1 | -1/+1 |
| | | | | This function is not particular to the parser, so should live in the DOM. | ||||
* | Implement cloning steps for script element | Matt Brubeck | 2014-10-29 | 1 | -2/+16 |
| | |||||
* | Switch to synchronous script loading | Matt Brubeck | 2014-10-29 | 1 | -6/+57 |
| | | | | | | | This removes the old code for asyncronously loading scripts during HTML parsing and then executing them afterward. Fixes #3356. | ||||
* | Infrastructure for synchronous script loading | Matt Brubeck | 2014-10-29 | 1 | -7/+135 |
| | | | | | | This implements the parts of the "prepare a script element" algorithm that are required for synchronous scripts. It also adds some infrastructure for future support of the `async` and `defer` attributes. | ||||
* | Use #[dom_struct] everywhere | Manish Goregaokar | 2014-10-16 | 1 | -3/+1 |
| | |||||
* | script: Use atom comparison in more places, especially for attributes. | Patrick Walton | 2014-10-14 | 1 | -3/+5 |
| | | | | 75% improvement in style recalc for Guardians of the Galaxy. | ||||
* | Privatize EventTarget and EventListenerEntry | Tim Taubert | 2014-10-13 | 1 | -1/+1 |
| | |||||
* | Privatize InheritTypes | Tim Taubert | 2014-10-13 | 1 | -1/+2 |
| | |||||
* | Take the prefix from createElementNS into account for HTML elements | Gilles Leblanc | 2014-10-06 | 1 | -4/+4 |
| | | | | Fixes #3139 | ||||
* | Use string-cache's Namespace type | Keegan McAllister | 2014-09-29 | 1 | -3/+2 |
| | |||||
* | Upgrade to rustc d2b30f7d3 2014-09-23 | Simon Sapin | 2014-09-29 | 1 | -1/+1 |
| | |||||
* | Made some DOM fields private. | ProgramFOX | 2014-09-26 | 1 | -1/+1 |
| | | | | Relevant to #2242. | ||||
* | Use JSTraceable everywhere | Manish Goregaokar | 2014-09-24 | 1 | -1/+1 |
| | |||||
* | Convert various helper traits from &JSRef to JSRef | Cameron Zwarich | 2014-09-20 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | 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 conversion | Cameron Zwarich | 2014-09-20 | 1 | -6/+6 |
| | | | | | Change all of the <Class>Methods traits to take `self` instead of `&self`. |