mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Support cursor property url() values in stylo. r=manishearth
MozReview-Commit-ID: 6herzaXUz4i
This commit is contained in:
parent
c6be1a8995
commit
830cc88283
3 changed files with 140 additions and 22 deletions
|
@ -2246,8 +2246,8 @@ impl ServoComputedValuesCursorUtility for ServoComputedValues {
|
|||
fn get_cursor(&self, default_cursor: Cursor) -> Option<Cursor> {
|
||||
match (self.get_pointing().pointer_events, self.get_pointing().cursor) {
|
||||
(pointer_events::T::none, _) => None,
|
||||
(pointer_events::T::auto, cursor::T::AutoCursor) => Some(default_cursor),
|
||||
(pointer_events::T::auto, cursor::T::SpecifiedCursor(cursor)) => Some(cursor),
|
||||
(pointer_events::T::auto, cursor::Keyword::AutoCursor) => Some(default_cursor),
|
||||
(pointer_events::T::auto, cursor::Keyword::SpecifiedCursor(cursor)) => Some(cursor),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue