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

Side by Side Diff: sky/engine/core/dom/Document.cpp

Issue 771323002: Remove a couple more core/ header includes from v8_inspector (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
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 2284 matching lines...) Expand 10 before | Expand all | Expand 10 after
2295 setParsing(false); 2295 setParsing(false);
2296 dispatchEvent(Event::createBubble(EventTypeNames::DOMContentLoaded)); 2296 dispatchEvent(Event::createBubble(EventTypeNames::DOMContentLoaded));
2297 2297
2298 // The loader's finishedParsing() method may invoke script that causes this object to 2298 // The loader's finishedParsing() method may invoke script that causes this object to
2299 // be dereferenced (when this document is in an iframe and the onload causes the iframe's src to change). 2299 // be dereferenced (when this document is in an iframe and the onload causes the iframe's src to change).
2300 // Keep it alive until we are done. 2300 // Keep it alive until we are done.
2301 RefPtr<Document> protect(this); 2301 RefPtr<Document> protect(this);
2302 2302
2303 if (RefPtr<LocalFrame> f = frame()) { 2303 if (RefPtr<LocalFrame> f = frame()) {
2304 checkCompleted(); 2304 checkCompleted();
2305 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "Ma rkDOMContent", TRACE_EVENT_SCOPE_PROCESS, "data", InspectorMarkLoadEvent::data(f .get())); 2305 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "Ma rkDOMContent", TRACE_EVENT_SCOPE_PROCESS, "data", InspectorMarkLoadEvent::data() );
2306 } 2306 }
2307 2307
2308 // Schedule dropping of the ElementDataCache. We keep it alive for a while a fter parsing finishes 2308 // Schedule dropping of the ElementDataCache. We keep it alive for a while a fter parsing finishes
2309 // so that dynamically inserted content can also benefit from sharing optimi zations. 2309 // so that dynamically inserted content can also benefit from sharing optimi zations.
2310 // Note that we don't refresh the timer on cache access since that could lea d to huge caches being kept 2310 // Note that we don't refresh the timer on cache access since that could lea d to huge caches being kept
2311 // alive indefinitely by something innocuous like JS setting .innerHTML repe atedly on a timer. 2311 // alive indefinitely by something innocuous like JS setting .innerHTML repe atedly on a timer.
2312 m_elementDataCacheClearTimer.startOneShot(10, FROM_HERE); 2312 m_elementDataCacheClearTimer.startOneShot(10, FROM_HERE);
2313 2313
2314 if (HTMLImportLoader* import = importLoader()) 2314 if (HTMLImportLoader* import = importLoader())
2315 import->didFinishParsing(); 2315 import->didFinishParsing();
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
2795 using namespace blink; 2795 using namespace blink;
2796 void showLiveDocumentInstances() 2796 void showLiveDocumentInstances()
2797 { 2797 {
2798 WeakDocumentSet& set = liveDocumentSet(); 2798 WeakDocumentSet& set = liveDocumentSet();
2799 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 2799 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
2800 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it ) { 2800 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it ) {
2801 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut f8().data()); 2801 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut f8().data());
2802 } 2802 }
2803 } 2803 }
2804 #endif 2804 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698