| OLD | NEW |
| 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, 2011, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. |
| 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, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
| 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
| (...skipping 2737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2748 } | 2748 } |
| 2749 | 2749 |
| 2750 void Document::checkLoadEventSoon() | 2750 void Document::checkLoadEventSoon() |
| 2751 { | 2751 { |
| 2752 if (frame() && !m_loadEventDelayTimer.isActive()) | 2752 if (frame() && !m_loadEventDelayTimer.isActive()) |
| 2753 m_loadEventDelayTimer.startOneShot(0, FROM_HERE); | 2753 m_loadEventDelayTimer.startOneShot(0, FROM_HERE); |
| 2754 } | 2754 } |
| 2755 | 2755 |
| 2756 bool Document::isDelayingLoadEvent() | 2756 bool Document::isDelayingLoadEvent() |
| 2757 { | 2757 { |
| 2758 #if ENABLE(OILPAN) | |
| 2759 // Always delay load events until after garbage collection. | |
| 2760 // This way we don't have to explicitly delay load events via | |
| 2761 // incrementLoadEventDelayCount and decrementLoadEventDelayCount in | |
| 2762 // Node destructors. | |
| 2763 if (ThreadState::current()->isSweepInProgress()) { | |
| 2764 if (!m_loadEventDelayCount) | |
| 2765 checkLoadEventSoon(); | |
| 2766 return true; | |
| 2767 } | |
| 2768 #endif | |
| 2769 return m_loadEventDelayCount; | 2758 return m_loadEventDelayCount; |
| 2770 } | 2759 } |
| 2771 | 2760 |
| 2772 | 2761 |
| 2773 void Document::loadEventDelayTimerFired(Timer<Document>*) | 2762 void Document::loadEventDelayTimerFired(Timer<Document>*) |
| 2774 { | 2763 { |
| 2775 checkCompleted(); | 2764 checkCompleted(); |
| 2776 } | 2765 } |
| 2777 | 2766 |
| 2778 ScriptedAnimationController& Document::ensureScriptedAnimationController() | 2767 ScriptedAnimationController& Document::ensureScriptedAnimationController() |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3236 using namespace blink; | 3225 using namespace blink; |
| 3237 void showLiveDocumentInstances() | 3226 void showLiveDocumentInstances() |
| 3238 { | 3227 { |
| 3239 WeakDocumentSet& set = liveDocumentSet(); | 3228 WeakDocumentSet& set = liveDocumentSet(); |
| 3240 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 3229 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 3241 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { | 3230 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { |
| 3242 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); | 3231 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); |
| 3243 } | 3232 } |
| 3244 } | 3233 } |
| 3245 #endif | 3234 #endif |
| OLD | NEW |