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 2624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2635 m_wellFormed = parser && parser->wellFormed(); | 2635 m_wellFormed = parser && parser->wellFormed(); |
2636 | 2636 |
2637 // We have to clear the parser, in case someone document.write()s from the | 2637 // We have to clear the parser, in case someone document.write()s from the |
2638 // onLoad event handler, as in Radar 3206524. | 2638 // onLoad event handler, as in Radar 3206524. |
2639 detachParser(); | 2639 detachParser(); |
2640 | 2640 |
2641 if (frame() && frame()->script().canExecuteScripts(NotAboutToExecuteScript))
{ | 2641 if (frame() && frame()->script().canExecuteScripts(NotAboutToExecuteScript))
{ |
2642 ImageLoader::dispatchPendingLoadEvents(); | 2642 ImageLoader::dispatchPendingLoadEvents(); |
2643 ImageLoader::dispatchPendingErrorEvents(); | 2643 ImageLoader::dispatchPendingErrorEvents(); |
2644 | 2644 |
2645 HTMLLinkElement::dispatchPendingLoadEvents(); | |
2646 HTMLStyleElement::dispatchPendingLoadEvents(); | 2645 HTMLStyleElement::dispatchPendingLoadEvents(); |
2647 } | 2646 } |
2648 | 2647 |
2649 // JS running below could remove the frame or destroy the LayoutView so we c
all | 2648 // JS running below could remove the frame or destroy the LayoutView so we c
all |
2650 // those two functions repeatedly and don't save them on the stack. | 2649 // those two functions repeatedly and don't save them on the stack. |
2651 | 2650 |
2652 // To align the HTML load event and the SVGLoad event for the outermost <svg
> element, fire it from | 2651 // To align the HTML load event and the SVGLoad event for the outermost <svg
> element, fire it from |
2653 // here, instead of doing it from SVGElement::finishedParsingChildren. | 2652 // here, instead of doing it from SVGElement::finishedParsingChildren. |
2654 if (svgExtensions()) | 2653 if (svgExtensions()) |
2655 accessSVGExtensions().dispatchSVGLoadEventToOutermostSVGElements(); | 2654 accessSVGExtensions().dispatchSVGLoadEventToOutermostSVGElements(); |
(...skipping 3437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6093 } | 6092 } |
6094 | 6093 |
6095 void showLiveDocumentInstances() | 6094 void showLiveDocumentInstances() |
6096 { | 6095 { |
6097 WeakDocumentSet& set = liveDocumentSet(); | 6096 WeakDocumentSet& set = liveDocumentSet(); |
6098 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6097 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6099 for (Document* document : set) | 6098 for (Document* document : set) |
6100 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); | 6099 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); |
6101 } | 6100 } |
6102 #endif | 6101 #endif |
OLD | NEW |