aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/gecko_string_cache
Commit message (Collapse)AuthorAgeFilesLines
...
* Add Atom::to_ascii_lowercaseSimon Sapin2017-06-121-1/+33
|
* stylo: Use bitfield accessors in string-cache.Emilio Cobos Álvarez2017-06-111-4/+1
|
* Add a fast path for eq_ignore_ascii_case.Bobby Holley2017-05-241-0/+4
|
* Revert "Auto merge of #16976 - upsuper:bug1366247, r=nox"Emilio Cobos Álvarez2017-05-211-17/+19
| | | | | This reverts commit 3d40b516c8ac6e946cadace2378581cbac7b1e1b, reversing changes made to 255387a915ef83db6b11d976f89c10b518c97487.
* Add sugar for already_AddRefed and use it for conversion between Atom and ↵Xidorn Quan2017-05-211-19/+17
| | | | nsIAtom pointer.
* Relax the requirement of Atom::with.Xidorn Quan2017-05-161-1/+1
|
* Make atom files generated at build-time.Xidorn Quan2017-05-081-1/+1
|
* Move atom_macro.rs to generated dir.Xidorn Quan2017-05-082-19756/+4
|
* Fix stylo issue after changing counter style names to nsIAtom.Xidorn Quan2017-05-061-0/+8
|
* Allow 'decimal' and 'none' in `<counter-style-name>`Simon Sapin2017-04-261-0/+20
| | | | … other than in `@counter-style`.
* Keep custom-ident and string separate in animation/keyframes name.Simon Sapin2017-04-261-0/+6
|
* tidy and test fixesManish Goregaokar2017-04-211-1/+1
|
* stylo: Add basic system font support, use for font-size and font-familyManish Goregaokar2017-04-211-0/+13
|
* Revert #16517 for Gecko heap write hazard failures.Cameron McCormack2017-04-191-13/+0
|
* tidy and test fixesManish Goregaokar2017-04-181-1/+1
|
* stylo: Add basic system font support, use for font-size and font-familyManish Goregaokar2017-04-181-0/+13
|
* Update Stylo bindingsJ. Ryan Stinnett2017-04-141-0/+8
|
* stylo: Use font metrics provider as a cache for font size resultsManish Goregaokar2017-04-091-2/+3
|
* style: Hash less stuff in the bloom filter, using the precomputed hashes we ↵Emilio Cobos Álvarez2017-04-082-0/+26
| | | | have.
* Auto merge of #16269 - heycam:atom-already-addrefed, r=upsuperbors-servo2017-04-051-0/+10
|\ | | | | | | | | | | | | | | Add an Atom::from_addrefed function. <!-- 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/16269) <!-- Reviewable:end -->
| * style: Add an Atom::from_addrefed function.Cameron McCormack2017-04-051-0/+10
| |
* | Auto merge of #16169 - servo:stylo-heapsize, r=emiliobors-servo2017-04-051-7/+0
|\ \ | |/ |/| | | | | | | | | | | | | | | | | Remove heapsize for Stylo It doesn’t seem to be used, and is causing compilation trouble for Gecko: https://bugzilla.mozilla.org/show_bug.cgi?id=1350581 <!-- 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/16169) <!-- Reviewable:end -->
| * Remove heapsize for StyloSimon Sapin2017-03-281-7/+0
| |
* | Update Gecko atom bindings for Gecko bug 1351139.Boris Zbarsky2017-03-281-17/+25
|/
* Update bindingsXidorn Quan2017-03-141-0/+8
|
* Stylo: Add support for "font-family: -moz-fixed"Nazım Can Altınova2017-03-121-0/+8
|
* Update bindinggen bits for gecko bug 1343078.Boris Zbarsky2017-03-081-16/+32
| | | | | Both the set of atoms and the way they are represented in the atom list is changing a bit.
* Update atoms for gecko bindingXidorn Quan2017-02-181-8/+24
|
* BindgenupEmilio Cobos Álvarez2017-02-162-4/+27
| | | | | | | Major pain point is that I had to write the bitfield stuff manually, but that should be resolved soon again. Now we generate proper layout for _every_ struct, including field offsets \o/.
* style: Document gecko_string_cache.Emilio Cobos Álvarez2017-01-022-2/+30
|
* Update atoms.Cameron McCormack2016-12-221-48/+24
|
* Remove static atoms of CSS propertiesXidorn Quan2016-12-161-2906/+0
|
* Introduce enums for identifying CSS properties.Simon Sapin2016-12-091-11/+2
| | | | | | | | | | | * `LonghandId` and `ShorthandId` are C-like enums * `Atom` is used for the name of custom properties. * `PropertyDeclarationId` is the identifier for `PropertyDeclaration`, after parsing and shorthand expansion. (Longhand or custom property.) * `PropertyId` represents any CSS property, e.g. in CSSOM. (Longhand, shorthand, or custom.) Using these instead of strings avoids some memory allocations and copies.
* Regenerate bindings.Cameron McCormack2016-12-031-0/+48
|
* Regenerate bindingsManish Goregaokar2016-11-171-16/+0
|
* Regenerate bindings.Cameron McCormack2016-11-101-8/+0
|
* Auto merge of #14038 - upsuper:bug1294299, r=heycambors-servo2016-11-031-0/+2882
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add Element.style support for stylo <!-- Please describe your changes on the following line: --> This is the Servo side change of [bug 1294299](https://bugzilla.mozilla.org/show_bug.cgi?id=1294299) which has been reviewed by @heycam, @emilio, and @SimonSapin. This should not be merged until the Gecko side change gets merged into mozilla-central. r? @heycam --- <!-- 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: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/14038) <!-- Reviewable:end -->
| * Add static atoms for CSS properties from GeckoXidorn Quan2016-11-031-0/+2882
| |
* | Auto merge of #14043 - servo:string-cache-up, r=noxbors-servo2016-11-032-2/+12
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update to string-cache 0.3 Previously, `string-cache` defined: * An string-like `Atom` type, * An `atom!("foo")` macro that expands to a value of that type, for a set of strings known at compile-time, * A `struct Namespace(Atom);` type * A `ns!(html)` macro that maps known prefixed to `Namespace` values with the corresponding namespace URL. Adding a string to the static set required making a change to the `string-cache` crate. With 0.3, the `Atom` type is now generic, with a type parameter that provides a set of static strings. We can have multiple such sets, defined in different crates. The `string_cache_codegen` crate, to be used in build scripts, generates code that defines such a set, a new atom type (a type alias for `Atom<_>` with the type parameter set), and an `atom!`-like macro. The html5ever repository has a new `html5ever_atoms` crate that defines three such types: `Prefix`, `Namespace`, and `LocalName` (with respective `namespace_prefix!`, `namespace_url!`, and `local_name!` macros). It also defines the `ns!` macro like before. This repository has a new `servo_atoms` crate in `components/atoms` that, for now, defines a single `Atom` type (and `atom!`) macro. (`servo_atoms::Atom` is defined as something like `type Atom = string_cache::Atom<ServoStaticStringSet>;`, so overall there’s now two types named `Atom`.) In this PR, `servo_atoms::Atom` is used for everything else that was `string_cache::Atom` before. But more atom types can be defined as needed. Two reasons to do this are to auto-generate the set of static strings (I’m planning to do this for CSS property names, which is the motivation for this change), or to have the type system help us avoid mix up unrelated things (this is why we had a `Namespace` type ever before this change). Introducing new types helped me find a bug: when creating a new attribute `dom::Element::set_style_attr`, would pass `Some(atom!("style"))` instead of `None` (now `Option<html5ever_atoms::Prefix>` instead of `Option<string_cache::Atom>`) to the `prefix` argument of `Attr::new`. I suppose the author of that code confused it with the `local_name` argument. --- Note that Stylo is not affected by any of this. The `gecko_string_cache` module is unchanged, with a single `Atom` type. The `style` crate conditionally compiles `Prefix` and `LocalName` re-exports for that are both `gecko_string_cache::Atom` on stylo. --- <!-- 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: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/14043) <!-- Reviewable:end -->
| * | Update to string-cache 0.3Simon Sapin2016-11-032-2/+12
| |/
* / Regenerate bindings.Cameron McCormack2016-11-031-0/+24
|/
* Regenerate bindings for mozilla-central rev ↵Bobby Holley2016-10-301-0/+32
| | | | e3279760cd977aac30bd9e8032d3ee71f55d2a67.
* Update to selectors 0.14Simon Sapin2016-10-282-38/+2
|
* Regenerate bindings.Cameron McCormack2016-10-191-72/+16
|
* Eliminate warning about unsafe references to extern static variables.Bobby Holley2016-10-111-2460/+4918
| | | | MozReview-Commit-ID: 7UJNBaEWnH7
* Regen bindingsManish Goregaokar2016-10-101-7/+21
|
* Regen bindings for upcoming resyncManish Goregaokar2016-10-011-28/+7
|
* Regen bindingsManish Goregaokar2016-09-301-2459/+2459
|
* Refactor geckolib atoms regen scriptRavi Shankar2016-09-301-6/+6
|
* Auto merge of #13477 - Manishearth:regen, r=emiliobors-servo2016-09-301-2459/+2459
|\ | | | | | | | | | | | | | | | | | | | | Regenerate bindings r? @emilio <!-- 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/13477) <!-- Reviewable:end -->