Fix for https://bugs.webkit.org/show_bug.cgi?id=44828 FrameView
authorAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Mon, 14 Feb 2011 20:34:34 +0000 (17:34 -0300)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Mon, 14 Feb 2011 20:34:34 +0000 (17:34 -0300)
commitdd42ac9e050c25d2872d76424f690661699cad34
tree83fe18ba4ea55c0bbe5b7ff0b1f6701b2f5dca24
parent429bbaa92d60a22a2264e0a1d909dd3f070249a7
Fix for https://bugs.webkit.org/show_bug.cgi?id=44828 FrameView
should make more calls to postLayoutTasks() using the timer
-and corresponding-
<rdar://problem/8064938>

Reviewed by Dave Hyatt.

WebCore:

This change only allows synchronous calls to postLayoutTasks() if
we are not already in a synchronous call to postLayoutTasks().
Furthermore, it de-couples the notion of "the post layout timer
should fire" from m_postLayoutTasksTimer.isActive(), instead using
a boolean to track the need to use the timer.

* page/FrameView.cpp:
(WebCore::FrameView::FrameView):
(WebCore::FrameView::~FrameView):
(WebCore::FrameView::reset):
(WebCore::FrameView::layout):
(WebCore::FrameView::unscheduleRelayout):
(WebCore::FrameView::performPostLayoutTasks):
* page/FrameView.h:

LayoutTests:

* fast/events/change-overflow-on-overflow-change-expected.txt: Added.
* fast/events/change-overflow-on-overflow-change.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66552 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Conflicts:

WebCore/page/FrameView.cpp
WebCore/page/FrameView.h
LayoutTests/ChangeLog
LayoutTests/fast/events/change-overflow-on-overflow-change-expected.txt [new file with mode: 0644]
LayoutTests/fast/events/change-overflow-on-overflow-change.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/page/FrameView.cpp
WebCore/page/FrameView.h