| 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 2437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2448 checkCompleted(); | 2448 checkCompleted(); |
| 2449 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "Ma
rkDOMContent", TRACE_EVENT_SCOPE_PROCESS, "data", InspectorMarkLoadEvent::data(f
.get())); | 2449 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "Ma
rkDOMContent", TRACE_EVENT_SCOPE_PROCESS, "data", InspectorMarkLoadEvent::data(f
.get())); |
| 2450 } | 2450 } |
| 2451 | 2451 |
| 2452 // Schedule dropping of the ElementDataCache. We keep it alive for a while a
fter parsing finishes | 2452 // Schedule dropping of the ElementDataCache. We keep it alive for a while a
fter parsing finishes |
| 2453 // so that dynamically inserted content can also benefit from sharing optimi
zations. | 2453 // so that dynamically inserted content can also benefit from sharing optimi
zations. |
| 2454 // Note that we don't refresh the timer on cache access since that could lea
d to huge caches being kept | 2454 // Note that we don't refresh the timer on cache access since that could lea
d to huge caches being kept |
| 2455 // alive indefinitely by something innocuous like JS setting .innerHTML repe
atedly on a timer. | 2455 // alive indefinitely by something innocuous like JS setting .innerHTML repe
atedly on a timer. |
| 2456 m_elementDataCacheClearTimer.startOneShot(10, FROM_HERE); | 2456 m_elementDataCacheClearTimer.startOneShot(10, FROM_HERE); |
| 2457 | 2457 |
| 2458 // Parser should have picked up all preloads by now | |
| 2459 m_fetcher->clearPreloads(); | |
| 2460 | |
| 2461 if (HTMLImportLoader* import = importLoader()) | 2458 if (HTMLImportLoader* import = importLoader()) |
| 2462 import->didFinishParsing(); | 2459 import->didFinishParsing(); |
| 2463 } | 2460 } |
| 2464 | 2461 |
| 2465 void Document::elementDataCacheClearTimerFired(Timer<Document>*) | 2462 void Document::elementDataCacheClearTimerFired(Timer<Document>*) |
| 2466 { | 2463 { |
| 2467 m_elementDataCache.clear(); | 2464 m_elementDataCache.clear(); |
| 2468 } | 2465 } |
| 2469 | 2466 |
| 2470 bool Document::allowExecutingScripts(Node* node) | 2467 bool Document::allowExecutingScripts(Node* node) |
| (...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2971 using namespace blink; | 2968 using namespace blink; |
| 2972 void showLiveDocumentInstances() | 2969 void showLiveDocumentInstances() |
| 2973 { | 2970 { |
| 2974 WeakDocumentSet& set = liveDocumentSet(); | 2971 WeakDocumentSet& set = liveDocumentSet(); |
| 2975 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 2972 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 2976 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { | 2973 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { |
| 2977 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); | 2974 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); |
| 2978 } | 2975 } |
| 2979 } | 2976 } |
| 2980 #endif | 2977 #endif |
| OLD | NEW |