style: Remove misleading comment.

can_be_fragmented is just a flag in Servo, and a no-op in Gecko.
This commit is contained in:
Emilio Cobos Álvarez 2016-08-04 11:05:16 -07:00
parent 5e83b3f83b
commit 880d1120a3
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -718,7 +718,8 @@ pub trait MatchMethods : TNode {
context: &Ctx,
parent: Option<Self>,
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()