Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2847703002: Make ExecutionContext aware about how it can return CoreProbeSink (Closed)
Patch Set: . Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 6648 matching lines...) Expand 10 before | Expand all | Expand 10 after
6659 } 6659 }
6660 6660
6661 void Document::DecrementPasswordCount() { 6661 void Document::DecrementPasswordCount() {
6662 DCHECK_GT(password_count_, 0u); 6662 DCHECK_GT(password_count_, 0u);
6663 --password_count_; 6663 --password_count_;
6664 if (IsSecureContext() || password_count_ > 0) 6664 if (IsSecureContext() || password_count_ > 0)
6665 return; 6665 return;
6666 SendSensitiveInputVisibility(); 6666 SendSensitiveInputVisibility();
6667 } 6667 }
6668 6668
6669 CoreProbeSink* Document::GetProbeSink() {
6670 LocalFrame* frame = GetFrame();
6671 if (!frame && TemplateDocumentHost())
6672 frame = TemplateDocumentHost()->GetFrame();
6673 return probe::ToCoreProbeSink(frame);
6674 }
6675
6669 DEFINE_TRACE(Document) { 6676 DEFINE_TRACE(Document) {
6670 visitor->Trace(imports_controller_); 6677 visitor->Trace(imports_controller_);
6671 visitor->Trace(doc_type_); 6678 visitor->Trace(doc_type_);
6672 visitor->Trace(implementation_); 6679 visitor->Trace(implementation_);
6673 visitor->Trace(autofocus_element_); 6680 visitor->Trace(autofocus_element_);
6674 visitor->Trace(focused_element_); 6681 visitor->Trace(focused_element_);
6675 visitor->Trace(sequential_focus_navigation_starting_point_); 6682 visitor->Trace(sequential_focus_navigation_starting_point_);
6676 visitor->Trace(hover_element_); 6683 visitor->Trace(hover_element_);
6677 visitor->Trace(active_hover_element_); 6684 visitor->Trace(active_hover_element_);
6678 visitor->Trace(document_element_); 6685 visitor->Trace(document_element_);
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
6772 } 6779 }
6773 6780
6774 void showLiveDocumentInstances() { 6781 void showLiveDocumentInstances() {
6775 WeakDocumentSet& set = liveDocumentSet(); 6782 WeakDocumentSet& set = liveDocumentSet();
6776 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 6783 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
6777 for (blink::Document* document : set) 6784 for (blink::Document* document : set)
6778 fprintf(stderr, "- Document %p URL: %s\n", document, 6785 fprintf(stderr, "- Document %p URL: %s\n", document,
6779 document->Url().GetString().Utf8().data()); 6786 document->Url().GetString().Utf8().data());
6780 } 6787 }
6781 #endif 6788 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/dom/ExecutionContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698