aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/servo
Commit message (Collapse)AuthorAgeFilesLines
...
* style: Fix Servo build.Emilio Cobos Álvarez2020-02-121-0/+5
|
* style: Don't use hardcoded value for safearea.Makoto Kato2020-02-121-1/+6
| | | | | | To implement safe area support on Gecko, we should get safe area from Device. Differential Revision: https://phabricator.services.mozilla.com/D52504
* :defined worksPatrick Shaughnessy2020-01-301-0/+4
|
* Rustfmt recent changes.Emilio Cobos Álvarez2019-12-161-1/+1
|
* style: Use less Au in font code.Emilio Cobos Álvarez2019-12-161-2/+2
| | | | | | | | | Font code is the only thing that was using Au in the style system without interfacing with Gecko, and there was no real reason for it to do so. This slightly simplifies the code. Differential Revision: https://phabricator.services.mozilla.com/D57248
* style: Correctly style dark scrollbars in tree components.Cameron McCormack2019-12-161-0/+5
| | | | | | | | | | | | | | | | We need to ensure the rules that override all properties for scrollbar part elements only apply to those that are NAC (and so will be eligible for NAC style sharing). We have some uses of non-NAC <scrollbar> elements that should continue to inherit properties from their parents. To avoid any changes in rule matching order that come with changing specificity, we add a new :-moz-native-anonymous-no-specificity pseudo-class. While we're here, we note :-moz-native-anonymous-no-specificity (and the regular :-moz-native-anonymous pseudo-class) as not needing style sharing cache revalidation, as we never share NAC styles. Differential Revision: https://phabricator.services.mozilla.com/D56154
* style: Fix servo build.Emilio Cobos Álvarez2019-11-301-0/+8
|
* style: Fix cascade order of shadow parts.Emilio Cobos Álvarez2019-11-301-0/+6
| | | | | | | This moves the shadow cascade order into the cascade level, and refactors the code a bit for that. Differential Revision: https://phabricator.services.mozilla.com/D49988
* Update rand to 0.7 (fixes #24448)Anthony Ramine2019-10-231-2/+2
|
* Update euclid.Emilio Cobos Álvarez2019-07-231-3/+4
| | | | | | | | There are a few canvas2d-related dependencies that haven't updated, but they only use euclid internally so that's not blocking landing the rest of the changes. Given the size of this patch, I think it's useful to get this landed as-is.
* style: Update to euclid 0.20.Nicolas Silva2019-07-231-6/+6
| | | | Differential Revision: https://phabricator.services.mozilla.com/D38530
* style: Invalidate style for ::selection.violet2019-06-251-0/+6
| | | | | | | | | | | | This patch invalidates the style for `::selection`, which will restore the behavior before the regression. However, it's still not quite correct, because repaint is not triggered. Given that `::selection` requires some major change to implement https://github.com/w3c/csswg-drafts/issues/2474, we can address this problem later. Differential Revision: https://phabricator.services.mozilla.com/D35305
* style: Fix Servo build.Emilio Cobos Álvarez2019-06-041-7/+11
|
* style: Fix servo build.Emilio Cobos Álvarez2019-05-071-4/+13
|
* Remove :-servo-case-sensitive-type-attr()Ian Moody2019-04-181-26/+6
| | | | | | | | No longer needed now that the case-sensitive flag for attributes selectors is supported. Update user-agent CSS sheet to use the standard flag. Fixes #23227
* Make use of RefCell::try_borrow_unguardedAnthony Ramine2019-04-121-1/+0
|
* style: Fix servo build, and appease tidy / fmt.Emilio Cobos Álvarez2019-04-122-6/+4
|
* style: Fix Gecko and Servo builds, and appease tidy.Emilio Cobos Álvarez2019-03-271-0/+6
|
* Rustfmt has changed its default style :/Simon Sapin2018-12-282-2/+2
|
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-195-5/+5
|
* style: Manually extinguish multi-line use statements.Emilio Cobos Álvarez2018-11-101-3/+2
|
* `cargo fix --edition`Simon Sapin2018-11-104-24/+26
|
* Reorder importsPyfisch2018-11-062-8/+8
|
* Replace http with https in docsJan Andre Ikenmeyer2018-11-061-1/+1
|
* style: Fix servo build.Emilio Cobos Álvarez2018-11-051-0/+11
|
* style: Fix Servo build.Emilio Cobos Álvarez2018-10-191-0/+3
|
* style: Remove PseudoElement::inherits_all.Emilio Cobos Álvarez2018-10-191-5/+0
| | | | | | | | | I plan to change servo to use all: inherit on its UA sheet. I hope the patch below should make it good enough performance-wise. And also, it's probably broken so I don't think it's worth supporting it specially. Differential Revision: https://phabricator.services.mozilla.com/D8686
* style: Stop using PseudoElement::inherits_all.Emilio Cobos Álvarez2018-10-151-35/+3
| | | | | | | | | This was done that way just because Servo didn't support the `all` property at the time. We should do it this way and optimize it if it's slow. Though I suspect that most of stuff doesn't actually need to be inherited, my patch at bug 1498943 should make it much faster than what it would otherwise be.
* style: Fix servo build and drop a FIXME there.Emilio Cobos Álvarez2018-09-151-0/+12
|
* Format style component.chansuke2018-09-092-25/+34
|
* style: Fix servo build.Emilio Cobos Álvarez2018-09-031-0/+4
|
* style: Simplify the Lang pseudo-class stuff a bit.Emilio Cobos Álvarez2018-09-031-3/+3
| | | | Differential Revision: https://phabricator.services.mozilla.com/D4754
* Appease tidy.Emilio Cobos Álvarez2018-08-181-5/+4
|
* Port servo to the new media query system.Emilio Cobos Álvarez2018-08-181-123/+45
| | | | | Port `width`, and also add the `scan` media feature so I don't need to add ugliness just to workaround the unused keyword_evaluator macro.
* style: Convert FnvHash{Set,Map} instances to FxHash{Set,Map}.Nicholas Nethercote2018-08-081-4/+4
| | | | | Bug: 1477628 Reviewed-by: heycam
* style: Fix servo build.Emilio Cobos Álvarez2018-07-241-1/+1
|
* style: Push visited style computation a bit further down.Emilio Cobos Álvarez2018-07-241-4/+4
| | | | | | Bug: 1474959 Reviewed-by: xidorn MozReview-Commit-ID: 1DILenWIw4D
* style: Fix build / unit tests.Emilio Cobos Álvarez2018-07-011-1/+1
|
* style: Add code to parse media conditions.Emilio Cobos Álvarez2018-07-011-17/+26
| | | | | | | | Still unused. Bug: 1422225 Reviewed-by: xidorn MozReview-Commit-ID: IQfxObw9BV5
* style: Rename Expression to MediaFeatureExpression.Emilio Cobos Álvarez2018-07-011-7/+7
| | | | | | | | | Which is more appropriate, given it represents a `<media-feature>` per spec, and expression is a bit overloaded :) Bug: 1422225 Reviewed-by: xidorn MozReview-Commit-ID: Fed1nJhHxDu
* style: Fix servo build.Emilio Cobos Álvarez2018-06-231-1/+1
|
* style: Make creating CssUrl infallible.Xidorn Quan2018-05-201-9/+5
| | | | | | | | | | | | There were a check in CssUrl::parse_from_string for extra data, which was removed as part of servo/servo#16241, so it never fails now. CssUrl::from_url_value_data doesn't seem to need Result from the very beginning. It is unclear why it was made that way. Bug: 1461858 Reviewed-by: emilio MozReview-Commit-ID: LXzKlZ6wPYW
* Silence an 'unused' warningSimon Sapin2018-05-041-1/+2
|
* style: Fix tidy issues and Servo build.Emilio Cobos Álvarez2018-04-291-1/+1
|
* Run rustfmt on selectors, servo_arc, and style.Bobby Holley2018-04-104-117/+188
| | | | | | | | | | 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: Implement the non-functional :host selector.Emilio Cobos Álvarez2018-04-091-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Kinda tricky because :host only matches rules on the shadow root where the rules come from. So we need to be careful during invalidation and style sharing. I didn't use the non_ts_pseudo_class_list bits because as soon as we implement the :host(..) bits we're going to need to special-case it anyway. The general schema is the following: * Rightmost featureless :host selectors are handled inserting them in the host_rules hashmap. Note that we only insert featureless stuff there. We could insert all of them and just filter during matching, but that's slightly annoying. * The other selectors, like non-featureless :host or what not, are added to the normal cascade data. This is harmless, since the shadow host rules are never matched against the host, so we know they'll just never match, and avoids adding more special-cases. * Featureless :host selectors to the left of a combinator are handled during matching, in the special-case of next_element_for_combinator in selectors. This prevents this from being more invasive, and keeps the usual fast path slim, but it's a bit hard to match the spec and the implementation. We could keep a copy of the SelectorIter instead in the matching context to make the handling of featureless-ness explicit in match_non_ts_pseudo_class, but we'd still need the special-case anyway, so I'm not fond of it. * We take advantage of one thing that makes this sound. As you may have noticed, if you had `root` element which is a ShadowRoot, and you matched something like `div:host` against it, using a MatchingContext with current_host == root, we'd incorrectly report a match. But this is impossible due to the following constraints: * Shadow root rules aren't matched against the host during styling (except these featureless selectors). * DOM APIs' current_host needs to be the _containing_ host, not the element itself if you're a Shadow host. Bug: 992245 Reviewed-by: xidorn MozReview-Commit-ID: KayYNfTXb5h
* Stop using Gecko namespace ids in servo.Bobby Holley2018-04-061-2/+2
| | | | MozReview-Commit-ID: 2532dHCGPXW
* style: Add infrastructure to match :host.Emilio Cobos Álvarez2018-03-141-6/+14
|
* style: Tidy a couple things.Emilio Cobos Álvarez2018-03-141-8/+15
|
* Split CssUrl from SpecifiedUrl for non-value URLs.Xidorn Quan2018-03-081-11/+14
|