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

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

Issue 2832473004: Notify PasswordAutofillAgent about dynamic forms after the document was parsed. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « chrome/test/data/password/between_parsing_and_rendering.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6349 matching lines...) Expand 10 before | Expand all | Expand 10 after
6360 } else { 6360 } else {
6361 template_document_ = Document::Create(DocumentInit(BlankURL())); 6361 template_document_ = Document::Create(DocumentInit(BlankURL()));
6362 } 6362 }
6363 6363
6364 template_document_->template_document_host_ = this; // balanced in dtor. 6364 template_document_->template_document_host_ = this; // balanced in dtor.
6365 6365
6366 return *template_document_.Get(); 6366 return *template_document_.Get();
6367 } 6367 }
6368 6368
6369 void Document::DidAssociateFormControl(Element* element) { 6369 void Document::DidAssociateFormControl(Element* element) {
6370 if (!GetFrame() || !GetFrame()->GetPage() || !LoadEventFinished()) 6370 if (!GetFrame() || !GetFrame()->GetPage() || !HasFinishedParsing())
6371 return; 6371 return;
6372 6372
6373 // We add a slight delay because this could be called rapidly. 6373 // We add a slight delay because this could be called rapidly.
6374 if (!did_associate_form_controls_timer_.IsActive()) 6374 if (!did_associate_form_controls_timer_.IsActive())
6375 did_associate_form_controls_timer_.StartOneShot(0.3, BLINK_FROM_HERE); 6375 did_associate_form_controls_timer_.StartOneShot(0.3, BLINK_FROM_HERE);
6376 } 6376 }
6377 6377
6378 void Document::DidAssociateFormControlsTimerFired(TimerBase* timer) { 6378 void Document::DidAssociateFormControlsTimerFired(TimerBase* timer) {
6379 DCHECK_EQ(timer, &did_associate_form_controls_timer_); 6379 DCHECK_EQ(timer, &did_associate_form_controls_timer_);
6380 if (!GetFrame() || !GetFrame()->GetPage()) 6380 if (!GetFrame() || !GetFrame()->GetPage())
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
6671 } 6671 }
6672 6672
6673 void showLiveDocumentInstances() { 6673 void showLiveDocumentInstances() {
6674 WeakDocumentSet& set = liveDocumentSet(); 6674 WeakDocumentSet& set = liveDocumentSet();
6675 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 6675 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
6676 for (blink::Document* document : set) 6676 for (blink::Document* document : set)
6677 fprintf(stderr, "- Document %p URL: %s\n", document, 6677 fprintf(stderr, "- Document %p URL: %s\n", document,
6678 document->Url().GetString().Utf8().Data()); 6678 document->Url().GetString().Utf8().Data());
6679 } 6679 }
6680 #endif 6680 #endif
OLDNEW
« no previous file with comments | « chrome/test/data/password/between_parsing_and_rendering.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698