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 2407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2418 | 2418 |
2419 // If the load was blocked because of a pending location change and the loca
tion change triggers a same document | 2419 // If the load was blocked because of a pending location change and the loca
tion change triggers a same document |
2420 // navigation, don't fire load events after the same document navigation com
pletes (unless there's an explicit open). | 2420 // navigation, don't fire load events after the same document navigation com
pletes (unless there's an explicit open). |
2421 m_loadEventProgress = LoadEventTried; | 2421 m_loadEventProgress = LoadEventTried; |
2422 | 2422 |
2423 if (!doload) | 2423 if (!doload) |
2424 return; | 2424 return; |
2425 | 2425 |
2426 // The call to dispatchWindowLoadEvent can detach the DOMWindow and cause it
(and its | 2426 // The call to dispatchWindowLoadEvent can detach the DOMWindow and cause it
(and its |
2427 // attached Document) to be destroyed. | 2427 // attached Document) to be destroyed. |
2428 RefPtr<DOMWindow> protectedWindow(this->domWindow()); | 2428 RefPtrWillBeRawPtr<DOMWindow> protectedWindow(this->domWindow()); |
2429 | 2429 |
2430 m_loadEventProgress = LoadEventInProgress; | 2430 m_loadEventProgress = LoadEventInProgress; |
2431 | 2431 |
2432 ScriptableDocumentParser* parser = scriptableDocumentParser(); | 2432 ScriptableDocumentParser* parser = scriptableDocumentParser(); |
2433 m_wellFormed = parser && parser->wellFormed(); | 2433 m_wellFormed = parser && parser->wellFormed(); |
2434 | 2434 |
2435 // We have to clear the parser, in case someone document.write()s from the | 2435 // We have to clear the parser, in case someone document.write()s from the |
2436 // onLoad event handler, as in Radar 3206524. | 2436 // onLoad event handler, as in Radar 3206524. |
2437 detachParser(); | 2437 detachParser(); |
2438 | 2438 |
(...skipping 3056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5495 } | 5495 } |
5496 | 5496 |
5497 void Document::invalidateNodeListCaches(const QualifiedName* attrName) | 5497 void Document::invalidateNodeListCaches(const QualifiedName* attrName) |
5498 { | 5498 { |
5499 HashSet<LiveNodeListBase*>::iterator end = m_listsInvalidatedAtDocument.end(
); | 5499 HashSet<LiveNodeListBase*>::iterator end = m_listsInvalidatedAtDocument.end(
); |
5500 for (HashSet<LiveNodeListBase*>::iterator it = m_listsInvalidatedAtDocument.
begin(); it != end; ++it) | 5500 for (HashSet<LiveNodeListBase*>::iterator it = m_listsInvalidatedAtDocument.
begin(); it != end; ++it) |
5501 (*it)->invalidateCache(attrName); | 5501 (*it)->invalidateCache(attrName); |
5502 } | 5502 } |
5503 | 5503 |
5504 } // namespace WebCore | 5504 } // namespace WebCore |
OLD | NEW |