Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: Source/core/dom/Document.cpp

Issue 211373002: Oilpan: move DOMWindow object to the oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: setNativeInfoForInnerGlobalObject() -> setNativeInfoForHiddenWrapper() Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/bindings/v8/custom/V8WindowCustom.cpp ('k') | Source/core/events/CompositionEvent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/bindings/v8/custom/V8WindowCustom.cpp ('k') | Source/core/events/CompositionEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698