From 880d1120a319b21b5f74bd0672b2e27923a4b125 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Thu, 4 Aug 2016 11:05:16 -0700 Subject: [PATCH] style: Remove misleading comment. can_be_fragmented is just a flag in Servo, and a no-op in Gecko. --- components/style/matching.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/style/matching.rs b/components/style/matching.rs index 170534940a7..aabecf86d7a 100644 --- a/components/style/matching.rs +++ b/components/style/matching.rs @@ -718,7 +718,8 @@ pub trait MatchMethods : TNode { context: &Ctx, parent: Option, applicable_declarations: &ApplicableDeclarations) - where Ctx: StyleContext<'a> { + where Ctx: StyleContext<'a> + { // Get our parent's style. This must be unsafe so that we don't touch the parent's // borrow flags. // @@ -790,8 +791,6 @@ pub trait MatchMethods : TNode { damage }; - // This method needs to borrow the data as mutable, so make sure data_ref goes out of - // scope first. self.set_can_be_fragmented(parent.map_or(false, |p| { p.can_be_fragmented() || parent_style.as_ref().unwrap().is_multicol()