Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | stylo: Update rust-cssparser; extract more specific error types when ↵ | Josh Matthews | 2017-07-10 | 1 | -3/+4 | |
| | | | | reporting (bug 1352669). | |||||
* | Backed out changeset fec394734f83 (bug 17624) for build bustage a=backout ↵ | Gecko Backout | 2017-07-06 | 1 | -4/+3 | |
| | | | | | | CLOSED TREE Backs out https://github.com/servo/servo/pull/17624 | |||||
* | stylo: Update rust-cssparser; extract more specific error types when ↵ | Josh Matthews | 2017-07-06 | 1 | -3/+4 | |
| | | | | reporting (bug 1352669). | |||||
* | Drive-by fix "unused import" warning. | Simon Sapin | 2017-07-05 | 1 | -1/+0 | |
| | ||||||
* | Invert the order of each compound selector. | Bobby Holley | 2017-06-20 | 1 | -50/+62 | |
| | | | | MozReview-Commit-ID: JkBjqyYgbrB | |||||
* | Hoist specificity computation into a new private builder module. | Bobby Holley | 2017-06-20 | 1 | -136/+2 | |
| | | | | | | | This patch doesn't modify any of the code because making a few things pub. I did this first to make the next patch easier to audit. MozReview-Commit-ID: 7PYxoS5bVGN | |||||
* | Store selectors in matching order, rather than parse order. | Bobby Holley | 2017-06-20 | 1 | -25/+36 | |
| | | | | | | | We add a slow in-place reverse during parsing to achieve this for now, which gets fixed up later on. MozReview-Commit-ID: 42QkOzSgV3T | |||||
* | Stop creating unnecessarily-large SmallVecs for specific tasks. | Bobby Holley | 2017-06-20 | 1 | -14/+17 | |
| | | | | MozReview-Commit-ID: IM9aAjSeJI9 | |||||
* | Stop using parse_compound_selector for negation parsing. | Bobby Holley | 2017-06-20 | 1 | -35/+30 | |
| | | | | | | | This makes the code easier to work with, and fixes a bug where we don't currently reject pseudo-elements within :not(). MozReview-Commit-ID: Cgl9w0PBsN3 | |||||
* | Untry | Simon Sapin | 2017-06-18 | 1 | -1/+1 | |
| | ||||||
* | Upgrade cssparser to 0.15 | Simon Sapin | 2017-06-16 | 1 | -19/+19 | |
| | ||||||
* | style: Add a way to match a single compound selector. | Emilio Cobos Álvarez | 2017-06-13 | 1 | -4/+22 | |
| | | | | | | | Also improve the ergonomics of matches_complex_selector. Bug: 1368240 MozReview-Commit-ID: 9DWDvyZmetM | |||||
* | ID and class selectors are ASCII case-insensitive in quirks mode. | Simon Sapin | 2017-06-12 | 1 | -1/+4 | |
| | | | | https://bugzilla.mozilla.org/show_bug.cgi?id=1363778 | |||||
* | Pack the fourth ancestor hash into the upper byte of the first three hashes. | Bobby Holley | 2017-06-12 | 1 | -10/+38 | |
| | | | | MozReview-Commit-ID: KbtKQzLmwVO | |||||
* | stylo: Implement GetSpecificity for ServoStyleRule | Fernando Jiménez Moreno | 2017-06-12 | 1 | -18/+9 | |
| | ||||||
* | stylo: Support :hover and :active quirk | Nazım Can Altınova | 2017-06-10 | 1 | -1/+21 | |
| | ||||||
* | Thread ParseError return values through CSS parsing. | Josh Matthews | 2017-06-09 | 1 | -101/+159 | |
| | ||||||
* | Fix revalidation selectors when pseudo-elements are involved. | Boris Zbarsky | 2017-06-08 | 1 | -1/+6 | |
| | ||||||
* | Log element during selector matching | J. Ryan Stinnett | 2017-06-07 | 1 | -0/+10 | |
| | | | | MozReview-Commit-ID: D8eFyRCy5BR | |||||
* | Bug 1367615 - Stylo: implement inIDOMUtils.getSelectorCount and ↵ | Fernando Jiménez Moreno | 2017-06-07 | 1 | -9/+18 | |
| | | | | inIDOMUtils.getSelectorTextFromIndex | |||||
* | Make a bunch of types 'static. | Bobby Holley | 2017-06-06 | 1 | -1/+1 | |
| | | | | | | The reasoning for this is explained in a comment in the next patch. MozReview-Commit-ID: FQgDY77mg3B | |||||
* | Fix up unit tests. | Bobby Holley | 2017-06-05 | 1 | -240/+201 | |
| | | | | MozReview-Commit-ID: 9eyOhoQ02qX | |||||
* | Eliminate redundant parse_selector. | Bobby Holley | 2017-06-05 | 1 | -17/+5 | |
| | | | | MozReview-Commit-ID: 6eBVgT9ri5Q | |||||
* | Use ThinArc in Selector. | Bobby Holley | 2017-06-05 | 1 | -7/+8 | |
| | | | | MozReview-Commit-ID: Axvq0rbqA7Y | |||||
* | Make ParseVec bigger. | Bobby Holley | 2017-06-05 | 1 | -9/+5 | |
| | | | | MozReview-Commit-ID: DszMC031Xlj | |||||
* | Use dynamically-sized Arcs for Selector. | Bobby Holley | 2017-06-05 | 1 | -12/+25 | |
| | | | | MozReview-Commit-ID: hq0jYrx8Sg | |||||
* | Move around specificity computation so that we know it by the time we mint ↵ | Bobby Holley | 2017-06-05 | 1 | -19/+19 | |
| | | | | | | | | the Selector. This is important to make the selector immutable, which needs to happen when we stick it in an Arc. MozReview-Commit-ID: BaMbOEbYC3D | |||||
* | Stop slicing selectors when noting dependencies, and match with an offset ↵ | Bobby Holley | 2017-06-05 | 1 | -23/+15 | |
| | | | | | | instead. MozReview-Commit-ID: KLqmdRKygO0 | |||||
* | Collapse Selector, SelectorInner, and ComplexSelector into a single Selector. | Bobby Holley | 2017-06-05 | 1 | -119/+50 | |
| | | | | | | The refcounting is still internal. We'll fix that up next. MozReview-Commit-ID: CTxZNaR3Qgj | |||||
* | Move the ancestor hashes out of Selector. | Bobby Holley | 2017-06-05 | 1 | -27/+54 | |
| | | | | MozReview-Commit-ID: 5mipXnjgSED | |||||
* | Hoist specificity_and_flags into ComplexSelector (soon to be Selector). | Bobby Holley | 2017-06-05 | 1 | -20/+20 | |
| | | | | | | | | In the upcoming patches we'll eliminate the existing Selector and SelectorInner, and ComplexSelector will become an Arc-managed |Selector|. So the tuple-indexed setup is just temporary. MozReview-Commit-ID: 4CcOYeHGUED | |||||
* | Don’t visit attribute selectors that never match. | Simon Sapin | 2017-05-18 | 1 | -2/+11 | |
| | ||||||
* | Add more enum types to avoid unreachable!() for selector case-sensitivity | Simon Sapin | 2017-05-18 | 1 | -19/+22 | |
| | ||||||
* | Only non-namespaced attributes can have implicitly case-insensitive values | Simon Sapin | 2017-05-18 | 1 | -1/+2 | |
| | ||||||
* | Make some attr values case-insensitive in selectors | Simon Sapin | 2017-05-18 | 1 | -17/+33 | |
| | | | | https://bugzilla.mozilla.org/show_bug.cgi?id=1363531 | |||||
* | Shrink selectors::Component, add case-insensitive for other attr selectors | Simon Sapin | 2017-05-18 | 1 | -190/+178 | |
| | | | | | * https://bugzilla.mozilla.org/show_bug.cgi?id=1364148 * https://bugzilla.mozilla.org/show_bug.cgi?id=1364162 | |||||
* | Simplify rust-selectors API for attribute selectors | Simon Sapin | 2017-05-18 | 1 | -9/+1 | |
| | ||||||
* | Rename CaseSensitivity::CaseInsensitive to AsciiCaseInsensitive | Simon Sapin | 2017-05-18 | 1 | -3/+3 | |
| | ||||||
* | Bug 1364850: Move PseudoElement to be just another combinator in selectors. ↵ | Emilio Cobos Álvarez | 2017-05-17 | 1 | -120/+280 | |
| | | | | | | | r=bholley MozReview-Commit-ID: 8OoOIodkKJ5 Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io> | |||||
* | Move "is universal" logic from stylist.rs to selectors/parser.rs | Simon Sapin | 2017-05-16 | 1 | -0/+12 | |
| | ||||||
* | Fix serialization of namespace and universal selectors | Simon Sapin | 2017-05-16 | 1 | -61/+279 | |
| | | | | | Fix #16017 Fix #16020 | |||||
* | Turns out, we never actual hash selectors | Simon Sapin | 2017-05-16 | 1 | -18/+16 | |
| | ||||||
* | Add size_of tests for geckolib selectors | Simon Sapin | 2017-05-16 | 1 | -1/+1 | |
| | ||||||
* | Bug 1364412: Allow pseudo-element selectors to store state. r=bholley | Emilio Cobos Álvarez | 2017-05-16 | 1 | -12/+12 | |
| | | | | | MozReview-Commit-ID: CzAwg2uxqO2 Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io> | |||||
* | style: Account for cousin sharing in the revalidation logic. | Emilio Cobos Álvarez | 2017-05-01 | 1 | -21/+0 | |
| | | | | Fixes bug 1361013. | |||||
* | Unbust unit tests. | Bobby Holley | 2017-04-29 | 1 | -1/+1 | |
| | | | | Not sure how this managed to get past bors before. | |||||
* | Bug 1360399: Don't deduplicate revalidation selectors. r=bholley | Emilio Cobos Álvarez | 2017-04-28 | 1 | -5/+5 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's unfortunate, but it's a correctness issue. I was looking at the expectations update here: * https://hg.mozilla.org/integration/autoland/rev/659cddddd434 And investigating it I realised that it's wrong to coalesce selectors like that, because we keep the bloom filter flags. So in the test cases disabled, we have a selector that looks like this: msub > :not(:first-child), msup > :not(:first-child), msubsup > :not(:first-child), mmultiscripts > :not(:first-child) { -moz-script-level: +1; -moz-math-display: inline; } And an element that looks like this: <msubsup><mi></mi><mi></mi></msubsup> We're only inserting the first selector msub > :not(:first-child) into the set, so when we're going to match the <mi> elements we fast-reject it in both cases due to the bloom filter, so they share style. I can't see an easy way to fix this keeping the deduplication. If we keep it, we need to remove the bloom filter optimization, which means that we'd trash the cache for every first-child in the document (the :not(:first-child) effectively becomes a global rule). MozReview-Commit-ID: 9VPkmdj9zDg Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io> | |||||
* | Store SelectorInner and only revalidate up to the rightmost ancestor combinator. | Bobby Holley | 2017-04-27 | 1 | -0/+37 | |
| | | | | MozReview-Commit-ID: HiTGVhwuvCE | |||||
* | Require Clone for SelectorImpl so that all the types that are parameterized ↵ | Bobby Holley | 2017-04-27 | 1 | -12/+6 | |
| | | | | | | | | on it can derive(Clone). It's not clear to me why this is a requirement, but it seems to be one. MozReview-Commit-ID: JM0DKjHHfT | |||||
* | Downgrade selectors not() behavior to level 3. | Bobby Holley | 2017-04-25 | 1 | -71/+110 | |
| | | | | MozReview-Commit-ID: 6p750Ml2wzm |