aboutsummaryrefslogtreecommitdiffstats
path: root/components/util/str.rs
Commit message (Collapse)AuthorAgeFilesLines
* Move util::str to styleAnthony Ramine2016-07-051-127/+0
|
* Move LowercaseString near its only consumer.Ms2ger2016-06-061-23/+0
|
* Move LengthOrPercentageOrAuto to style::attr.Ms2ger2016-06-061-8/+0
|
* Move c_str_to_string to its only consumer.Ms2ger2016-06-051-10/+1
|
* Parse HTMLInputElement attributesKeith Yeung2016-05-241-0/+4
|
* Move DOMString back to scriptAnthony Ramine2016-05-241-112/+2
| | | | This entirely removes the 'non-geckolib' feature of the util crate.
* Use num_traits in utilMatt Brubeck2016-05-171-1/+1
|
* Use byte indices instead of char indices for text runsMatt Brubeck2016-04-281-38/+1
| | | | | | | Replace character indices with UTF-8 byte offsets throughout the code dealing with text shaping and breaking. This eliminates a lot of complexity when converting from one to the other, and interoperates better with the rest of the Rust ecosystem.
* Add parsing of double values in style attributesKeith Yeung2016-04-251-5/+56
|
* Remove extra definition of WHITESPACE under components/util/str.rszakorgyula2016-04-201-13/+9
|
* Move `util::str::parse_length` into 'style' component.Corey Farwell2016-03-241-70/+1
| | | | | The function is only used in the 'style' component, so we'll move it there alongside other relevant parse functions.
* Implement From<DOMString> for AtomAnthony Ramine2016-02-241-0/+7
|
* Move parse_integer and parse_unsigned_integer from util::str to style::attrzakorgyula2016-02-171-44/+0
|
* refactor, moving functions into attr and htmlfontelemend fixes #9639 #9638Jayflux2016-02-151-200/+2
|
* #9640 Refactor: Move util::str::is_token to script::dom::bindings::strPeter2016-02-141-34/+0
|
* Say farewell to in-tree HeapSizeOfAnthony Ramine2016-02-041-2/+2
|
* fix websocket header validation, ensure it meets token requirements, addjmr02016-01-241-0/+34
| | | | testing
* Update XHR BodyInit, update extract method implSt.Spyder2016-01-181-1/+5
|
* Use features to prevent the util component from entraining the world in ↵Bobby Holley2016-01-111-84/+3
| | | | GeckoLib builds.
* Fix a bunch of clippy lintsJohannes Linke2016-01-021-13/+11
|
* Implement non-zero dimension attribute parsingCorey Farwell2015-12-241-0/+12
| | | | | | | | | | | | | Fixes #8445 The only attributes I found that we have implemented that uses non-zero dimenion attributes: * `width` for `<td>` and `<th>` (table cells) * `width` for `<table>` I updated these implementations to use the new non-zero dimension attribute parsing and added associated regression tests.
* compositing: Split Servo up into multiple sandboxed processes.Patrick Walton2015-11-191-1/+1
| | | | | Multiprocess mode is enabled with the `-M` switch, and sandboxing is enabled with the `-S` switch.
* Make util::str::parse_length work with floatsCorey Farwell2015-11-141-1/+1
|
* fix impl of parse_length()rohan.prinja2015-11-141-4/+23
|
* Made DOMString opaque.Alan Jeffrey2015-11-121-1/+1
| | | | | Removed the "pub" attribute from the String field of DOMString. This enables experimenting with other string representations.
* Added in-place mutation to DOMString.Alan Jeffrey2015-11-121-0/+13
| | | | | The methods which are currently implemented are the ones on String that are currently being used: string.push_str(...), string.clear() and string.extend(...). We may want to revisit this API.
* Made DOMString implement !Send.Alan Jeffrey2015-11-121-0/+2
| | | | This change makes DOMStrings only accessible from the main JS thread.
* Added conversion functions between DOMString and String.Alan Jeffrey2015-11-121-0/+18
| | | | | Implemented From<String> and From<&str> for DOMString, and From<DOMString> for String.
* Auto merge of #8479 - frewsxcv:domstring-default, r=Ms2gerbors-servo2015-11-131-0/+6
|\ | | | | | | | | | | | | | | Implement Default trait for DOMString <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8479) <!-- Reviewable:end -->
| * Implement Default trait for DOMStringCorey Farwell2015-11-111-0/+6
| |
* | Use the conversion traits from js.Ms2ger2015-11-121-0/+84
|/
* Add Dimension member to AttrValueCorey Farwell2015-11-091-1/+1
| | | | Fixes #8417
* Make DOMString a newtype around String, rather than a typedef.Ms2ger2015-11-041-2/+59
| | | | | | | | | | 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.
* display input caret for textarea. fixes #7758Florian Merz2015-10-211-1/+14
|
* Link to the HTML multipage spec, not the single-page one.Eli Friedman2015-10-131-4/+4
|
* Fix issues found by rust-clippyCorey Farwell2015-10-121-4/+3
|
* Implement `size` attribute for <font> elementCorey Farwell2015-09-301-22/+84
|
* Make util::str::str_join consistent with SliceConcatExt::joinCorey Farwell2015-09-301-2/+2
| | | | | | | | | | Prior to this commit, `str_join` would skip empty items at the start of the `Iterator` until it found a non-empty item. This contradicts `SliceConcatExt::join` which doesn't skip anything. Brought up in: https://github.com/servo/servo/pull/7776#issuecomment-144317281
* Split Au type into separate crate, with minimal dependencies.Glenn Watson2015-10-011-1/+1
|
* Make util::str::str_join operate on IteratorsCorey Farwell2015-09-281-2/+4
|
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-241-2/+2
|
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-3/+1
| | | | This merges import blocks that were reported by tidy as unmerged.
* Fix reported test-tidy errorsBrandon Fairchild2015-09-011-3/+3
| | | | | This fixes lines that were reported to have missing space after a comma.
* replace .len() == 0 with is_empty()João Oliveira2015-08-141-4/+4
| | | | closes #7198
* Use local slice_charsJack Moffitt2015-07-311-0/+24
| | | | | | | StrExt::slice_chars is deprecated and will be removed in Rust. This lifts the implementation from Rust libstd and puts it in util::str. This fixes a bunch of deprecation warnings in Servo.
* Create and utilize utility for joining strsCorey Farwell2015-07-081-0/+8
|
* Remove null_str_as_empty and null_str_as_empty_ref functions.Ms2ger2015-06-101-16/+0
| | | | | With just one caller between the two functions, there doesn't seem to be much point in having the abstraction.
* script: Implement the `width` and `height` attributes for iframes perPatrick Walton2015-05-201-1/+1
| | | | | | HTML5 § 4.8.6. Improves Amazon and Ars Technica.
* Upgrade to rustc 551a74dddd84cf01440ee84148ebd18bc68bd7c8.Simon Sapin2015-05-051-6/+6
|
* Implement Clone for Copy types.Ms2ger2015-04-281-1/+1
|