aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/textencoder.rs
Commit message (Collapse)AuthorAgeFilesLines
* Replace NonZero<*mut JSObject> with a wrapper to enable local trait impls.Simon Sapin2017-10-161-4/+4
|
* Remove use of unstable box syntax.Simon Sapin2017-10-161-1/+1
| | | | | | | | | | | | | | | | | | | | http://www.robohornet.org gives a score of 101.36 on master, and 102.68 with this PR. The latter is slightly better, but probably within noise level. So it looks like this PR does not affect DOM performance. This is expected since `Box::new` is defined as: ```rust impl<T> Box<T> { #[inline(always)] pub fn new(x: T) -> Box<T> { box x } } ``` With inlining, it should compile to the same as box syntax.
* Rename Root<T> to DomRoot<T>Anthony Ramine2017-09-261-3/+3
| | | | | | | In a later PR, DomRoot<T> will become a type alias of Root<Dom<T>>, where Root<T> will be able to handle all the things that need to be rooted that have a stable traceable address that doesn't move for the whole lifetime of the root. Stay tuned.
* Rename dom::bindings::js to dom::bindings::rootAnthony Ramine2017-09-261-1/+1
|
* Upgrade to rustc 1.21.0-nightly (599be0d18 2017-07-26)Simon Sapin2017-07-271-1/+1
|
* Remove some usage of rust-encodingSimon Sapin2017-05-271-5/+2
|
* Make #[dom_struct] a proc_macro attributeAnthony Ramine2017-02-241-0/+1
|
* Update js.Ms2ger2017-02-151-2/+2
| | | | Fixes #15553.
* Rewrite TextEncoder::Encode to use typed array API. Fixes #15504Michael Nelson2017-02-131-9/+5
|
* script creates methods taking '*mut JSContext' unsafeAbelardo E. Mendoza2016-11-141-12/+10
| | | | rebase + marked the necessary new code as unsafe
* Pass a &GlobalScope to WebIDL static methods and constructorsAnthony Ramine2016-10-061-3/+2
|
* Make reflect_dom_object take a &GlobalScopeAnthony Ramine2016-10-061-2/+3
|
* removed support for UTF-16 in TextEncoderAshwin R2016-09-271-31/+10
|
* Compile WebIDL return type "object" to NonZero<*mut JSObject>Anthony Ramine2016-08-301-2/+3
|
* Root js_object in TextEncoder::EncodeAnthony Ramine2016-08-301-3/+4
|
* Move DOMString back to scriptAnthony Ramine2016-05-241-2/+1
| | | | This entirely removes the 'non-geckolib' feature of the util crate.
* Removed unused importsPer Lundberg2016-05-151-1/+1
| | | | This fixes #11185.
* Update SpiderMonkeyAnthony Ramine2016-05-031-2/+3
|
* Replaced DOMString constructor by conversion functions.Alan Jeffrey2015-11-121-1/+1
| | | | | | 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-1/+1
| | | | | | | | | | 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.
* merge from masterrohan.prinja2015-11-031-7/+5
|\
| * Remove the pointless TextEncoder::encoding field.Ms2ger2015-10-301-7/+5
| |
* | rearrange imports to be in alphabetical orderrohan.prinja2015-10-301-1/+1
| |
* | more refactoringrohan.prinja2015-10-301-1/+1
|/
* Refactor Error enum usage to consistently be qualifiedAnthony Urena2015-10-061-4/+3
|
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-241-2/+2
|
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-7/+3
| | | | This merges import blocks that were reported by tidy as unmerged.
* Make the traits for the IDL interfaces take &selfAnthony Ramine2015-08-271-3/+3
|
* make dom_struct derive HeapSizeOf,João Oliveira2015-08-271-1/+0
| | | | closes #7357
* sort all usesJohann Tuffe2015-08-201-4/+4
|
* Cleanup NodeIterator, Range, ServoHTMLParser, TextEncoder, URLHelper, URL, ↵Manish Goregaokar2015-08-181-2/+2
| | | | VirtualMethods
* Measure heap memory usage for more types. Fixes #6951Bogdan Cuza2015-08-131-0/+2
|
* Add spec linksBogdan Cuza2015-07-281-1/+1
|
* Upgrade to SM 39Michael Wu2015-06-191-6/+6
|
* Upgrade to rustc 551a74dddd84cf01440ee84148ebd18bc68bd7c8.Simon Sapin2015-05-051-1/+1
|
* Auto merge of #5903 - psdh:textencoder5900, r=Ms2gerbors-servo2015-05-011-2/+1
|\ | | | | | | | | | | | | | | | | | | ... #5900 Fixes #5900 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5903) <!-- Reviewable:end -->
| * TextEncoder::Constructor should not trim whitespaces or lowercase labels #5900Prabhjyot Singh Sodhi2015-04-301-2/+1
| | | | | | | | Fixes #5900
* | Use a better name in TextEncoder::Encode.Ms2ger2015-05-011-3/+3
|/
* Remove as_slice() calls from script.Ms2ger2015-04-261-2/+2
|
* Throw RangeErrors in TextEncoder/TextDecoder constructors.Aneesh Agrawal2015-04-141-5/+3
| | | | | | | | Fixes #5620. Fix the TODOs and FIXMEs to comply with the spec. Add test case for passing invalid invalid labels. Update test metadata; three test cases have been resolved upstream and will be fixed whenever the rust-encoding dependency is sufficiently upgraded.
* Implement TextEncoderyodalee2015-03-311-0/+94
Fixes #4768.