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 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 m_templateDocumentHost(nullptr), | 495 m_templateDocumentHost(nullptr), |
496 m_didAssociateFormControlsTimer( | 496 m_didAssociateFormControlsTimer( |
497 TaskRunnerHelper::get(TaskType::Internal, this), | 497 TaskRunnerHelper::get(TaskType::Internal, this), |
498 this, | 498 this, |
499 &Document::didAssociateFormControlsTimerFired), | 499 &Document::didAssociateFormControlsTimerFired), |
500 m_timers(TaskRunnerHelper::get(TaskType::Timer, this)->clone()), | 500 m_timers(TaskRunnerHelper::get(TaskType::Timer, this)->clone()), |
501 m_hasViewportUnits(false), | 501 m_hasViewportUnits(false), |
502 m_parserSyncPolicy(AllowAsynchronousParsing), | 502 m_parserSyncPolicy(AllowAsynchronousParsing), |
503 m_nodeCount(0), | 503 m_nodeCount(0), |
504 m_wouldLoadReason(Created), | 504 m_wouldLoadReason(Created), |
505 m_passwordCount(0) { | 505 m_passwordCount(0), |
| 506 m_engagementLevel(mojom::blink::EngagementLevel::NONE) { |
506 if (m_frame) { | 507 if (m_frame) { |
507 DCHECK(m_frame->page()); | 508 DCHECK(m_frame->page()); |
508 provideContextFeaturesToDocumentFrom(*this, *m_frame->page()); | 509 provideContextFeaturesToDocumentFrom(*this, *m_frame->page()); |
509 | 510 |
510 m_fetcher = m_frame->loader().documentLoader()->fetcher(); | 511 m_fetcher = m_frame->loader().documentLoader()->fetcher(); |
511 FrameFetchContext::provideDocumentToContext(m_fetcher->context(), this); | 512 FrameFetchContext::provideDocumentToContext(m_fetcher->context(), this); |
512 | 513 |
513 CustomElementRegistry* registry = | 514 CustomElementRegistry* registry = |
514 m_frame->localDOMWindow() | 515 m_frame->localDOMWindow() |
515 ? m_frame->localDOMWindow()->maybeCustomElements() | 516 ? m_frame->localDOMWindow()->maybeCustomElements() |
(...skipping 6030 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6546 } | 6547 } |
6547 | 6548 |
6548 void showLiveDocumentInstances() { | 6549 void showLiveDocumentInstances() { |
6549 WeakDocumentSet& set = liveDocumentSet(); | 6550 WeakDocumentSet& set = liveDocumentSet(); |
6550 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6551 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6551 for (Document* document : set) | 6552 for (Document* document : set) |
6552 fprintf(stderr, "- Document %p URL: %s\n", document, | 6553 fprintf(stderr, "- Document %p URL: %s\n", document, |
6553 document->url().getString().utf8().data()); | 6554 document->url().getString().utf8().data()); |
6554 } | 6555 } |
6555 #endif | 6556 #endif |
OLD | NEW |