mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
style: Remove misleading comment.
can_be_fragmented is just a flag in Servo, and a no-op in Gecko.
This commit is contained in:
parent
5e83b3f83b
commit
880d1120a3
1 changed files with 2 additions and 3 deletions
|
@ -718,7 +718,8 @@ pub trait MatchMethods : TNode {
|
||||||
context: &Ctx,
|
context: &Ctx,
|
||||||
parent: Option<Self>,
|
parent: Option<Self>,
|
||||||
applicable_declarations: &ApplicableDeclarations)
|
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
|
// Get our parent's style. This must be unsafe so that we don't touch the parent's
|
||||||
// borrow flags.
|
// borrow flags.
|
||||||
//
|
//
|
||||||
|
@ -790,8 +791,6 @@ pub trait MatchMethods : TNode {
|
||||||
damage
|
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| {
|
self.set_can_be_fragmented(parent.map_or(false, |p| {
|
||||||
p.can_be_fragmented() ||
|
p.can_be_fragmented() ||
|
||||||
parent_style.as_ref().unwrap().is_multicol()
|
parent_style.as_ref().unwrap().is_multicol()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue