Simon Sapin
c14b766ff5
Rename SelectorMethods to Visit, after its one method.
2018-01-12 15:26:56 +01:00
Emilio Cobos Álvarez
5b7d9eb94a
style: Add a document state invalidator.
2018-01-12 12:08:42 +01:00
Emilio Cobos Álvarez
cb1a951477
style: Allow storing a DocumentState for invalidation.
2018-01-12 12:08:39 +01:00
Emilio Cobos Álvarez
1e27f2883b
selectors: Allow defining an implementation-dependent field in the matching context.
2018-01-12 12:08:38 +01:00
Emilio Cobos Álvarez
b6a2bff032
style: Move :-moz-locale-dir matching to rust.
2018-01-11 14:47:29 +01:00
Emilio Cobos Álvarez
d88696023f
style: Parse ::slotted() if the webcomponents pref is on.
...
Bug: 1425834
Reviewed-by: heycam
MozReview-Commit-ID: IOFneIgu7Rm
2018-01-09 14:26:05 +01:00
bors-servo
c6bf85eca9
Auto merge of #19536 - emilio:compound-selector-list, r=mbrubeck
...
style: Move the code to parse a list of compound selectors.
I'll need this for ::slotted().
<!-- 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/19536 )
<!-- Reviewable:end -->
2017-12-09 17:15:14 -06:00
bors-servo
95520ca39c
Auto merge of #19533 - emilio:unused-code-should-die, r=emilio
...
style: Remove unused SelectorImpl::pseudo_element_cascade_type.
<!-- 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/19533 )
<!-- Reviewable:end -->
2017-12-09 15:27:49 -06:00
Emilio Cobos Álvarez
b1f25a2b1f
style: Move the code to parse a list of compound selectors.
...
I'll need this for ::slotted().
2017-12-09 16:47:37 +01:00
Emilio Cobos Álvarez
bf564e0238
style: Simplify naming and signatures of single-colon pseudo stuff.
...
Also drop a few FIXMEs while at it, since they look bogus.
2017-12-09 16:12:22 +01:00
Emilio Cobos Álvarez
c93b844125
style: Remove unused SelectorImpl::pseudo_element_cascade_type.
2017-12-09 16:03:09 +01:00
Michael Wilson
1ebc1382ce
moving :dir() param serialization FIXME
2017-11-21 21:47:41 -08:00
bors-servo
5905f8d3ea
Auto merge of #19315 - emilio:chrome-rules-user-sheets, r=heycam
...
style: Enable chrome-only CSS features in user stylesheets.
MozReview-Commit-ID: FJ4vTiOrotH
Bug: 1418963
Reviewed-by: heycam
<!-- 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/19315 )
<!-- Reviewable:end -->
2017-11-21 04:27:25 -06:00
Emilio Cobos Álvarez
c7a3c929f6
style: Enable chrome-only CSS features in user stylesheets.
...
MozReview-Commit-ID: FJ4vTiOrotH
Reviewed-by: heycam
Bug: 1418963
2017-11-21 10:59:47 +01:00
Michael Wilson
10f3ef42bb
style: :dir() pseudo class now represented by enum
...
Fixes #19195
2017-11-15 18:12:44 -08:00
Bastien Orivel
29b4eec141
Bump bitflags to 1.0 in every servo crate
2017-10-30 23:36:06 +01:00
bors-servo
b1e6f05ae4
Auto merge of #18962 - upsuper:tree-pseudos, r=emilio
...
Support matching for ::-moz-tree-* pseudo-elements
This is the Servo side change of [bug 1397644](https://bugzilla.mozilla.org/show_bug.cgi?id=1397644 ).
<!-- 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/18962 )
<!-- Reviewable:end -->
2017-10-20 04:18:53 -05:00
Cameron McCormack
d58c967efa
style: Record DocumentState dependencies.
2017-10-20 13:13:13 +08:00
Cameron McCormack
c22dba0b87
style: Remove unused SelectorImpl::pseudo_class_state_flag.
2017-10-20 13:12:44 +08:00
Xidorn Quan
4ce3dc7729
Add slots in PerPseudoElementMap for tree pseudos.
2017-10-20 14:08:35 +11:00
Xidorn Quan
b743d68ccd
Accept argument-less tree pseudo-element selector.
2017-10-20 14:08:33 +11:00
Xidorn Quan
a2182f8dc3
Store args of tree pseudo-elements as Atom.
2017-10-20 14:08:31 +11:00
Gecko Backout
11c64178d8
Backed out changeset e64e659c077d: servo PR #18809 and revendor for reftest 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
2017-10-19 21:26:51 +00:00
Bastien Orivel
e8e2d0a4b2
Update bitflags to 1.0 in every servo crate
...
It still needs dependencies update to remove all the other bitflags
versions.
2017-10-19 15:01:17 +02:00
Matt Brubeck
efc3683cc7
Fix commonmark Markdown warnings in docs, part 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.
2017-10-17 11:24:57 -07:00
Simon Sapin
c0f8f15f39
Update to cssparser 0.22 (source location in error types)
2017-10-10 13:28:17 +02:00
Hiroyuki Ikezoe
175b88afcf
Fix mismatched arguments for Servo_SelectorXXX.
2017-10-10 06:35:16 +09:00
Simon Sapin
5d06c9959f
Replace some more uses of write!
in components/style
2017-09-04 19:01:43 +02:00
Josh Matthews
8e20a6a110
Report unknown pseudos (bug 1384216).
2017-08-28 17:19:28 -07:00
Clément DAVID
c5fe235112
order derivable traits lists
...
Ignoring :
- **generated**.rs
- python/tidy/servo_tidy_tests/rust_tidy.rs
2017-08-23 21:38:44 +02:00
Xidorn Quan
d3baa4fb3c
Check pref when parsing :fullscreen pseudo-class
2017-08-15 10:48:35 +10:00
Emilio Cobos Álvarez
faa8646e0f
style: Use an enumerated array for per-pseudo maps.
...
This avoids random HashMaps.
MozReview-Commit-ID: LQeZrLsoOnl
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-08-08 12:40:31 +02:00
Ting-Yu Lin
585c00f235
style: Introduce Chrome UI privilege for parsers
...
The motivation is that Chrome XBL stylesheets can be parsed under author
level, but we allow some event-state pseudo classes like
:-moz-handled-clicktoplay to be used.
Also synchronize the privilege of pseudo classes in
non_ts_pseudo_class_list.rs and nsCSSPseudoClassList.h (except :fullscreen).
MozReview-Commit-ID: 8fUjjC8hbQO
2017-08-03 16:30:08 +08:00
Ting-Yu Lin
fd3b399d26
style: Rename PSEUDO_CLASS_INTERNAL to PSEUDO_CLASS_ENABLED_IN_UA_SHEETS
...
Some of the pseudo classes in nsCSSPseudoClassList are enabled only in UA
sheets but not in chrome. Rename the "internal" flag to "enabled in UA
sheets" to make the semantics clearer.
MozReview-Commit-ID: LKIiPk4pHFv
2017-08-03 16:30:03 +08:00
Simon Sapin
eb98ae6e04
Update cssparser to 0.18
...
https://github.com/servo/rust-cssparser/pull/171
2017-07-24 11:39:12 +02:00
Xidorn Quan
a307653581
Implement parsing of tree pseudo-elements.
2017-07-12 20:33:11 +10:00
Xidorn Quan
2649d0332a
Call non-functional pseudo-elements simple pseudo-element.
2017-07-12 15:07:29 +10:00
Emilio Cobos Álvarez
d5a5a7ff16
style: Don't treat some document-state-related pseudo-classes as revalidation selectors.
2017-06-29 08:45:05 -07:00
Bobby Holley
1d242ad760
Store selectors in matching order, rather than parse order.
...
We add a slow in-place reverse during parsing to achieve this for now, which
gets fixed up later on.
MozReview-Commit-ID: 42QkOzSgV3T
2017-06-20 11:59:10 -07:00
Boris Zbarsky
eddca4d6f6
:-moz-locale-dir shouldn't be a revalidation selector.
...
Fixes Gecko bug 1374019 <https://bugzilla.mozilla.org/show_bug.cgi?id=1374019 >
2017-06-17 23:01:02 -04:00
Simon Sapin
b83afdedc8
Upgrade cssparser to 0.15
2017-06-16 15:05:46 +02:00
Nazım Can Altınova
15fe48f3f6
stylo: Support :hover and :active quirk
2017-06-10 22:18:32 +03:00
Josh Matthews
27ae1ef2e7
Thread ParseError return values through CSS parsing.
2017-06-09 16:46:25 -04:00
Cameron McCormack
c7e2500311
style: Note :lang() as being sensitive to attributes.
2017-06-08 09:37:09 +08:00
Cameron McCormack
e299905606
style: Define types for pseudo-class string argument storage.
2017-06-08 09:37:09 +08:00
Cameron McCormack
17e5c19d70
style: Support matching :-moz-browser-frame and :-moz-table-border-nonzero against snapshots.
2017-06-06 12:26:45 +08:00
Bobby Holley
5ddabef636
Collapse Selector, SelectorInner, and ComplexSelector into a single Selector.
...
The refcounting is still internal. We'll fix that up next.
MozReview-Commit-ID: CTxZNaR3Qgj
2017-06-05 19:44:00 -07:00
Matt Brubeck
08a53a3810
Bug 1367315 - stylo: Make :dir argument a case-insensitive identifier
2017-06-05 11:09:23 -07:00
Manish Goregaokar
25d193ba34
stylo: Use namespace ids for content: attr(..)
...
MozReview-Commit-ID: FZ9YEpHQCBh
2017-06-01 14:11:31 -07:00
Emilio Cobos Álvarez
dd38117487
stylo: Parse but never match :-moz-placeholder as a pseudo-class.
...
Fixes bug 1366709.
2017-05-22 11:47:17 +02:00