mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Bug 1364412: Properly handle state restyle hints for pseudo-elements. r=bholley
This commit is contained in:
parent
de680b06fe
commit
0bc185f1c2
4 changed files with 207 additions and 53 deletions
|
@ -384,6 +384,13 @@ impl ElementData {
|
|||
None => RestyleHint::empty(),
|
||||
};
|
||||
|
||||
debug!("compute_final_hint: {:?}, has_snapshot: {}, handled_snapshot: {}, \
|
||||
pseudo: {:?}",
|
||||
element,
|
||||
element.has_snapshot(),
|
||||
element.handled_snapshot(),
|
||||
element.implemented_pseudo_element());
|
||||
|
||||
if element.has_snapshot() && !element.handled_snapshot() {
|
||||
hint |= context.stylist.compute_restyle_hint(&element, context.snapshot_map);
|
||||
unsafe { element.set_handled_snapshot() }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue