aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xmlhttprequest.rs
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused imports.Ms2ger2015-12-121-1/+0
|
* Auto merge of #8930 - frewsxcv:event-type-atom, r=noxbors-servo2015-12-111-20/+22
|\ | | | | | | | | | | | | | | | | | | | | | | Pass around event types as Atoms instead of Strings `Event` internally stores the `type` as an `Atom`, and we're `String`s everywhere, which can cause unnecessary allocations to occur since they'll end up as `Atom`s anyways. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8930) <!-- Reviewable:end -->
| * Pass around event types as Atoms instead of StringsCorey Farwell2015-12-101-20/+22
| | | | | | | | | | | | `Event` internally stores the `type` as an `Atom`, and we're `String`s everywhere, which can cause unnecessary allocations to occur since they'll end up as `Atom`s anyways.
* | Auto merge of #8926 - frewsxcv:no-map, r=SimonSapinbors-servo2015-12-111-4/+12
|\ \ | | | | | | | | | | | | | | | | | | | | | Prefer 'if let' over 'map() with side effects' <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8926) <!-- Reviewable:end -->
| * | Prefer 'if let' over 'map() with side effects'Corey Farwell2015-12-101-4/+12
| |/
* / Fix warnings: Use Vec.extend_from_slice instead of Vec.push_allTetsuharu OHZEKI2015-12-101-5/+5
|/
* Implement responseXML API and document response type for XHRJitendra Jain2015-12-091-4/+115
|
* Auto merge of #8853 - KiChjang:generic-task-sources, r=jdmbors-servo2015-12-071-3/+3
|\ | | | | | | | | | | | | | | | | | | Split fn script_chan into 5 different task channel fn Partial #7959. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8853) <!-- Reviewable:end -->
| * Split fn script_chan into 5 different task channel fnKeith Yeung2015-12-061-3/+3
| |
* | implement support for withCredentialsJigesh Mehta2015-12-041-0/+3
|/
* Implement final_mime_type and final_charset helpers and use in text_responseJitendra Jain2015-12-021-13/+30
|
* 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("...").
* Auto merge of #8428 - Ms2ger:conversions, r=Manishearthbors-servo2015-11-131-22/+22
|\ | | | | | | | | | | | | | | Update js. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8428) <!-- Reviewable:end -->
| * Use the conversion traits from js.Ms2ger2015-11-121-22/+22
| |
* | Auto merge of #7844 - Wafflespeanut:requests, r=jdmbors-servo2015-11-121-1/+1
|\ \ | |/ |/| | | | | | | | | | | | | | | Cancelable network requests! fixes #4974 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7844) <!-- Reviewable:end -->
| * Implement cancellation listener for cancelling network requestsRavi Shankar2015-11-121-1/+1
| |
* | Execute XHR timeout callbacks directly. (Fixes #8468.)benshu2015-11-111-31/+6
| |
* | XHR timeouts use same abstraction as scripts timers. (fixes #3396)benshu2015-11-111-29/+41
|/
* Implement the overrideMimeType method for XMLHttpRequestJitendra Jain2015-11-051-0/+21
|
* Make DOMString a newtype around String, rather than a typedef.Ms2ger2015-11-041-10/+12
| | | | | | | | | | 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.
* Use DOMString::new() somewhat consistently.Ms2ger2015-11-041-1/+1
|
* Get rid of a bunch of explicit derefsDavid Zbarsky2015-11-031-13/+10
|
* merge from masterrohan.prinja2015-11-031-5/+4
|\
| * Removed JS::root Fixes #8251nxnfufunezn2015-10-311-1/+1
| |
| * Initialize dom struct fields in declaration orderMichael Wu2015-10-301-2/+1
| |
| * Infer types when appropriateMichael Wu2015-10-301-1/+1
| |
| * Avoid a Vec copy in SendParam::extract.Ms2ger2015-10-301-1/+1
| |
* | rearrange imports to be in alphabetical orderrohan.prinja2015-10-301-2/+1
| |
* | more refactoringrohan.prinja2015-10-301-1/+2
| |
* | move Castable into dom::bindings::inheritancerohan.prinja2015-10-301-1/+2
|/
* remove get_rooted() and replace all references to it with references to get()rohan.prinja2015-10-291-1/+1
|
* Clean up the cast callsAnthony Ramine2015-10-211-6/+4
|
* Introduce trait CastableAnthony Ramine2015-10-211-7/+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
* Do not root XMLHttpRequest::uploadAnthony Ramine2015-10-191-4/+2
|
* Make AsyncResponseListener methods take `&mut self`.Eli Friedman2015-10-151-3/+3
|
* Auto merge of #8020 - nox:codegen-derived, r=Ms2gerbors-servo2015-10-151-13/+1
|\ | | | | | | | | | | | | | | | | | | | | | | Generate all Derived implementations in codegen Follow-up of #7873. @Ms2ger r? :) <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8020) <!-- Reviewable:end -->
| * Generate all Derived implementations in codegenAnthony Ramine2015-10-141-13/+1
| |
* | Support the updated spidermonkey bindingsMichael Wu2015-10-141-4/+4
|/
* Generate the TypeId enums in codegenAnthony Ramine2015-10-141-3/+3
|
* Refactor away duplication of get_rooted functionalityPierre Chevalier2015-10-081-1/+1
| | | | | | | | | | | | | | Refactor .get().map(Root::from_rooted) and .get().map(|foo| foo.root()) to .get_rooted() on MutNullableHeap objects. First part done mechanically with the following comand: sed -i s/"get().map(Root::from_rooted)"/"get_rooted()"/g *.rs Second part done manually after finding them with git grep ".get().map(" Fixes 7929.
* Refactor Error enum usage to consistently be qualifiedAnthony Urena2015-10-061-32/+30
|
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-241-11/+11
|
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-18/+12
| | | | This merges import blocks that were reported by tidy as unmerged.
* Move EventTargetTypeId/NodeTypeId to DOMClassMichael Wu2015-09-121-1/+1
|
* Fix reported test-tidy errorsBrandon Fairchild2015-09-011-1/+1
| | | | | This fixes lines that were reported to have missing space after a comma.
* Enforce linking to spec for method implementations via macrosCorey Farwell2015-08-311-0/+1
|
* Make test-tidy check that braces have spaces before or after themwilmoz2015-08-311-1/+1
|
* Time distribution across script event categories.benshu2015-08-281-1/+2
|
* Make the traits for the IDL interfaces take &selfAnthony Ramine2015-08-271-22/+22
|
* Remove helper traitsAnthony Ramine2015-08-271-40/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.