mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Bug 1349553: Add a bit of debugging information to the preprocess_children stage.
MozReview-Commit-ID: 7zv62MRX8dE Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
parent
d4d8293f22
commit
2b99c76052
1 changed files with 3 additions and 0 deletions
|
@ -567,6 +567,7 @@ fn preprocess_children<E, D>(traversal: &D,
|
|||
where E: TElement,
|
||||
D: DomTraversal<E>
|
||||
{
|
||||
trace!("preprocess_children: {:?}", element);
|
||||
// Loop over all the children.
|
||||
for child in element.as_node().children() {
|
||||
// FIXME(bholley): Add TElement::element_children instead of this.
|
||||
|
@ -599,6 +600,8 @@ fn preprocess_children<E, D>(traversal: &D,
|
|||
// Handle element snapshots and sibling restyle hints.
|
||||
let stylist = &traversal.shared_context().stylist;
|
||||
let later_siblings = restyle_data.compute_final_hint(child, stylist);
|
||||
trace!(" > {:?} -> {:?}, later_siblings: {:?}",
|
||||
child, restyle_data.hint, later_siblings);
|
||||
if later_siblings {
|
||||
propagated_hint.insert(&(RESTYLE_SELF | RESTYLE_DESCENDANTS).into());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue