| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 #include "core/dom/Text.h" | 76 #include "core/dom/Text.h" |
| 77 #include "core/dom/TouchList.h" | 77 #include "core/dom/TouchList.h" |
| 78 #include "core/dom/custom/CustomElementMicrotaskRunQueue.h" | 78 #include "core/dom/custom/CustomElementMicrotaskRunQueue.h" |
| 79 #include "core/dom/custom/CustomElementRegistrationContext.h" | 79 #include "core/dom/custom/CustomElementRegistrationContext.h" |
| 80 #include "core/dom/shadow/ElementShadow.h" | 80 #include "core/dom/shadow/ElementShadow.h" |
| 81 #include "core/dom/shadow/ShadowRoot.h" | 81 #include "core/dom/shadow/ShadowRoot.h" |
| 82 #include "core/editing/Editor.h" | 82 #include "core/editing/Editor.h" |
| 83 #include "core/editing/FrameSelection.h" | 83 #include "core/editing/FrameSelection.h" |
| 84 #include "core/editing/SpellChecker.h" | 84 #include "core/editing/SpellChecker.h" |
| 85 #include "core/editing/markup.h" | 85 #include "core/editing/markup.h" |
| 86 #include "core/events/BeforeUnloadEvent.h" | |
| 87 #include "core/events/Event.h" | 86 #include "core/events/Event.h" |
| 88 #include "core/events/EventFactory.h" | 87 #include "core/events/EventFactory.h" |
| 89 #include "core/events/EventListener.h" | 88 #include "core/events/EventListener.h" |
| 90 #include "core/events/HashChangeEvent.h" | 89 #include "core/events/HashChangeEvent.h" |
| 91 #include "core/events/PageTransitionEvent.h" | 90 #include "core/events/PageTransitionEvent.h" |
| 92 #include "core/events/ScopedEventQueue.h" | 91 #include "core/events/ScopedEventQueue.h" |
| 93 #include "core/fetch/ResourceFetcher.h" | 92 #include "core/fetch/ResourceFetcher.h" |
| 94 #include "core/frame/EventHandlerRegistry.h" | 93 #include "core/frame/EventHandlerRegistry.h" |
| 95 #include "core/frame/FrameConsole.h" | 94 #include "core/frame/FrameConsole.h" |
| 96 #include "core/frame/FrameHost.h" | 95 #include "core/frame/FrameHost.h" |
| (...skipping 1513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1610 } | 1609 } |
| 1611 | 1610 |
| 1612 if (!m_frame) | 1611 if (!m_frame) |
| 1613 return; | 1612 return; |
| 1614 | 1613 |
| 1615 removeAllEventListenersRecursively(); | 1614 removeAllEventListenersRecursively(); |
| 1616 } | 1615 } |
| 1617 | 1616 |
| 1618 Document::PageDismissalType Document::pageDismissalEventBeingDispatched() const | 1617 Document::PageDismissalType Document::pageDismissalEventBeingDispatched() const |
| 1619 { | 1618 { |
| 1620 if (m_loadEventProgress == BeforeUnloadEventInProgress) | |
| 1621 return BeforeUnloadDismissal; | |
| 1622 if (m_loadEventProgress == PageHideInProgress) | 1619 if (m_loadEventProgress == PageHideInProgress) |
| 1623 return PageHideDismissal; | 1620 return PageHideDismissal; |
| 1624 if (m_loadEventProgress == UnloadEventInProgress) | 1621 if (m_loadEventProgress == UnloadEventInProgress) |
| 1625 return UnloadDismissal; | 1622 return UnloadDismissal; |
| 1626 return NoDismissal; | 1623 return NoDismissal; |
| 1627 } | 1624 } |
| 1628 | 1625 |
| 1629 void Document::setParsing(bool b) | 1626 void Document::setParsing(bool b) |
| 1630 { | 1627 { |
| 1631 m_isParsing = b; | 1628 m_isParsing = b; |
| (...skipping 1660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3292 using namespace blink; | 3289 using namespace blink; |
| 3293 void showLiveDocumentInstances() | 3290 void showLiveDocumentInstances() |
| 3294 { | 3291 { |
| 3295 WeakDocumentSet& set = liveDocumentSet(); | 3292 WeakDocumentSet& set = liveDocumentSet(); |
| 3296 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 3293 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 3297 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { | 3294 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { |
| 3298 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); | 3295 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); |
| 3299 } | 3296 } |
| 3300 } | 3297 } |
| 3301 #endif | 3298 #endif |
| OLD | NEW |