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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 | 274 |
275 void DocumentVisibilityObserver::setObservedDocument(Document& document) | 275 void DocumentVisibilityObserver::setObservedDocument(Document& document) |
276 { | 276 { |
277 unregisterObserver(); | 277 unregisterObserver(); |
278 registerObserver(document); | 278 registerObserver(document); |
279 } | 279 } |
280 | 280 |
281 Document::Document(const DocumentInit& initializer, DocumentClassFlags documentC
lasses) | 281 Document::Document(const DocumentInit& initializer, DocumentClassFlags documentC
lasses) |
282 : ContainerNode(0, CreateDocument) | 282 : ContainerNode(0, CreateDocument) |
283 , TreeScope(*this) | 283 , TreeScope(*this) |
| 284 , m_module(nullptr) |
284 , m_hasNodesWithPlaceholderStyle(false) | 285 , m_hasNodesWithPlaceholderStyle(false) |
285 , m_evaluateMediaQueriesOnStyleRecalc(false) | 286 , m_evaluateMediaQueriesOnStyleRecalc(false) |
286 , m_pendingSheetLayout(NoLayoutWithPendingSheets) | 287 , m_pendingSheetLayout(NoLayoutWithPendingSheets) |
287 , m_frame(initializer.frame()) | 288 , m_frame(initializer.frame()) |
288 , m_domWindow(m_frame ? m_frame->domWindow() : 0) | 289 , m_domWindow(m_frame ? m_frame->domWindow() : 0) |
289 , m_importsController(initializer.importsController()) | 290 , m_importsController(initializer.importsController()) |
290 , m_activeParserCount(0) | 291 , m_activeParserCount(0) |
291 , m_executeScriptsWaitingForResourcesTimer(this, &Document::executeScriptsWa
itingForResourcesTimerFired) | 292 , m_executeScriptsWaitingForResourcesTimer(this, &Document::executeScriptsWa
itingForResourcesTimerFired) |
292 , m_hasAutofocused(false) | 293 , m_hasAutofocused(false) |
293 , m_clearFocusedElementTimer(this, &Document::clearFocusedElementTimerFired) | 294 , m_clearFocusedElementTimer(this, &Document::clearFocusedElementTimerFired) |
(...skipping 2705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2999 using namespace blink; | 3000 using namespace blink; |
3000 void showLiveDocumentInstances() | 3001 void showLiveDocumentInstances() |
3001 { | 3002 { |
3002 WeakDocumentSet& set = liveDocumentSet(); | 3003 WeakDocumentSet& set = liveDocumentSet(); |
3003 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 3004 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
3004 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { | 3005 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { |
3005 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); | 3006 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); |
3006 } | 3007 } |
3007 } | 3008 } |
3008 #endif | 3009 #endif |
OLD | NEW |