Open Bug 710769 Opened 13 years ago Updated 2 years ago

PuppetWidget needs to dispatch WILL_PAINT events

Categories

(Core :: Widget, defect)

9 Branch
x86
macOS
defect

Tracking

()

People

(Reporter: bzbarsky, Unassigned)

Details

See bug 598482 comment 79.

Chris, where should this actually live?
Very straightforward to add to PuppetWidget::DispatchPaintEvent().

It'd be great to centralize willpaint/didpaint dispatching, instead of having all the widget backends do it, but I'm not sure how that would work.
It's platform specific so that can't be done. WillPaint needs to be called at a time between the OS event arriving and NS_PAINT firing when it is safe to reconfigure widgets. DidPaint needs to be called between NS_PAINT firing and returning from the OS event when it's safe to reconfigure widgets. Depending on the platform, no such times may exist, and if such a time does exist it will be in widget code.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.