| Index: WebCore/dom/Document.cpp
|
| ===================================================================
|
| --- WebCore/dom/Document.cpp (revision 69498)
|
| +++ WebCore/dom/Document.cpp (working copy)
|
| @@ -405,6 +405,7 @@
|
| , m_areKeysEnabledInFullScreen(0)
|
| #endif
|
| , m_loadEventDelayCount(0)
|
| + , m_loadEventDelayTimer(this, &Document::loadEventDelayTimerFired)
|
| {
|
| m_document = this;
|
|
|
| @@ -4775,7 +4776,13 @@
|
| ASSERT(m_loadEventDelayCount);
|
| --m_loadEventDelayCount;
|
|
|
| - if (frame() && !m_loadEventDelayCount)
|
| + if (frame() && !m_loadEventDelayCount && !m_loadEventDelayTimer.isActive())
|
| + m_loadEventDelayTimer.startOneShot(0);
|
| +}
|
| +
|
| +void Document::loadEventDelayTimerFired(Timer<Document>*)
|
| +{
|
| + if (frame())
|
| frame()->loader()->checkCompleted();
|
| }
|
|
|
|
|