layout: Merge inline nodes based on node address, not node style.

This commit is contained in:
Emilio Cobos Álvarez 2017-03-10 14:10:46 +01:00
parent 6f134892da
commit 4bafdedf64
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -1789,7 +1789,7 @@ impl InlineFragmentContext {
return false
}
for (this_node, other_node) in self.nodes.iter().zip(&other.nodes) {
if !arc_ptr_eq(&this_node.style, &other_node.style) {
if this_node.address != other_node.address {
return false
}
}