aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/str.rs
Commit message (Collapse)AuthorAgeFilesLines
* Move Stylo to its own repo (#31350)Delan Azabani2024-02-271-189/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove packages that were moved to external repo * Add workspace dependencies pointing to 2023-06-14 branch * Fix servo-tidy.toml errors * Update commit to include #31346 * Update commit to include servo/stylo#2 * Move css-properties.json lookup to target/doc/stylo * Remove dependency on vendored mako in favour of pypi dependency This also removes etc/ci/generate_workflow.py, which has been unused since at least 9e71bd6a7010d6e5723831696ae0ebe26b47682f. * Add temporary code to debug Windows test failures * Fix failures on Windows due to custom target dir * Update commit to include servo/stylo#3 * Fix license in tests/unit/style/build.rs * Document how to build with local Stylo in Cargo.toml
* Miscellaneous build / tidy fixes.Emilio Cobos Álvarez2021-02-261-0/+8
|
* style: Avoid UTF-8 -> UTF-16 conversion during CSSOM serialization.Emilio Cobos Álvarez2021-02-261-91/+4
| | | | | | | | | | | | | This lifts a bunch of string conversions higher up the stack, but allows us to make the servo code use utf-8 unconditionally, and seemed faster in my benchmarking (see comment 0). It should also make a bunch of attribute setters faster too (like setting .cssText), now that we use UTF8String for them (we couldn't because we couldn't specify different string types for the getter and setters). Differential Revision: https://phabricator.services.mozilla.com/D99590
* 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