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 | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All |
7 * rights reserved. | 7 * rights reserved. |
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 m_templateDocumentHost(nullptr), | 484 m_templateDocumentHost(nullptr), |
485 m_didAssociateFormControlsTimer( | 485 m_didAssociateFormControlsTimer( |
486 TaskRunnerHelper::get(TaskType::Internal, this), | 486 TaskRunnerHelper::get(TaskType::Internal, this), |
487 this, | 487 this, |
488 &Document::didAssociateFormControlsTimerFired), | 488 &Document::didAssociateFormControlsTimerFired), |
489 m_timers(TaskRunnerHelper::get(TaskType::Timer, this)->clone()), | 489 m_timers(TaskRunnerHelper::get(TaskType::Timer, this)->clone()), |
490 m_hasViewportUnits(false), | 490 m_hasViewportUnits(false), |
491 m_parserSyncPolicy(AllowAsynchronousParsing), | 491 m_parserSyncPolicy(AllowAsynchronousParsing), |
492 m_nodeCount(0), | 492 m_nodeCount(0), |
493 m_wouldLoadReason(Created), | 493 m_wouldLoadReason(Created), |
494 m_passwordCount(0) { | 494 m_passwordCount(0), |
| 495 m_engagementLevel(mojom::blink::EngagementLevel::NONE) { |
495 if (m_frame) { | 496 if (m_frame) { |
496 DCHECK(m_frame->page()); | 497 DCHECK(m_frame->page()); |
497 provideContextFeaturesToDocumentFrom(*this, *m_frame->page()); | 498 provideContextFeaturesToDocumentFrom(*this, *m_frame->page()); |
498 | 499 |
499 m_fetcher = m_frame->loader().documentLoader()->fetcher(); | 500 m_fetcher = m_frame->loader().documentLoader()->fetcher(); |
500 FrameFetchContext::provideDocumentToContext(m_fetcher->context(), this); | 501 FrameFetchContext::provideDocumentToContext(m_fetcher->context(), this); |
501 | 502 |
502 CustomElementRegistry* registry = | 503 CustomElementRegistry* registry = |
503 m_frame->localDOMWindow() | 504 m_frame->localDOMWindow() |
504 ? m_frame->localDOMWindow()->maybeCustomElements() | 505 ? m_frame->localDOMWindow()->maybeCustomElements() |
(...skipping 6084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6589 } | 6590 } |
6590 | 6591 |
6591 void showLiveDocumentInstances() { | 6592 void showLiveDocumentInstances() { |
6592 WeakDocumentSet& set = liveDocumentSet(); | 6593 WeakDocumentSet& set = liveDocumentSet(); |
6593 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6594 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6594 for (Document* document : set) | 6595 for (Document* document : set) |
6595 fprintf(stderr, "- Document %p URL: %s\n", document, | 6596 fprintf(stderr, "- Document %p URL: %s\n", document, |
6596 document->url().getString().utf8().data()); | 6597 document->url().getString().utf8().data()); |
6597 } | 6598 } |
6598 #endif | 6599 #endif |
OLD | NEW |