aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/devtools.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Rename `Reflectable` to `DomObject`.Corey Farwell2016-12-081-1/+1
| | | | Fixes https://github.com/servo/servo/issues/8473.
* Remove usage of FnBox for animation frame callbacks (fixes #14416)Anthony Ramine2016-12-061-6/+3
|
* Replace script thread root browsing context by a collection of documents.Alan Jeffrey2016-11-081-68/+40
|
* Setting a devtools timeline marker may fail, due to pipeline lookup failure.Alan Jeffrey2016-10-121-5/+10
|
* Remove intrinsic Root::r()Anthony Ramine2016-10-111-1/+1
|
* Make devtools::handle_evaluate_js take a &GlobalScopeAnthony Ramine2016-10-061-3/+2
|
* Move JS evaluation functions to GlobalScopeAnthony Ramine2016-10-061-1/+1
|
* Introduce GlobalScope::devtools_chanAnthony Ramine2016-10-061-1/+2
|
* Introduce GlobalScope::live_devtools_updatesAnthony Ramine2016-10-061-1/+2
|
* Reorder `use` statementsUK9922016-09-091-2/+3
|
* Implement Reflectable for GlobalRef.Josh Matthews2016-09-071-0/+1
|
* Update rust-mozjs dependencyGuillaume Gomez2016-08-241-3/+6
|
* Removed some sources of panic from script thread and devtools, using Option ↵David Raifaizen2016-07-251-30/+55
| | | | values instead to indicate when a pipeline context is missing where appropriate. Additionally, removed erroneous method get_browsing_context.
* Switch to using the new rooted!/RootedGuard API for rooting.Eduard Burtescu2016-07-041-11/+11
|
* Make the net monitor panel in FF's devtools show meaningful output.Josh Matthews2016-06-061-0/+9
| | | | | | | | | | | | | 0) Advertise support for the network monitor in the initial protocol communication. 1) Only notify the developer tools server about the final request in an HTTP transaction. 2) Add timing information for connecting to the HTTP server and sending the HTTP request. 3) Reduce duplication between various networkEventUpdate structures by creating a helper function that merges two JSON structures together. This also corrects the JSON structure so the devtools client interprets the output correctly. 4) Calculate various header size fields correctly. 5) Remove unnecessary usize->u32 casts by making the appropriate fields usize. 6) Add header values to request and response header messages. 7) Support triggering page reloads via the devtools client.
* Use JSautoCompartment in devtools handle_evaluate_js to avoid segfaultManish Goregaokar2016-05-271-1/+3
| | | | fixes #11457
* Remove the IterableContext trait.Ms2ger2016-05-241-1/+1
| | | | It serves no purpose.
* Move DOMString back to scriptAnthony Ramine2016-05-241-1/+1
| | | | This entirely removes the 'non-geckolib' feature of the util crate.
* removed instances of &Root<BrowsingContext>Connor Brewster2016-05-111-9/+9
|
* remove page and move functionality to browing contextConnor Brewster2016-05-111-27/+32
| | | | | | | | | | Allow for adding history items Fixed nested iframe test failure Cleanup and small refactors fixup
* Auto merge of #10327 - frewsxcv:get-prefix, r=ms2gerbors-servo2016-04-021-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | Remove `get_*` on getters as per RFC 0344. https://github.com/rust-lang/rfcs/blob/master/text/0344-conventions-galore.md#gettersetter-apis https://github.com/servo/servo/issues/6224 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10327) <!-- Reviewable:end -->
| * Remove `get_*` on getters as per RFC 0344.Corey Farwell2016-03-311-1/+1
| | | | | | | | | | | | https://github.com/rust-lang/rfcs/blob/master/text/0344-conventions-galore.md#gettersetter-apis https://github.com/servo/servo/issues/6224
* | Use serde in devtoolsAnthony Ramine2016-03-311-2/+2
|/
* Completed implementation of devtools' `getLayout`.benshu2016-02-241-6/+43
|
* task -> threadrohan.prinja2016-01-101-1/+1
|
* Rustfmt some of script.Ms2ger2015-11-181-16/+25
|
* Replaced DOMString constructor by conversion functions.Alan Jeffrey2015-11-121-3/+3
| | | | | | Replaced DOMString(...) by DOMString::from(...). Replaced ....0 by String::from(...). Removed any uses of .to_owner() in DOMString::from("...").
* Use the conversion traits from js.Ms2ger2015-11-121-26/+30
|
* Make DOMString a newtype around String, rather than a typedef.Ms2ger2015-11-041-3/+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.
* Get rid of a bunch of explicit derefsDavid Zbarsky2015-11-031-5/+5
|
* Auto merge of #8221 - wenderen:8130-reorganise, r=jdmbors-servo2015-11-041-1/+2
|\ | | | | | | | | | | | | | | | | | | move modules around for #8130 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8221) <!-- Reviewable:end -->
| * move Castable into dom::bindings::inheritancerohan.prinja2015-10-301-1/+2
| |
* | Avoid some string copies in handle_modify_attribute.Ms2ger2015-11-021-4/+4
|/
* Introduce trait CastableAnthony Ramine2015-10-211-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This trait is used to hold onto the downcast and upcast functions of all castable IDL interfaces. A castable IDL interface is one which either derives from or is derived by other interfaces. The deriving relation is represented by implementations of marker trait DerivedFrom<T: Castable> generated in InheritTypes. /^[ ]*use dom::bindings::codegen::InheritTypes::.*(Base|Cast|Derived)/ { /::[a-zA-Z]+(Base|Cast|Derived);/d s/([{ ])[a-zA-Z]+(Base|Cast|Derived), /\1/g s/([{ ])[a-zA-Z]+(Base|Cast|Derived), /\1/g s/, [a-zA-Z]+(Base|Cast|Derived)([},])/\2/g s/, [a-zA-Z]+(Base|Cast|Derived)([},])/\2/g /\{([a-zA-Z]+(Base|Cast|Derived))?\};$/d s/\{([a-zA-Z_]+)\};$/\1;/ } s/([a-zA-Z]+)Cast::from_ref\(\&?\**([a-zA-Z_]+)(\.r\(\))?\)/\2.upcast::<\1>()/g s/([a-zA-Z]+)Cast::from_ref\(\&?\**([a-zA-Z_]+)(\.[a-zA-Z_]+\(\))?\)/\2\3.upcast::<\1>()/g s/\(([a-zA-Z]+)Cast::from_ref\)/\(Castable::upcast::<\1>\)/g s/([a-zA-Z]+)Cast::from_root/Root::upcast::<\1>/g s/([a-zA-Z]+)Cast::from_layout_js\(\&([a-zA-Z_.]+)\)/\2.upcast::<\1>()/g s/([a-zA-Z]+)Cast::to_ref\(\&?\**([a-zA-Z_]+)(\.r\(\))?\)/\2.downcast::<\1>()/g s/([a-zA-Z]+)Cast::to_ref\(\&?\**([a-zA-Z_]+)(\.[a-zA-Z_]+\(\))?\)/\2\3.downcast::<\1>()/g s/\(([a-zA-Z]+)Cast::to_ref\)/\(Castable::downcast::<\1>\)/g s/([a-zA-Z]+)Cast::to_root/Root::downcast::<\1>/g s/([a-zA-Z]+)Cast::to_layout_js\(&?([a-zA-Z_.]+(\(\))?)\)/\2.downcast::<\1>()/g s/\.is_document\(\)/.is::<Document>()/g s/\.is_htmlanchorelement\(\)/.is::<HTMLAnchorElement>()/g s/\.is_htmlappletelement\(\)/.is::<HTMLAppletElement>()/g s/\.is_htmlareaelement\(\)/.is::<HTMLAreaElement>()/g s/\.is_htmlbodyelement\(\)/.is::<HTMLBodyElement>()/g s/\.is_htmlembedelement\(\)/.is::<HTMLEmbedElement>()/g s/\.is_htmlfieldsetelement\(\)/.is::<HTMLFieldSetElement>()/g s/\.is_htmlformelement\(\)/.is::<HTMLFormElement>()/g s/\.is_htmlframesetelement\(\)/.is::<HTMLFrameSetElement>()/g s/\.is_htmlhtmlelement\(\)/.is::<HTMLHtmlElement>()/g s/\.is_htmlimageelement\(\)/.is::<HTMLImageElement>()/g s/\.is_htmllegendelement\(\)/.is::<HTMLLegendElement>()/g s/\.is_htmloptgroupelement\(\)/.is::<HTMLOptGroupElement>()/g s/\.is_htmloptionelement\(\)/.is::<HTMLOptionElement>()/g s/\.is_htmlscriptelement\(\)/.is::<HTMLScriptElement>()/g s/\.is_htmltabledatacellelement\(\)/.is::<HTMLTableDataCellElement>()/g s/\.is_htmltableheadercellelement\(\)/.is::<HTMLTableHeaderCellElement>()/g s/\.is_htmltablerowelement\(\)/.is::<HTMLTableRowElement>()/g s/\.is_htmltablesectionelement\(\)/.is::<HTMLTableSectionElement>()/g s/\.is_htmltitleelement\(\)/.is::<HTMLTitleElement>()/g
* Improve implementation of DOMRect and implement DOMRectReadOnlyTill Schneidereit2015-10-171-2/+2
| | | | Passes most tests from test-css.
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-241-4/+4
|
* Emit markers for all events, not just UI events.Ms2ger2015-09-161-24/+4
|
* Remove helper traitsAnthony Ramine2015-08-271-3/+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-10/+10
|
* Replace uses of `for foo in bar.iter()` and `for foo in bar.iter_mut()`João Oliveira2015-08-151-1/+1
| | | | closes #7197
* Improve documentation for devtools messages a bit more.Josh Matthews2015-08-131-3/+6
|
* fixup! Simplify devtools frame marker notification. Record each frame tick ↵Josh Matthews2015-08-121-4/+3
| | | | based on a single message sent from the script task that ticked.
* Simplify devtools frame marker notification. Record each frame tick based on ↵Josh Matthews2015-08-121-3/+6
| | | | a single message sent from the script task that ticked.
* Closes #6724 (Allows object evaluation in devtools)Harrison G2015-08-091-3/+14
| | | | | | | | | | | | | | The purpose of this is to fix how objects were previously evaluated in the developer tools. - Before this, evaluating an object such as the `window` would `panic!` - After this, evaluating an object such as the `window` outputs `[object Window]` A few things to note: - This commit contains `unsafe` code. - This does not contain a test because the developer tools cannot be properly tested until #5971 lands.
* Warning police.Josh Matthews2015-08-041-1/+0
| | | | Closes #6949.
* Auto merge of #6920 - Wafflespeanut:NIT, r=jdmbors-servo2015-08-031-1/+0
|\ | | | | | | | | | | | | | | | | | | Removed an invalid FIXME and fixed some doc comments... There are some bad module-level doc comments in `flow.rs` which has directly affected [Servo's docs](http://doc.servo.org/layout/flow/index.html) and so, this fixes that. Oh, and #6728 is having a hard time getting closed and so I've also removed the `FIXME` comment related to it. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6920) <!-- Reviewable:end -->
| * Removed an invalid FIXME and fixed a doc commentRavi Shankar2015-08-031-1/+0
| |
* | [FIX] Bug fix #6756Kayo Hamid2015-08-021-3/+2
|/ | | | Signed-off-by: Kayo Hamid <kayo@bvcupons.com.br>
* Persuading devtools to communicate with the workers; r=jdmRavi Shankar2015-08-011-17/+7
|
* devtools: Convert the developer tools to run over IPC.Patrick Walton2015-07-271-10/+12
|