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 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 | 389 |
390 Document::Document(const DocumentInit& initializer, DocumentClassFlags documentC
lasses) | 390 Document::Document(const DocumentInit& initializer, DocumentClassFlags documentC
lasses) |
391 : ContainerNode(0, CreateDocument) | 391 : ContainerNode(0, CreateDocument) |
392 , TreeScope(*this) | 392 , TreeScope(*this) |
393 , m_hasNodesWithPlaceholderStyle(false) | 393 , m_hasNodesWithPlaceholderStyle(false) |
394 , m_evaluateMediaQueriesOnStyleRecalc(false) | 394 , m_evaluateMediaQueriesOnStyleRecalc(false) |
395 , m_pendingSheetLayout(NoLayoutWithPendingSheets) | 395 , m_pendingSheetLayout(NoLayoutWithPendingSheets) |
396 , m_frame(initializer.frame()) | 396 , m_frame(initializer.frame()) |
397 , m_domWindow(m_frame ? m_frame->localDOMWindow() : 0) | 397 , m_domWindow(m_frame ? m_frame->localDOMWindow() : 0) |
398 , m_importsController(initializer.importsController()) | 398 , m_importsController(initializer.importsController()) |
399 , m_activeParserCount(0) | |
400 , m_contextFeatures(ContextFeatures::defaultSwitch()) | 399 , m_contextFeatures(ContextFeatures::defaultSwitch()) |
401 , m_wellFormed(false) | 400 , m_wellFormed(false) |
402 , m_printing(false) | 401 , m_printing(false) |
403 , m_wasPrinting(false) | 402 , m_wasPrinting(false) |
404 , m_paginatedForScreen(false) | 403 , m_paginatedForScreen(false) |
405 , m_compatibilityMode(NoQuirksMode) | 404 , m_compatibilityMode(NoQuirksMode) |
406 , m_compatibilityModeLocked(false) | 405 , m_compatibilityModeLocked(false) |
407 , m_executeScriptsWaitingForResourcesTask(CancellableTaskFactory::create(thi
s, &Document::executeScriptsWaitingForResources)) | 406 , m_executeScriptsWaitingForResourcesTask(CancellableTaskFactory::create(thi
s, &Document::executeScriptsWaitingForResources)) |
408 , m_hasAutofocused(false) | 407 , m_hasAutofocused(false) |
409 , m_clearFocusedElementTimer(this, &Document::clearFocusedElementTimerFired) | 408 , m_clearFocusedElementTimer(this, &Document::clearFocusedElementTimerFired) |
(...skipping 5138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5548 void Document::setThreadedParsingEnabledForTesting(bool enabled) | 5547 void Document::setThreadedParsingEnabledForTesting(bool enabled) |
5549 { | 5548 { |
5550 s_threadedParsingEnabledForTesting = enabled; | 5549 s_threadedParsingEnabledForTesting = enabled; |
5551 } | 5550 } |
5552 | 5551 |
5553 bool Document::threadedParsingEnabledForTesting() | 5552 bool Document::threadedParsingEnabledForTesting() |
5554 { | 5553 { |
5555 return s_threadedParsingEnabledForTesting; | 5554 return s_threadedParsingEnabledForTesting; |
5556 } | 5555 } |
5557 | 5556 |
5558 bool Document::hasActiveParser() | |
5559 { | |
5560 return m_activeParserCount || (m_parser && m_parser->processingData()); | |
5561 } | |
5562 | |
5563 void Document::setContextFeatures(ContextFeatures& features) | 5557 void Document::setContextFeatures(ContextFeatures& features) |
5564 { | 5558 { |
5565 m_contextFeatures = PassRefPtrWillBeRawPtr<ContextFeatures>(features); | 5559 m_contextFeatures = PassRefPtrWillBeRawPtr<ContextFeatures>(features); |
5566 } | 5560 } |
5567 | 5561 |
5568 static LayoutObject* nearestCommonHoverAncestor(LayoutObject* obj1, LayoutObject
* obj2) | 5562 static LayoutObject* nearestCommonHoverAncestor(LayoutObject* obj1, LayoutObject
* obj2) |
5569 { | 5563 { |
5570 if (!obj1 || !obj2) | 5564 if (!obj1 || !obj2) |
5571 return 0; | 5565 return 0; |
5572 | 5566 |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6044 #ifndef NDEBUG | 6038 #ifndef NDEBUG |
6045 using namespace blink; | 6039 using namespace blink; |
6046 void showLiveDocumentInstances() | 6040 void showLiveDocumentInstances() |
6047 { | 6041 { |
6048 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 6042 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
6049 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6043 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6050 for (Document* document : set) | 6044 for (Document* document : set) |
6051 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); | 6045 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); |
6052 } | 6046 } |
6053 #endif | 6047 #endif |
OLD | NEW |