mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Document the value of StyleWasShared's RestyleResult
This commit is contained in:
parent
477c3c8c5b
commit
d1090065f7
1 changed files with 3 additions and 1 deletions
|
@ -413,7 +413,9 @@ pub enum StyleSharingResult<ConcreteRestyleDamage: TRestyleDamage> {
|
||||||
/// We didn't find anybody to share the style with.
|
/// We didn't find anybody to share the style with.
|
||||||
CannotShare,
|
CannotShare,
|
||||||
/// The node's style can be shared. The integer specifies the index in the
|
/// The node's style can be shared. The integer specifies the index in the
|
||||||
/// LRU cache that was hit and the damage that was done.
|
/// LRU cache that was hit and the damage that was done, and the restyle
|
||||||
|
/// result the original result of the candidate's styling, that is, whether
|
||||||
|
/// it should stop the traversal or not.
|
||||||
StyleWasShared(usize, ConcreteRestyleDamage, RestyleResult),
|
StyleWasShared(usize, ConcreteRestyleDamage, RestyleResult),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue