[Webkit-unassigned] [Bug 119075] With frame flattening on, too many resize events fired if document is resized in onresize handler.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 26 14:53:36 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=119075





--- Comment #2 from Yongjun Zhang <yongjun_zhang at apple.com>  2013-07-26 14:53:25 PST ---
(In reply to comment #1)
> I think http://trac.webkit.org/changeset/149287 made the major logic change by moving 'resize event' sending from performPostLayout() to setFrameRect() and making it sync, while http://trac.webkit.org/changeset/149382 tried to ease on that by checking against isInLayout() and sending the resize event off async.
> What I think what happens is that http://trac.webkit.org/changeset/150011 copied the resize event sending back to the performPostLayout() (now we are sending it off at 2 places), but since peformPostLayout() can be invoke by a timer, the isInLayout() guarding does not help there anymore and we are sending the resize events sync.
>
The problems is actually not caused by sync sending resize events.  Rather, it is caused by queueing extra resize events in DocumentEventQueue when it is still dispatching the previous resize event in DocumentEventQueue::pendingEventTimerFired, and this makes a loop in the same runloop.  Before 149287, we were dispatching the resize event in performPostLayout() in another runloop.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list