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

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

Issue 2835933003: Notify PasswordAutofillAgent about dynamic forms after the document was parsed. (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
« 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 6323 matching lines...) Expand 10 before | Expand all | Expand 10 after
6334 } else { 6334 } else {
6335 template_document_ = Document::Create(DocumentInit(BlankURL())); 6335 template_document_ = Document::Create(DocumentInit(BlankURL()));
6336 } 6336 }
6337 6337
6338 template_document_->template_document_host_ = this; // balanced in dtor. 6338 template_document_->template_document_host_ = this; // balanced in dtor.
6339 6339
6340 return *template_document_.Get(); 6340 return *template_document_.Get();
6341 } 6341 }
6342 6342
6343 void Document::DidAssociateFormControl(Element* element) { 6343 void Document::DidAssociateFormControl(Element* element) {
6344 if (!GetFrame() || !GetFrame()->GetPage() || !LoadEventFinished()) 6344 if (!GetFrame() || !GetFrame()->GetPage() || !HasFinishedParsing())
6345 return; 6345 return;
6346 6346
6347 // We add a slight delay because this could be called rapidly. 6347 // We add a slight delay because this could be called rapidly.
6348 if (!did_associate_form_controls_timer_.IsActive()) 6348 if (!did_associate_form_controls_timer_.IsActive())
6349 did_associate_form_controls_timer_.StartOneShot(0.3, BLINK_FROM_HERE); 6349 did_associate_form_controls_timer_.StartOneShot(0.3, BLINK_FROM_HERE);
6350 } 6350 }
6351 6351
6352 void Document::DidAssociateFormControlsTimerFired(TimerBase* timer) { 6352 void Document::DidAssociateFormControlsTimerFired(TimerBase* timer) {
6353 DCHECK_EQ(timer, &did_associate_form_controls_timer_); 6353 DCHECK_EQ(timer, &did_associate_form_controls_timer_);
6354 if (!GetFrame() || !GetFrame()->GetPage()) 6354 if (!GetFrame() || !GetFrame()->GetPage())
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
6645 } 6645 }
6646 6646
6647 void showLiveDocumentInstances() { 6647 void showLiveDocumentInstances() {
6648 WeakDocumentSet& set = liveDocumentSet(); 6648 WeakDocumentSet& set = liveDocumentSet();
6649 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 6649 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
6650 for (blink::Document* document : set) 6650 for (blink::Document* document : set)
6651 fprintf(stderr, "- Document %p URL: %s\n", document, 6651 fprintf(stderr, "- Document %p URL: %s\n", document,
6652 document->Url().GetString().Utf8().Data()); 6652 document->Url().GetString().Utf8().Data());
6653 } 6653 }
6654 #endif 6654 #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