aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/str.rs
Commit message (Collapse)AuthorAgeFilesLines
* Fix some new warningsSimon Sapin2019-06-221-2/+2
|
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Run rustfmt on selectors, servo_arc, and style.Bobby Holley2018-04-101-43/+48
| | | | | | | | | | This was generated with: ./mach cargo fmt --package selectors && ./mach cargo fmt --package servo_arc && ./mach cargo fmt --package style Using rustfmt 0.4.1-nightly (a4462d1 2018-03-26)
* style: remove unused AsciiExt imports.Emilio Cobos Álvarez2018-03-041-1/+0
| | | | eq_ignore_ascii_case is not in AsciiExt since rustc 1.23.
* Avoid the generic writer parameter for PropertyDeclaration serialization.Bobby Holley2018-01-221-0/+99
| | | | MozReview-Commit-ID: JR3IcL1NRHO
* Allow unused imports for AsciiExt in style code.Simon Sapin2017-11-091-1/+1
| | | | See #19128, this part is cherry-picked so Gecko can build with rust nightly.
* Fix commonmark Markdown warnings in docs, part 1Matt Brubeck2017-10-171-1/+1
| | | | | | | | Fixes warnings from rust-lang/rust#44229 when `--enable-commonmark` is passed to rustdoc. This is mostly a global find-and-replace for bare URIs on lines by themselves in doc comments.
* Parse srcset attributeNeha2017-10-031-1/+2
|
* Rework MediaType to be an atom-based struct instead of an enum.Brad Werth2017-08-091-0/+11
| | | | MozReview-Commit-ID: 1Tfrs9PBkhA
* style: Make starts_with_ignore_ascii_case not lie if the strings are the ↵Emilio Cobos Álvarez2017-07-081-1/+1
| | | | same length.
* style: Fix starts_with_ignore_ascii_case.Emilio Cobos Álvarez2017-07-081-1/+1
| | | | | | | In particular, fix a panic when the input is not ASCII and we happen to index in something that is not a char boundary. This fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1379380
* Support vendor prefix keyframes rule.Hiroyuki Ikezoe2017-04-211-0/+7
| | | | | | | If there are multiple prefixed/non-prefixed @keyframes with the same name; * non-prefixed rule overrides earlier rules. * prefixed rule overrides earlier prefixed rules.
* Use ascii_case_insensitive_phf_map! in PropertyId::parseSimon Sapin2017-02-261-11/+0
|
* Auto merge of #14796 - jlevesy:jl-match-to-if-let, r=Wafflespeanutbors-servo2016-12-311-3/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | replace match by if let statements if possible <!-- Please describe your changes on the following line: --> Hi there, This PR replaces `match` statements by `if let` when possible. Thanks for reviewing --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #14788 <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because this PR is a code cleanup patch. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14796) <!-- Reviewable:end -->
| * replace match by if let statements if possibleJulien Levesy2016-12-311-3/+2
| |
* | style: Document and cleanup str.rsEmilio Cobos Álvarez2016-12-311-5/+24
|/
* cow_to_ascii_lowercase()Simon Sapin2016-12-091-0/+12
|
* Move util::str to styleAnthony Ramine2016-07-051-0/+127