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 2418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2429 m_loadEventProgress = LoadEventInProgress; | 2429 m_loadEventProgress = LoadEventInProgress; |
2430 | 2430 |
2431 ScriptableDocumentParser* parser = scriptableDocumentParser(); | 2431 ScriptableDocumentParser* parser = scriptableDocumentParser(); |
2432 m_wellFormed = parser && parser->wellFormed(); | 2432 m_wellFormed = parser && parser->wellFormed(); |
2433 | 2433 |
2434 // We have to clear the parser, in case someone document.write()s from the | 2434 // We have to clear the parser, in case someone document.write()s from the |
2435 // onLoad event handler, as in Radar 3206524. | 2435 // onLoad event handler, as in Radar 3206524. |
2436 detachParser(); | 2436 detachParser(); |
2437 | 2437 |
2438 if (frame() && frame()->script().canExecuteScripts(NotAboutToExecuteScript))
{ | 2438 if (frame() && frame()->script().canExecuteScripts(NotAboutToExecuteScript))
{ |
2439 ImageLoader::dispatchPendingBeforeLoadEvents(); | |
2440 ImageLoader::dispatchPendingLoadEvents(); | 2439 ImageLoader::dispatchPendingLoadEvents(); |
2441 ImageLoader::dispatchPendingErrorEvents(); | 2440 ImageLoader::dispatchPendingErrorEvents(); |
2442 | 2441 |
2443 HTMLLinkElement::dispatchPendingLoadEvents(); | 2442 HTMLLinkElement::dispatchPendingLoadEvents(); |
2444 HTMLStyleElement::dispatchPendingLoadEvents(); | 2443 HTMLStyleElement::dispatchPendingLoadEvents(); |
2445 } | 2444 } |
2446 | 2445 |
2447 // JS running below could remove the frame or destroy the RenderView so we c
all | 2446 // JS running below could remove the frame or destroy the RenderView so we c
all |
2448 // those two functions repeatedly and don't save them on the stack. | 2447 // those two functions repeatedly and don't save them on the stack. |
2449 | 2448 |
(...skipping 1344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3794 UseCounter::count(*this, UseCounter::OverflowChangedEvent); | 3793 UseCounter::count(*this, UseCounter::OverflowChangedEvent); |
3795 addListenerType(OVERFLOWCHANGED_LISTENER); | 3794 addListenerType(OVERFLOWCHANGED_LISTENER); |
3796 } else if (eventType == EventTypeNames::webkitAnimationStart || (RuntimeEnab
ledFeatures::cssAnimationUnprefixedEnabled() && eventType == EventTypeNames::ani
mationstart)) { | 3795 } else if (eventType == EventTypeNames::webkitAnimationStart || (RuntimeEnab
ledFeatures::cssAnimationUnprefixedEnabled() && eventType == EventTypeNames::ani
mationstart)) { |
3797 addListenerType(ANIMATIONSTART_LISTENER); | 3796 addListenerType(ANIMATIONSTART_LISTENER); |
3798 } else if (eventType == EventTypeNames::webkitAnimationEnd || (RuntimeEnable
dFeatures::cssAnimationUnprefixedEnabled() && eventType == EventTypeNames::anima
tionend)) { | 3797 } else if (eventType == EventTypeNames::webkitAnimationEnd || (RuntimeEnable
dFeatures::cssAnimationUnprefixedEnabled() && eventType == EventTypeNames::anima
tionend)) { |
3799 addListenerType(ANIMATIONEND_LISTENER); | 3798 addListenerType(ANIMATIONEND_LISTENER); |
3800 } else if (eventType == EventTypeNames::webkitAnimationIteration || (Runtime
EnabledFeatures::cssAnimationUnprefixedEnabled() && eventType == EventTypeNames:
:animationiteration)) { | 3799 } else if (eventType == EventTypeNames::webkitAnimationIteration || (Runtime
EnabledFeatures::cssAnimationUnprefixedEnabled() && eventType == EventTypeNames:
:animationiteration)) { |
3801 addListenerType(ANIMATIONITERATION_LISTENER); | 3800 addListenerType(ANIMATIONITERATION_LISTENER); |
3802 } else if (eventType == EventTypeNames::webkitTransitionEnd || eventType ==
EventTypeNames::transitionend) { | 3801 } else if (eventType == EventTypeNames::webkitTransitionEnd || eventType ==
EventTypeNames::transitionend) { |
3803 addListenerType(TRANSITIONEND_LISTENER); | 3802 addListenerType(TRANSITIONEND_LISTENER); |
3804 } else if (eventType == EventTypeNames::beforeload) { | |
3805 if (m_frame && m_frame->script().shouldBypassMainWorldContentSecurityPol
icy()) { | |
3806 UseCounter::count(*this, UseCounter::BeforeLoadEventInIsolatedWorld)
; | |
3807 } else { | |
3808 UseCounter::count(*this, UseCounter::BeforeLoadEvent); | |
3809 } | |
3810 addListenerType(BEFORELOAD_LISTENER); | |
3811 } else if (eventType == EventTypeNames::scroll) { | 3803 } else if (eventType == EventTypeNames::scroll) { |
3812 addListenerType(SCROLL_LISTENER); | 3804 addListenerType(SCROLL_LISTENER); |
3813 } else if (eventType == EventTypeNames::DOMFocusIn || eventType == EventType
Names::DOMFocusOut) { | 3805 } else if (eventType == EventTypeNames::DOMFocusIn || eventType == EventType
Names::DOMFocusOut) { |
3814 UseCounter::count(*this, UseCounter::DOMFocusInOutEvent); | 3806 UseCounter::count(*this, UseCounter::DOMFocusInOutEvent); |
3815 } | 3807 } |
3816 } | 3808 } |
3817 | 3809 |
3818 CSSStyleDeclaration* Document::getOverrideStyle(Element*, const String&) | 3810 CSSStyleDeclaration* Document::getOverrideStyle(Element*, const String&) |
3819 { | 3811 { |
3820 return 0; | 3812 return 0; |
(...skipping 1673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5494 } | 5486 } |
5495 | 5487 |
5496 void Document::invalidateNodeListCaches(const QualifiedName* attrName) | 5488 void Document::invalidateNodeListCaches(const QualifiedName* attrName) |
5497 { | 5489 { |
5498 HashSet<LiveNodeListBase*>::iterator end = m_listsInvalidatedAtDocument.end(
); | 5490 HashSet<LiveNodeListBase*>::iterator end = m_listsInvalidatedAtDocument.end(
); |
5499 for (HashSet<LiveNodeListBase*>::iterator it = m_listsInvalidatedAtDocument.
begin(); it != end; ++it) | 5491 for (HashSet<LiveNodeListBase*>::iterator it = m_listsInvalidatedAtDocument.
begin(); it != end; ++it) |
5500 (*it)->invalidateCache(attrName); | 5492 (*it)->invalidateCache(attrName); |
5501 } | 5493 } |
5502 | 5494 |
5503 } // namespace WebCore | 5495 } // namespace WebCore |
OLD | NEW |