| Index: third_party/WebKit/Source/core/dom/Document.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
|
| index 150f6e080bfb8c13f4c10b664f5b87292c99ad25..c124c05ffd7586fb84790f0a298add48de1b4473 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp
|
| @@ -5819,6 +5819,14 @@ void Document::decrementLoadEventDelayCount() {
|
| checkLoadEventSoon();
|
| }
|
|
|
| +void Document::decrementLoadEventDelayCountAndCheckLoadEvent() {
|
| + DCHECK(m_loadEventDelayCount);
|
| + --m_loadEventDelayCount;
|
| +
|
| + if (!m_loadEventDelayCount && frame())
|
| + frame()->loader().checkCompleted();
|
| +}
|
| +
|
| void Document::checkLoadEventSoon() {
|
| if (frame() && !m_loadEventDelayTimer.isActive())
|
| m_loadEventDelayTimer.startOneShot(0, BLINK_FROM_HERE);
|
|
|