From 9c44062836877e355d2b5611a45dfad43c8c7af0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Wed, 27 Apr 2016 10:54:55 +0200 Subject: [PATCH] layout: be clearer about resolved_style --- components/layout/wrapper.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/layout/wrapper.rs b/components/layout/wrapper.rs index 6e83ba12823..e9215f8717f 100644 --- a/components/layout/wrapper.rs +++ b/components/layout/wrapper.rs @@ -795,7 +795,8 @@ pub trait ThreadSafeLayoutNode : Clone + Copy + Sized + PartialEq { /// This differs from `style(ctx)` in that if the pseudo-element has not yet /// been computed it would panic. /// - /// This should be used just for querying layout, not from layout itself. + /// This should be used just for querying layout, or when we know the + /// element style is precomputed, not from general layout itself. #[inline] fn resolved_style(&self) -> Ref> { Ref::map(self.borrow_layout_data().unwrap(), |data| {