| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights |
| 3 * reserved. | 3 * reserved. |
| 4 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 4 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 5 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 5 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| 6 * (http://www.torchmobile.com/) | 6 * (http://www.torchmobile.com/) |
| 7 * Copyright (C) 2008 Alp Toker <alp@atoker.com> | 7 * Copyright (C) 2008 Alp Toker <alp@atoker.com> |
| 8 * Copyright (C) Research In Motion Limited 2009. All rights reserved. | 8 * Copyright (C) Research In Motion Limited 2009. All rights reserved. |
| 9 * Copyright (C) 2011 Kris Jordan <krisjordan@gmail.com> | 9 * Copyright (C) 2011 Kris Jordan <krisjordan@gmail.com> |
| 10 * Copyright (C) 2011 Google Inc. All rights reserved. | 10 * Copyright (C) 2011 Google Inc. All rights reserved. |
| (...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 668 return true; | 668 return true; |
| 669 } | 669 } |
| 670 | 670 |
| 671 static bool shouldComplete(Document* document) { | 671 static bool shouldComplete(Document* document) { |
| 672 if (!document->frame()) | 672 if (!document->frame()) |
| 673 return false; | 673 return false; |
| 674 if (document->parsing() || document->isInDOMContentLoaded()) | 674 if (document->parsing() || document->isInDOMContentLoaded()) |
| 675 return false; | 675 return false; |
| 676 if (!document->haveImportsLoaded()) | 676 if (!document->haveImportsLoaded()) |
| 677 return false; | 677 return false; |
| 678 if (document->fetcher()->requestCount()) | 678 if (document->fetcher()->blockingRequestCount()) |
| 679 return false; | 679 return false; |
| 680 if (document->isDelayingLoadEvent()) | 680 if (document->isDelayingLoadEvent()) |
| 681 return false; | 681 return false; |
| 682 return allDescendantsAreComplete(document->frame()); | 682 return allDescendantsAreComplete(document->frame()); |
| 683 } | 683 } |
| 684 | 684 |
| 685 static bool shouldSendFinishNotification(LocalFrame* frame) { | 685 static bool shouldSendFinishNotification(LocalFrame* frame) { |
| 686 // Don't send didFinishLoad more than once per DocumentLoader. | 686 // Don't send didFinishLoad more than once per DocumentLoader. |
| 687 if (frame->loader().documentLoader()->sentDidFinishLoad()) | 687 if (frame->loader().documentLoader()->sentDidFinishLoad()) |
| 688 return false; | 688 return false; |
| (...skipping 1343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2032 m_isNavigationHandledByClient = true; | 2032 m_isNavigationHandledByClient = true; |
| 2033 InspectorInstrumentation::frameScheduledClientNavigation(m_frame); | 2033 InspectorInstrumentation::frameScheduledClientNavigation(m_frame); |
| 2034 } | 2034 } |
| 2035 | 2035 |
| 2036 void FrameLoader::clearNavigationHandledByClient() { | 2036 void FrameLoader::clearNavigationHandledByClient() { |
| 2037 m_isNavigationHandledByClient = false; | 2037 m_isNavigationHandledByClient = false; |
| 2038 InspectorInstrumentation::frameClearedScheduledClientNavigation(m_frame); | 2038 InspectorInstrumentation::frameClearedScheduledClientNavigation(m_frame); |
| 2039 } | 2039 } |
| 2040 | 2040 |
| 2041 } // namespace blink | 2041 } // namespace blink |
| OLD | NEW |