Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: WebCore/dom/Document.cpp

Issue 3691003: Merge 69043 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/517/
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « WebCore/dom/Document.h ('k') | WebCore/html/HTMLMediaElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2008, 2009 Google Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Google Inc. All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 #if ENABLE(WML) 398 #if ENABLE(WML)
399 , m_containsWMLContent(false) 399 , m_containsWMLContent(false)
400 #endif 400 #endif
401 , m_weakReference(DocumentWeakReference::create(this)) 401 , m_weakReference(DocumentWeakReference::create(this))
402 , m_idAttributeName(idAttr) 402 , m_idAttributeName(idAttr)
403 #if ENABLE(FULLSCREEN_API) 403 #if ENABLE(FULLSCREEN_API)
404 , m_isFullScreen(0) 404 , m_isFullScreen(0)
405 , m_areKeysEnabledInFullScreen(0) 405 , m_areKeysEnabledInFullScreen(0)
406 #endif 406 #endif
407 , m_loadEventDelayCount(0) 407 , m_loadEventDelayCount(0)
408 , m_loadEventDelayTimer(this, &Document::loadEventDelayTimerFired)
408 { 409 {
409 m_document = this; 410 m_document = this;
410 411
411 m_pageGroupUserSheetCacheValid = false; 412 m_pageGroupUserSheetCacheValid = false;
412 413
413 m_printing = false; 414 m_printing = false;
414 m_paginatedForScreen = false; 415 m_paginatedForScreen = false;
415 416
416 m_ignoreAutofocus = false; 417 m_ignoreAutofocus = false;
417 418
(...skipping 4350 matching lines...) Expand 10 before | Expand all | Expand 10 after
4768 element->dispatchEvent(Event::create(eventNames().webkitfullscreenchangeEven t, true, false)); 4769 element->dispatchEvent(Event::create(eventNames().webkitfullscreenchangeEven t, true, false));
4769 } 4770 }
4770 4771
4771 #endif 4772 #endif
4772 4773
4773 void Document::decrementLoadEventDelayCount() 4774 void Document::decrementLoadEventDelayCount()
4774 { 4775 {
4775 ASSERT(m_loadEventDelayCount); 4776 ASSERT(m_loadEventDelayCount);
4776 --m_loadEventDelayCount; 4777 --m_loadEventDelayCount;
4777 4778
4778 if (frame() && !m_loadEventDelayCount) 4779 if (frame() && !m_loadEventDelayCount && !m_loadEventDelayTimer.isActive())
4780 m_loadEventDelayTimer.startOneShot(0);
4781 }
4782
4783 void Document::loadEventDelayTimerFired(Timer<Document>*)
4784 {
4785 if (frame())
4779 frame()->loader()->checkCompleted(); 4786 frame()->loader()->checkCompleted();
4780 } 4787 }
4781 4788
4782 } // namespace WebCore 4789 } // namespace WebCore
OLDNEW
« no previous file with comments | « WebCore/dom/Document.h ('k') | WebCore/html/HTMLMediaElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698