From d1090065f7e0b03cffad553c0e2170101aae5c22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Wed, 10 Aug 2016 11:22:08 -0700 Subject: [PATCH] style: Document the value of StyleWasShared's RestyleResult --- components/style/matching.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/style/matching.rs b/components/style/matching.rs index 978e762f91e..16f0b7571b1 100644 --- a/components/style/matching.rs +++ b/components/style/matching.rs @@ -413,7 +413,9 @@ pub enum StyleSharingResult { /// We didn't find anybody to share the style with. CannotShare, /// 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), }