| 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 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 , m_documentTiming(*this) | 440 , m_documentTiming(*this) |
| 441 , m_writeRecursionIsTooDeep(false) | 441 , m_writeRecursionIsTooDeep(false) |
| 442 , m_writeRecursionDepth(0) | 442 , m_writeRecursionDepth(0) |
| 443 , m_taskRunner(MainThreadTaskRunner::create(this)) | 443 , m_taskRunner(MainThreadTaskRunner::create(this)) |
| 444 , m_registrationContext(initializer.registrationContext(this)) | 444 , m_registrationContext(initializer.registrationContext(this)) |
| 445 , m_elementDataCacheClearTimer(this, &Document::elementDataCacheClearTimerFi
red) | 445 , m_elementDataCacheClearTimer(this, &Document::elementDataCacheClearTimerFi
red) |
| 446 , m_timeline(AnimationTimeline::create(this)) | 446 , m_timeline(AnimationTimeline::create(this)) |
| 447 , m_compositorPendingAnimations(new CompositorPendingAnimations()) | 447 , m_compositorPendingAnimations(new CompositorPendingAnimations()) |
| 448 , m_templateDocumentHost(nullptr) | 448 , m_templateDocumentHost(nullptr) |
| 449 , m_didAssociateFormControlsTimer(this, &Document::didAssociateFormControlsT
imerFired) | 449 , m_didAssociateFormControlsTimer(this, &Document::didAssociateFormControlsT
imerFired) |
| 450 , m_timers(TaskRunnerHelper::getTimerTaskRunner(this)->adoptClone()) | 450 , m_timers(TaskRunnerHelper::getTimerTaskRunner(this)->clone()) |
| 451 , m_hasViewportUnits(false) | 451 , m_hasViewportUnits(false) |
| 452 , m_parserSyncPolicy(AllowAsynchronousParsing) | 452 , m_parserSyncPolicy(AllowAsynchronousParsing) |
| 453 , m_nodeCount(0) | 453 , m_nodeCount(0) |
| 454 { | 454 { |
| 455 if (m_frame) { | 455 if (m_frame) { |
| 456 DCHECK(m_frame->page()); | 456 DCHECK(m_frame->page()); |
| 457 provideContextFeaturesToDocumentFrom(*this, *m_frame->page()); | 457 provideContextFeaturesToDocumentFrom(*this, *m_frame->page()); |
| 458 | 458 |
| 459 m_fetcher = m_frame->loader().documentLoader()->fetcher(); | 459 m_fetcher = m_frame->loader().documentLoader()->fetcher(); |
| 460 FrameFetchContext::provideDocumentToContext(m_fetcher->context(), this); | 460 FrameFetchContext::provideDocumentToContext(m_fetcher->context(), this); |
| (...skipping 1764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2225 m_fetcher->clearContext(); | 2225 m_fetcher->clearContext(); |
| 2226 // If this document is the master for an HTMLImportsController, sever that | 2226 // If this document is the master for an HTMLImportsController, sever that |
| 2227 // relationship. This ensures that we don't leave import loads in flight, | 2227 // relationship. This ensures that we don't leave import loads in flight, |
| 2228 // thinking they should have access to a valid frame when they don't. | 2228 // thinking they should have access to a valid frame when they don't. |
| 2229 if (m_importsController) { | 2229 if (m_importsController) { |
| 2230 m_importsController->dispose(); | 2230 m_importsController->dispose(); |
| 2231 setImportsController(nullptr); | 2231 setImportsController(nullptr); |
| 2232 } | 2232 } |
| 2233 | 2233 |
| 2234 m_timers.setTimerTaskRunner( | 2234 m_timers.setTimerTaskRunner( |
| 2235 Platform::current()->currentThread()->scheduler()->timerTaskRunner()->ad
optClone()); | 2235 Platform::current()->currentThread()->scheduler()->timerTaskRunner()->cl
one()); |
| 2236 | 2236 |
| 2237 // This is required, as our LocalFrame might delete itself as soon as it det
aches | 2237 // This is required, as our LocalFrame might delete itself as soon as it det
aches |
| 2238 // us. However, this violates Node::detach() semantics, as it's never | 2238 // us. However, this violates Node::detach() semantics, as it's never |
| 2239 // possible to re-attach. Eventually Document::detach() should be renamed, | 2239 // possible to re-attach. Eventually Document::detach() should be renamed, |
| 2240 // or this setting of the frame to 0 could be made explicit in each of the | 2240 // or this setting of the frame to 0 could be made explicit in each of the |
| 2241 // callers of Document::detach(). | 2241 // callers of Document::detach(). |
| 2242 m_frame = nullptr; | 2242 m_frame = nullptr; |
| 2243 | 2243 |
| 2244 if (m_mediaQueryMatcher) | 2244 if (m_mediaQueryMatcher) |
| 2245 m_mediaQueryMatcher->documentDetached(); | 2245 m_mediaQueryMatcher->documentDetached(); |
| (...skipping 3799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6045 } | 6045 } |
| 6046 | 6046 |
| 6047 void showLiveDocumentInstances() | 6047 void showLiveDocumentInstances() |
| 6048 { | 6048 { |
| 6049 WeakDocumentSet& set = liveDocumentSet(); | 6049 WeakDocumentSet& set = liveDocumentSet(); |
| 6050 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6050 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6051 for (Document* document : set) | 6051 for (Document* document : set) |
| 6052 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); | 6052 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); |
| 6053 } | 6053 } |
| 6054 #endif | 6054 #endif |
| OLD | NEW |