mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
style: Manually implement collect_completion_keywords for some types.
Bug: 1434130 Reviewed-by: emilio MozReview-Commit-ID: 6T35uylxgho
This commit is contained in:
parent
0f7f9eebc0
commit
07de715bb5
7 changed files with 209 additions and 34 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
//! A list of common mouse cursors per CSS3-UI § 8.1.1.
|
||||
|
||||
use super::{CssWriter, SpecifiedValueInfo, ToCss};
|
||||
use super::{CssWriter, KeywordsCollectFn, SpecifiedValueInfo, ToCss};
|
||||
|
||||
macro_rules! define_cursor {
|
||||
(
|
||||
|
@ -58,7 +58,14 @@ macro_rules! define_cursor {
|
|||
}
|
||||
}
|
||||
|
||||
impl SpecifiedValueInfo for CursorKind {}
|
||||
impl SpecifiedValueInfo for CursorKind {
|
||||
fn collect_completion_keywords(f: KeywordsCollectFn) {
|
||||
f(&[
|
||||
$($c_css,)+
|
||||
$($g_css,)+
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue