| 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 6349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |