aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/Cargo.toml
Commit message (Collapse)AuthorAgeFilesLines
* Move nsstring from gecko into servo/support/gecko/nsstringNika Layzell2017-10-231-3/+3
| | | | | | This is the servo side of bug 1403213. MozReview-Commit-ID: HFdQiuMnGhJ
* Backed out changeset 196206f129ef (bug 1403213) for referencing non-existing ↵Gecko Backout2017-10-201-3/+3
| | | | | | xpcom/rust/gtest/moz.build in xpcom/moz.build. r=backout on a CLOSED TREE Backs out https://github.com/servo/servo/pull/18941
* Auto merge of #18941 - mystor:nsstring, r=mystorbors-servo2017-10-201-3/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | Move nsstring from gecko into servo/support/gecko/nsstring This is the servo side of bug 1403213. This cannot merge until https://bugzilla.mozilla.org/show_bug.cgi?id=1377351 merges. It is currently on inbound. This will break autoland when it merges until the gecko-side part has also landed. <!-- 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/18941) <!-- Reviewable:end -->
| * Move nsstring from gecko into servo/support/gecko/nsstringNika Layzell2017-10-201-3/+3
| | | | | | | | | | | | This is the servo side of bug 1403213. MozReview-Commit-ID: HFdQiuMnGhJ
| * Backed out changeset e64e659c077d: servo PR #18809 and revendor for reftest ↵Gecko Backout2017-10-191-1/+1
| | | | | | | | | | | | failures, e.g. in layout/reftests/bugs/392435-1.html. r=backout on a CLOSED TREE Backs out https://github.com/servo/servo/pull/18809
| * Update bitflags to 1.0 in every servo crateBastien Orivel2017-10-191-1/+1
| | | | | | | | | | It still needs dependencies update to remove all the other bitflags versions.
* | updated version in .toml filesNikhil Shagrithaya2017-10-191-1/+1
|/
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-8/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Servo currently uses `heapsize`, but Stylo/Gecko use `malloc_size_of`. `malloc_size_of` is better -- it handles various cases that `heapsize` does not -- so this patch changes Servo to use `malloc_size_of`. This patch makes the following changes to the `malloc_size_of` crate. - Adds `MallocSizeOf` trait implementations for numerous types, some built-in (e.g. `VecDeque`), some external and Servo-only (e.g. `string_cache`). - Makes `enclosing_size_of_op` optional, because vanilla jemalloc doesn't support that operation. - For `HashSet`/`HashMap`, falls back to a computed estimate when `enclosing_size_of_op` isn't available. - Adds an extern "C" `malloc_size_of` function that does the actual heap measurement; this is based on the same functions from the `heapsize` crate. This patch makes the following changes elsewhere. - Converts all the uses of `heapsize` to instead use `malloc_size_of`. - Disables the "heapsize"/"heap_size" feature for the external crates that provide it. - Removes the `HeapSizeOf` implementation from `hashglobe`. - Adds `ignore` annotations to a few `Rc`/`Arc`, because `malloc_size_of` doesn't derive those types, unlike `heapsize`.
* Removed pdqsort dependency and changed style create to use stdlib sort method.Savid Sharan2017-10-161-1/+0
|
* Update bindgen.Emilio Cobos Álvarez2017-10-121-1/+1
| | | | | This includes a clang-sys upgrade that removes crashes in linux32, and nothing else.
* Update to cssparser 0.22 (source location in error types)Simon Sapin2017-10-101-1/+1
|
* ChildrenOnly -> ChildrenOnly(Option<QualName>)Jyotsna Prakash2017-10-071-1/+1
| | | | use this updated type from html5ever
* style: Update rayon.Emilio Cobos Álvarez2017-10-031-1/+1
| | | | It has a couple soundness fixes.
* style: Update precomputed-hash.Emilio Cobos Álvarez2017-09-301-1/+1
|
* Hoist the LRU cache into its own crate to share it with selectors.Bobby Holley2017-09-201-0/+1
|
* Bump cssparser to 0.21.2Manish Goregaokar2017-09-181-1/+1
|
* Auto merge of #18511 - mbrubeck:always-be-updating, r=KiChjangbors-servo2017-09-151-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update to smallbitvec 1.0.6 Includes servo/smallbitvec#2, a performance fix that is useful for Stylo. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes do not require tests because they update external code only <!-- 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/18511) <!-- Reviewable:end -->
| * Update to smallbitvec 1.0.6Matt Brubeck2017-09-151-1/+1
| |
* | Auto merge of #18512 - tromey:preserve-style-sheet-source-url, r=SimonSapinbors-servo2017-09-151-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Preserve sourceURL comment on style sheets In addition to the sourceMappingURL comment, there is a second special comment, "sourceURL", that can be used to set the "display name" of a style sheet for developer tools. This name is also used as the base URL for the source-map URL resolution algorithm. sourceURL is described here: https://blog.getfirebug.com/2009/08/11/give-your-eval-a-name-with-sourceurl/ The devtools feature bug is here: https://bugzilla.mozilla.org/show_bug.cgi?id=880831 This patch changes servo to preserve and expose this value for use in M-C. --- <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/18512) <!-- Reviewable:end -->
| * | Preserve sourceURL comment on style sheetsTom Tromey2017-09-141-1/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | In addition to the sourceMappingURL comment, there is a second special comment, "sourceURL", that can be used to set the "display name" of a style sheet for developer tools. This name is also used as the base URL for the source-map URL resolution algorithm. sourceURL is described here: https://blog.getfirebug.com/2009/08/11/give-your-eval-a-name-with-sourceurl/ The devtools feature bug is here: https://bugzilla.mozilla.org/show_bug.cgi?id=880831 This patch changes servo to preserve and expose this value for use in M-C.
* / Make LRUCache use a linked list to reduce memmoves.Matt Brubeck2017-09-141-1/+0
|/ | | | https://bugzilla.mozilla.org/show_bug.cgi?id=1398957
* Remove get_location_with_offsetTom Tromey2017-09-121-1/+1
| | | | | | | | Now that rust-cssparser reports 1-based locations, bump the required cssparser version and remove get_location_with_offset. Previously, some code paths were not calling get_location_with_offset; see https://bugzilla.mozilla.org/show_bug.cgi?id=1398869 for some background.
* Overhaul MallocSizeOf and related things.Nicholas Nethercote2017-09-121-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch makes the MallocSizeOf stuff in Stylo work more like the HeapSizeOf stuff already in Servo, except better. In particular, it adds deriving support for MallocSizeOf, which will make it easier to improve coverage. The patch does the following. - Combines servo/components/style/stylesheets/memory.rs and the heapsize crate into a new crate, malloc_size_of. - Forks the heapsize_derive crate, calling it malloc_size_of, so that MallocSizeOf can be derived. - Both the new crates have MIT/Apache licenses, like heapsize, in case they are incorporated into heapsize in the future. - Renames the methods within MallocSizeOf and the related traits so they are more concise. - Removes MallocSizeOfWithGuard. - Adds `derive(MallocSizeOf)` to a lot of types, in some cases replacing an equivalent or almost-equivalent hand-written implementation. - Adds stuff so that Rc/Arc can be handled properly.
* Auto merge of #18446 - bzbarsky:update-cssparser, r=SimonSapinbors-servo2017-09-111-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update rust-cssparser to 0.20.2. This reduces memory consumption of list-valued properties in the common case of one entry in the list. <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- 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/18446) <!-- Reviewable:end -->
| * Update rust-cssparser to 0.20.2.Boris Zbarsky2017-09-111-1/+1
| | | | | | | | This reduces memory consumption of list-valued properties in the common case of one entry in the list.
* | Auto merge of #18431 - mbrubeck:pdb-size, r=SimonSapinbors-servo2017-09-111-1/+1
|\ \ | |/ |/| | | | | | | | | | | | | | | | | Use SmallBitVec to optimize size of PropertyDeclarationBlock https://bugzilla.mozilla.org/show_bug.cgi?id=1398322 <!-- 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/18431) <!-- Reviewable:end -->
| * Use SmallBitVec to replace BitVecMatt Brubeck2017-09-111-1/+1
| |
* | fallible: Avoid using system malloc in servo.Emilio Cobos Álvarez2017-09-101-1/+1
| |
* | Auto merge of #18413 - Manishearth:bump-au, r=jdmbors-servo2017-09-081-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | Bump app_units; use from_f64_au <!-- 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/18413) <!-- Reviewable:end -->
| * | Bump app_units; use from_f64_auManish Goregaokar2017-09-081-1/+1
| |/
* / Bug 1389009 - stylo: Add fallible append APIs for Vec and SmallVec. ↵Julian Seward2017-09-071-0/+1
|/ | | | r=manishearth.
* Auto merge of #18336 - upsuper:two-stage-at-rule, r=SimonSapinbors-servo2017-09-011-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Parse at-rule without block in two stages This is the Servo side change necessary for servo/rust-cssparser#180. ---- This also pulls in other changes from cssparser 0.20.0. <!-- 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/18336) <!-- Reviewable:end -->
| * Parse at-rule without block in two stagesXidorn Quan2017-09-011-1/+1
| |
* | stylo: Add dependency on hashglobeManish Goregaokar2017-08-311-0/+1
|/
* Use cssparser's new_with_line_number_offsetTom Tromey2017-08-281-1/+1
| | | | | | cssparser provides a way to set the initial line number on a ParserInput. This patch changes servo to use this facility, rather than reimplement the same functionality itself.
* Use Parser::skip_whitespace in a few places to make Parser::try rewind less.Simon Sapin2017-08-261-1/+1
| | | | | | | | | | | | | | | | | | | | Gecko’s CSS parsing microbenchmarks before: ``` 43.437 ± 0.391 ms Stylo.Servo_StyleSheet_FromUTF8Bytes_Bench 29.244 ± 0.042 ms Stylo.Gecko_nsCSSParser_ParseSheet_Bench 281.884 ± 0.028 ms Stylo.Servo_DeclarationBlock_SetPropertyById_Bench 426.242 ± 0.008 ms Stylo.Servo_DeclarationBlock_SetPropertyById_WithInitialSpace_Bench ``` After: ``` 29.779 ± 0.254 ms Stylo.Servo_StyleSheet_FromUTF8Bytes_Bench 28.841 ± 0.031 ms Stylo.Gecko_nsCSSParser_ParseSheet_Bench 296.240 ± 4.744 ms Stylo.Servo_DeclarationBlock_SetPropertyById_Bench 293.855 ± 4.304 ms Stylo.Servo_DeclarationBlock_SetPropertyById_WithInitialSpace_Bench ```
* Auto merge of #18056 - cynicaldevil:remove-treesink-dep-on-dom, r=noxbors-servo2017-08-181-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | End TreeBuilder's reliance on DOM. <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> Fixed h5e's TreeBuilder so that it does not use `same_tree` and `has_parent_node` methods: https://github.com/cynicaldevil/html5ever/commit/d8c2ea5cb62a1a755bb78b9f5de05d966776883a <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- 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/18056) <!-- Reviewable:end -->
| * Updated h5e and x5eNikhil Shagrithaya2017-08-181-1/+1
| |
* | style: update app_units.Emilio Cobos Álvarez2017-08-181-1/+1
|/
* Update to cssparser 0.19, count line numbers during tokenizationSimon Sapin2017-08-091-1/+1
|
* Remove testing feature from style crateManish Goregaokar2017-08-071-1/+0
|
* Bump app units to 0.5.2Manish Goregaokar2017-08-021-1/+1
|
* Auto merge of #17898 - BorisChiou:stylo/animation/filter_distance, r=birtlesbors-servo2017-07-281-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stylo: Fix compute_squared_distance for AnimatedFilterList We implement compute_distance for Angle to avoid returning Err(()) from it, and then rewrite compute_squared_distance of AnimatedFilterLIst to avoid using unwrap() and make it simpler. --- <!-- 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 [Bug 1384014](https://bugzilla.mozilla.org/show_bug.cgi?id=1384014). - [X] These changes do not require tests because there is a DevTools test for this already. <!-- 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/17898) <!-- Reviewable:end -->
| * Rewrite compute_squared_distance for AnimatedFilterList.Boris Chiou2017-07-281-0/+1
| |
* | Upgrade to bindgen 0.29.Xidorn Quan2017-07-281-1/+1
| |
* | stylo: Bump app units versionManish Goregaokar2017-07-271-1/+1
|/
* Backed out changeset 1c8d22359d5d because the gecko half was backed out ↵Gecko Backout2017-07-271-1/+1
| | | | | | a=backout CLOSED TREE Backs out https://github.com/servo/servo/pull/17878
* stylo: Bump app units versionManish Goregaokar2017-07-261-1/+1
|
* Update cssparser to 0.18Simon Sapin2017-07-241-1/+1
| | | | https://github.com/servo/rust-cssparser/pull/171
* Replace all uses of the style::stylearc alias with servo_arc.Michael Partheil2017-07-191-1/+1
| | | | | | The alias is left there temporarilly and will be removed completely in a later commit where also components/style/gecko/generated/structs_{debug|release}.rs are re-generated (they still use the old alias).