Chromium Code Reviews| 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 r ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved. |
| 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) |
| 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
| 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
| (...skipping 2412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2423 | 2423 |
| 2424 DocumentParser* Document::implicitOpen(ParserSynchronizationPolicy parserSyncPol icy) | 2424 DocumentParser* Document::implicitOpen(ParserSynchronizationPolicy parserSyncPol icy) |
| 2425 { | 2425 { |
| 2426 detachParser(); | 2426 detachParser(); |
| 2427 | 2427 |
| 2428 removeChildren(); | 2428 removeChildren(); |
| 2429 DCHECK(!m_focusedElement); | 2429 DCHECK(!m_focusedElement); |
| 2430 | 2430 |
| 2431 setCompatibilityMode(NoQuirksMode); | 2431 setCompatibilityMode(NoQuirksMode); |
| 2432 | 2432 |
| 2433 if (!threadedParsingEnabledForTesting()) | 2433 if (!threadedParsingEnabledForTesting()) { |
| 2434 parserSyncPolicy = ForceSynchronousParsing; | 2434 parserSyncPolicy = ForceSynchronousParsing; |
| 2435 } else if (parserSyncPolicy == AllowAsynchronousParsing && isPrefetchOnly()) { | |
|
droger
2016/08/16 10:01:54
This probably belongs to another CL.
mattcary
2016/08/17 20:27:32
Yes, I think this leaked over from your CL. Remove
| |
| 2436 // Prefetch must be synchronous. | |
| 2437 parserSyncPolicy = ForceSynchronousParsing; | |
| 2438 } | |
| 2435 | 2439 |
| 2436 m_parserSyncPolicy = parserSyncPolicy; | 2440 m_parserSyncPolicy = parserSyncPolicy; |
| 2437 m_parser = createParser(); | 2441 m_parser = createParser(); |
| 2438 DocumentParserTiming::from(*this).markParserStart(); | 2442 DocumentParserTiming::from(*this).markParserStart(); |
| 2439 setParsingState(Parsing); | 2443 setParsingState(Parsing); |
| 2440 setReadyState(Loading); | 2444 setReadyState(Loading); |
| 2441 | 2445 |
| 2442 return m_parser; | 2446 return m_parser; |
| 2443 } | 2447 } |
| 2444 | 2448 |
| (...skipping 3587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6032 } | 6036 } |
| 6033 | 6037 |
| 6034 void showLiveDocumentInstances() | 6038 void showLiveDocumentInstances() |
| 6035 { | 6039 { |
| 6036 WeakDocumentSet& set = liveDocumentSet(); | 6040 WeakDocumentSet& set = liveDocumentSet(); |
| 6037 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6041 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6038 for (Document* document : set) | 6042 for (Document* document : set) |
| 6039 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get String().utf8().data()); | 6043 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get String().utf8().data()); |
| 6040 } | 6044 } |
| 6041 #endif | 6045 #endif |
| OLD | NEW |