Chromium Code Reviews| 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 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 634 document_timing_(*this), | 634 document_timing_(*this), |
| 635 write_recursion_is_too_deep_(false), | 635 write_recursion_is_too_deep_(false), |
| 636 write_recursion_depth_(0), | 636 write_recursion_depth_(0), |
| 637 registration_context_(initializer.RegistrationContext(this)), | 637 registration_context_(initializer.RegistrationContext(this)), |
| 638 element_data_cache_clear_timer_( | 638 element_data_cache_clear_timer_( |
| 639 TaskRunnerHelper::Get(TaskType::kUnspecedTimer, this), | 639 TaskRunnerHelper::Get(TaskType::kUnspecedTimer, this), |
| 640 this, | 640 this, |
| 641 &Document::ElementDataCacheClearTimerFired), | 641 &Document::ElementDataCacheClearTimerFired), |
| 642 timeline_(DocumentTimeline::Create(this)), | 642 timeline_(DocumentTimeline::Create(this)), |
| 643 pending_animations_(new PendingAnimations(*this)), | 643 pending_animations_(new PendingAnimations(*this)), |
| 644 worklet_animation_controller_(new WorkletAnimationController), | |
|
haraken
2017/09/08 01:11:23
Don't you need to take some action when Document i
smcgruer
2017/09/11 18:19:00
At the moment, I'm unsure. This was based on Pendi
| |
| 644 template_document_host_(nullptr), | 645 template_document_host_(nullptr), |
| 645 did_associate_form_controls_timer_( | 646 did_associate_form_controls_timer_( |
| 646 TaskRunnerHelper::Get(TaskType::kUnspecedLoading, this), | 647 TaskRunnerHelper::Get(TaskType::kUnspecedLoading, this), |
| 647 this, | 648 this, |
| 648 &Document::DidAssociateFormControlsTimerFired), | 649 &Document::DidAssociateFormControlsTimerFired), |
| 649 timers_(TaskRunnerHelper::Get(TaskType::kTimer, this)), | 650 timers_(TaskRunnerHelper::Get(TaskType::kTimer, this)), |
| 650 has_viewport_units_(false), | 651 has_viewport_units_(false), |
| 651 parser_sync_policy_(kAllowAsynchronousParsing), | 652 parser_sync_policy_(kAllowAsynchronousParsing), |
| 652 node_count_(0), | 653 node_count_(0), |
| 653 would_load_reason_(WouldLoadReason::kInvalid), | 654 would_load_reason_(WouldLoadReason::kInvalid), |
| (...skipping 6346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 7000 visitor->Trace(custom_element_microtask_run_queue_); | 7001 visitor->Trace(custom_element_microtask_run_queue_); |
| 7001 visitor->Trace(element_data_cache_); | 7002 visitor->Trace(element_data_cache_); |
| 7002 visitor->Trace(use_elements_needing_update_); | 7003 visitor->Trace(use_elements_needing_update_); |
| 7003 visitor->Trace(timers_); | 7004 visitor->Trace(timers_); |
| 7004 visitor->Trace(template_document_); | 7005 visitor->Trace(template_document_); |
| 7005 visitor->Trace(template_document_host_); | 7006 visitor->Trace(template_document_host_); |
| 7006 visitor->Trace(user_action_elements_); | 7007 visitor->Trace(user_action_elements_); |
| 7007 visitor->Trace(svg_extensions_); | 7008 visitor->Trace(svg_extensions_); |
| 7008 visitor->Trace(timeline_); | 7009 visitor->Trace(timeline_); |
| 7009 visitor->Trace(pending_animations_); | 7010 visitor->Trace(pending_animations_); |
| 7011 visitor->Trace(worklet_animation_controller_); | |
| 7010 visitor->Trace(context_document_); | 7012 visitor->Trace(context_document_); |
| 7011 visitor->Trace(canvas_font_cache_); | 7013 visitor->Trace(canvas_font_cache_); |
| 7012 visitor->Trace(intersection_observer_controller_); | 7014 visitor->Trace(intersection_observer_controller_); |
| 7013 visitor->Trace(snap_coordinator_); | 7015 visitor->Trace(snap_coordinator_); |
| 7014 visitor->Trace(resize_observer_controller_); | 7016 visitor->Trace(resize_observer_controller_); |
| 7015 visitor->Trace(property_registry_); | 7017 visitor->Trace(property_registry_); |
| 7016 visitor->Trace(network_state_observer_); | 7018 visitor->Trace(network_state_observer_); |
| 7017 Supplementable<Document>::Trace(visitor); | 7019 Supplementable<Document>::Trace(visitor); |
| 7018 TreeScope::Trace(visitor); | 7020 TreeScope::Trace(visitor); |
| 7019 ContainerNode::Trace(visitor); | 7021 ContainerNode::Trace(visitor); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 7068 } | 7070 } |
| 7069 | 7071 |
| 7070 void showLiveDocumentInstances() { | 7072 void showLiveDocumentInstances() { |
| 7071 WeakDocumentSet& set = liveDocumentSet(); | 7073 WeakDocumentSet& set = liveDocumentSet(); |
| 7072 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 7074 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 7073 for (blink::Document* document : set) | 7075 for (blink::Document* document : set) |
| 7074 fprintf(stderr, "- Document %p URL: %s\n", document, | 7076 fprintf(stderr, "- Document %p URL: %s\n", document, |
| 7075 document->Url().GetString().Utf8().data()); | 7077 document->Url().GetString().Utf8().data()); |
| 7076 } | 7078 } |
| 7077 #endif | 7079 #endif |
| OLD | NEW |