Closed Bug 1340717 Opened 7 years ago Closed 7 years ago

stylo: figure out whether we can optimize the change hint for table frames better


(Core :: CSS Parsing and Computation, defect, P4)




Tracking Status
firefox54 --- affected


(Reporter: bzbarsky, Unassigned)


(Blocks 1 open bug)


Right now we pass the same change hint for both the table wrapper and the table.  It's not clear whether we can, or should, do better for the latter by excluding things the parent will handle.  Just passing NS_HintsNotHandledForDescendantsIn(changeHint) is NOT right, because that can produce invalid hints that fail this assert in nsStyleChangeList::AppendChange:

  MOZ_ASSERT(!(aHint & nsChangeHint_AllReflowHints) ||
             (aHint & nsChangeHint_NeedReflow),
             "Reflow hint bits set without actually asking for a reflow");

(because it will copy some reflow bits, but doesn't seem to copy NeedReflow?).

Cameron, do you have time to look at this? I can do it, but will be a bit slow; we've grown a lot of changehint complexity since I last looked at it.
Flags: needinfo?(cam)
Blocks: stylo
I wonder if NS_RemoveSubsumedHints in the bug 1301258 patches does the right thing?
Flags: needinfo?(cam)
That seems pretty likely, yes.
Depends on: 1301258
Note that in bug 1340723 I'm going to move this stuff to a somewhat different setup which might effectively make this bug moot.
Boris, is this moot now per comment 3?
Blocks: stylo-perf
No longer blocks: stylo
Flags: needinfo?(bzbarsky)
Priority: -- → P4
I think so, yes.
Closed: 7 years ago
Flags: needinfo?(bzbarsky)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.