| 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 #include "core/svg/SVGDocumentExtensions.h" | 190 #include "core/svg/SVGDocumentExtensions.h" |
| 191 #include "core/svg/SVGTitleElement.h" | 191 #include "core/svg/SVGTitleElement.h" |
| 192 #include "core/svg/SVGUseElement.h" | 192 #include "core/svg/SVGUseElement.h" |
| 193 #include "core/workers/SharedWorkerRepositoryClient.h" | 193 #include "core/workers/SharedWorkerRepositoryClient.h" |
| 194 #include "core/xml/parser/XMLDocumentParser.h" | 194 #include "core/xml/parser/XMLDocumentParser.h" |
| 195 #include "platform/DateComponents.h" | 195 #include "platform/DateComponents.h" |
| 196 #include "platform/EventDispatchForbiddenScope.h" | 196 #include "platform/EventDispatchForbiddenScope.h" |
| 197 #include "platform/Language.h" | 197 #include "platform/Language.h" |
| 198 #include "platform/LengthFunctions.h" | 198 #include "platform/LengthFunctions.h" |
| 199 #include "platform/Logging.h" | 199 #include "platform/Logging.h" |
| 200 #include "platform/PluginScriptForbiddenScope.h" |
| 200 #include "platform/RuntimeEnabledFeatures.h" | 201 #include "platform/RuntimeEnabledFeatures.h" |
| 201 #include "platform/ScriptForbiddenScope.h" | 202 #include "platform/ScriptForbiddenScope.h" |
| 202 #include "platform/TraceEvent.h" | 203 #include "platform/TraceEvent.h" |
| 203 #include "platform/network/ContentSecurityPolicyParsers.h" | 204 #include "platform/network/ContentSecurityPolicyParsers.h" |
| 204 #include "platform/network/HTTPParsers.h" | 205 #include "platform/network/HTTPParsers.h" |
| 205 #include "platform/scroll/ScrollbarTheme.h" | 206 #include "platform/scroll/ScrollbarTheme.h" |
| 206 #include "platform/text/PlatformLocale.h" | 207 #include "platform/text/PlatformLocale.h" |
| 207 #include "platform/text/SegmentedString.h" | 208 #include "platform/text/SegmentedString.h" |
| 208 #include "platform/weborigin/OriginAccessEntry.h" | 209 #include "platform/weborigin/OriginAccessEntry.h" |
| 209 #include "platform/weborigin/SchemeRegistry.h" | 210 #include "platform/weborigin/SchemeRegistry.h" |
| (...skipping 2357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2567 String text = beforeUnloadEvent->returnValue(); | 2568 String text = beforeUnloadEvent->returnValue(); |
| 2568 if (chromeClient.openBeforeUnloadConfirmPanel(text, m_frame)) { | 2569 if (chromeClient.openBeforeUnloadConfirmPanel(text, m_frame)) { |
| 2569 didAllowNavigation = true; | 2570 didAllowNavigation = true; |
| 2570 return true; | 2571 return true; |
| 2571 } | 2572 } |
| 2572 return false; | 2573 return false; |
| 2573 } | 2574 } |
| 2574 | 2575 |
| 2575 void Document::dispatchUnloadEvents() | 2576 void Document::dispatchUnloadEvents() |
| 2576 { | 2577 { |
| 2578 PluginScriptForbiddenScope forbidPluginDestructorScripting; |
| 2577 RefPtrWillBeRawPtr<Document> protect(this); | 2579 RefPtrWillBeRawPtr<Document> protect(this); |
| 2578 if (m_parser) | 2580 if (m_parser) |
| 2579 m_parser->stopParsing(); | 2581 m_parser->stopParsing(); |
| 2580 | 2582 |
| 2581 if (m_loadEventProgress == LoadEventNotRun) | 2583 if (m_loadEventProgress == LoadEventNotRun) |
| 2582 return; | 2584 return; |
| 2583 | 2585 |
| 2584 if (m_loadEventProgress <= UnloadEventInProgress) { | 2586 if (m_loadEventProgress <= UnloadEventInProgress) { |
| 2585 Element* currentFocusedElement = focusedElement(); | 2587 Element* currentFocusedElement = focusedElement(); |
| 2586 if (isHTMLInputElement(currentFocusedElement)) | 2588 if (isHTMLInputElement(currentFocusedElement)) |
| (...skipping 3123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5710 #ifndef NDEBUG | 5712 #ifndef NDEBUG |
| 5711 using namespace blink; | 5713 using namespace blink; |
| 5712 void showLiveDocumentInstances() | 5714 void showLiveDocumentInstances() |
| 5713 { | 5715 { |
| 5714 WeakDocumentSet& set = liveDocumentSet(); | 5716 WeakDocumentSet& set = liveDocumentSet(); |
| 5715 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5717 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 5716 for (Document* document : set) | 5718 for (Document* document : set) |
| 5717 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5719 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
| 5718 } | 5720 } |
| 5719 #endif | 5721 #endif |
| OLD | NEW |