mirror of
https://github.com/servo/servo.git
synced 2025-06-18 13:24:29 +00:00
stylo: Relax assertion that doesn't hold in layout/style/test/test_pseudoelement_state.html
It deserves more investigation, we should probably clear NAC data on ServoRestyleManager::ClearServoDataFromSubtree, but not worth to keep the tree orange meanwhile.
This commit is contained in:
parent
a4bc106e07
commit
cdbb2c5d0d
1 changed files with 11 additions and 1 deletions
|
@ -510,7 +510,17 @@ impl<'le> TElement for GeckoElement<'le> {
|
|||
}
|
||||
|
||||
unsafe fn note_descendants<B: DescendantsBit<Self>>(&self) {
|
||||
debug_assert!(self.get_data().is_some());
|
||||
// FIXME(emilio): We seem to reach this in Gecko's
|
||||
// layout/style/test/test_pseudoelement_state.html, while changing the
|
||||
// state of an anonymous content element which is styled, but whose
|
||||
// parent isn't, presumably because we've cleared the data and haven't
|
||||
// reached it yet.
|
||||
//
|
||||
// Otherwise we should be able to assert this.
|
||||
if self.get_data().is_none() {
|
||||
return;
|
||||
}
|
||||
|
||||
if dom::raw_note_descendants::<Self, B>(*self) {
|
||||
bindings::Gecko_SetOwnerDocumentNeedsStyleFlush(self.0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue