aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/console.rs
Commit message (Collapse)AuthorAgeFilesLines
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Sort `use` statementsSimon Sapin2018-11-061-1/+1
|
* `cargo fix --edition`Simon Sapin2018-11-061-4/+4
|
* Format script componentchansuke2018-09-191-8/+10
|
* Hold stderr lock when using stdout through Console APIs.Josh Matthews2017-06-161-37/+65
|
* Pass a &GlobalScope to WebIDL static methods and constructorsAnthony Ramine2016-10-061-19/+18
|
* Make Console::send_to_devtools take a &GlobalScopeAnthony Ramine2016-10-061-17/+17
|
* Introduce GlobalScope::pipeline_idAnthony Ramine2016-10-061-2/+3
|
* Introduce GlobalScope::devtools_chanAnthony Ramine2016-10-061-1/+1
|
* Move console timers to GlobalScopeAnthony Ramine2016-10-061-39/+2
|
* Remove GlobalRef::get_worker_idAnthony Ramine2016-10-041-1/+6
|
* More code refactoring (exampleVar to example_var)Arthur Marble2016-09-181-2/+2
|
* Use fn pipeline_id consistently, not fn pipelineAneesh Agrawal2016-09-131-1/+1
| | | | | | | | | | | | Consistently use the name 'pipeline_id' to refer to a function that returns an (optional) PipelineId. This was prompted by discovering both fn pipeline and fn pipeline_id doing the same job in htmliframeelement.rs. Note that there is fn pipeline in components/compositing/compositor.rs, but that actually returns an Option<&CompositionPipeline>, not any kind of PipelineId.
* Make console a namespace (fixes #13010)Anthony Ramine2016-09-101-44/+21
|
* Store Console timers in globalsAnthony Ramine2016-09-071-18/+38
|
* Move DOMString back to scriptAnthony Ramine2016-05-241-1/+1
| | | | This entirely removes the 'non-geckolib' feature of the util crate.
* Implement console#time and console#timeEnd methodsJoshua Holmer2016-01-251-0/+39
| | | | Fixes #9325
* Add global default method for Reflectable traitChad Kimes2016-01-111-3/+3
|
* Introduce Console::send_to_devtoolsAnthony Ramine2016-01-091-17/+19
| | | | This replaces propagate_console_msg and wraps prepare_message.
* Remove the global field from ConsoleAnthony Ramine2016-01-091-6/+4
| | | | We can just go through the reflector.
* Rustfmt some of script.Ms2ger2015-11-181-5/+9
|
* Replaced DOMString constructor by conversion functions.Alan Jeffrey2015-11-121-2/+2
| | | | | | Replaced DOMString(...) by DOMString::from(...). Replaced ....0 by String::from(...). Removed any uses of .to_owner() in DOMString::from("...").
* Make DOMString a newtype around String, rather than a typedef.Ms2ger2015-11-041-7/+4
| | | | | | | | | | This should make it somewhat easier to experiment with alternative representations in the future. To reduce churn, this commit leaves the String field public, though. Also, this will allow us to use the default String type to represent the IDL USVString type, which explicitly forbids unpaired surrogates, ans as such is a better match to the Rust String type.
* more refactoringrohan.prinja2015-10-301-1/+1
|
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-241-1/+1
|
* Make the traits for the IDL interfaces take &selfAnthony Ramine2015-08-271-7/+7
|
* Remove helper traitsAnthony Ramine2015-08-271-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* make dom_struct derive HeapSizeOf,João Oliveira2015-08-271-1/+0
| | | | closes #7357
* sort all usesJohann Tuffe2015-08-201-1/+1
|
* Fix existing syntactics nits.Josh Matthews2015-08-161-1/+1
|
* Measure heap memory usage for more types. Fixes #6951Bogdan Cuza2015-08-131-0/+1
|
* Rename SendConsoleMessage to ConsoleAPIBrandon Fairchild2015-08-101-1/+1
| | | | Fixes #7131.
* Fixes issue #6866Harrison G2015-08-021-13/+5
|
* Add spec linksBogdan Cuza2015-07-281-0/+1
|
* devtools: Convert the developer tools to run over IPC.Patrick Walton2015-07-271-2/+2
|
* Upgrade to SM 39Michael Wu2015-06-191-4/+4
|
* fixes #5232, more console log levels sent to devtoolsJacob Parker2015-06-011-8/+18
|
* Use a struct variant for clarityTamir Duberstein2015-05-231-1/+6
|
* Remove as_slice() calls from script.Ms2ger2015-04-261-1/+1
|
* Add/update comments with links to specCorey Farwell2015-04-141-0/+6
| | | | | | | | | | Extracted out of #5649 * add more hyperlinks to associated specification for structs/methods * follow redirects and update links * replace broken links * removal of WHATWG multipage page name since the page name is not guaranteed to be stable
* Support any number of arguments to console methods (fixes #5495).Bogdan Cuza2015-04-041-12/+22
|
* Fix ConsoleMsg in ConsoleAPICall for log messages in the Developer Tools web ↵Himaja2015-03-191-1/+2
| | | | console.
* Move everything unrelated to the frame tree out of Page and into Document or ↵Josh Matthews2015-03-031-2/+3
| | | | Window. Reduce the API surface of Page to a bare minimum to allow for easier future removal.
* Do not glob-export DevtoolsControlMsg variants.Ruud van Asseldonk2015-02-131-2/+3
|
* Add console message support to devtools. Does not actually cause logging to ↵Sagar Muchhal2015-02-051-5/+24
| | | | occur in the remote console.
* 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.
* Fix obsolete format traits.Ms2ger2015-01-021-6/+6
| | | | They are to be removed from the language in the next rust upgrade.
* 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
* Updated reflect_dom_object to be passed by valueMichael Booth2014-11-301-1/+1
|
* Use #[dom_struct] everywhereManish Goregaokar2014-10-161-3/+1
|