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