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 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1202 case Interactive: | 1202 case Interactive: |
1203 return interactive; | 1203 return interactive; |
1204 case Complete: | 1204 case Complete: |
1205 return complete; | 1205 return complete; |
1206 } | 1206 } |
1207 | 1207 |
1208 NOTREACHED(); | 1208 NOTREACHED(); |
1209 return String(); | 1209 return String(); |
1210 } | 1210 } |
1211 | 1211 |
1212 void Document::setReadyState(ReadyState readyState) { | 1212 void Document::setReadyState(DocumentReadyState readyState) { |
1213 if (readyState == m_readyState) | 1213 if (readyState == m_readyState) |
1214 return; | 1214 return; |
1215 | 1215 |
1216 switch (readyState) { | 1216 switch (readyState) { |
1217 case Loading: | 1217 case Loading: |
1218 if (!m_documentTiming.domLoading()) { | 1218 if (!m_documentTiming.domLoading()) { |
1219 m_documentTiming.markDomLoading(); | 1219 m_documentTiming.markDomLoading(); |
1220 } | 1220 } |
1221 break; | 1221 break; |
1222 case Interactive: | 1222 case Interactive: |
(...skipping 5365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6588 } | 6588 } |
6589 | 6589 |
6590 void showLiveDocumentInstances() { | 6590 void showLiveDocumentInstances() { |
6591 WeakDocumentSet& set = liveDocumentSet(); | 6591 WeakDocumentSet& set = liveDocumentSet(); |
6592 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6592 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6593 for (Document* document : set) | 6593 for (Document* document : set) |
6594 fprintf(stderr, "- Document %p URL: %s\n", document, | 6594 fprintf(stderr, "- Document %p URL: %s\n", document, |
6595 document->url().getString().utf8().data()); | 6595 document->url().getString().utf8().data()); |
6596 } | 6596 } |
6597 #endif | 6597 #endif |
OLD | NEW |