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

Side by Side Diff: Source/core/loader/FrameLoader.cpp

Issue 14054023: Add loadedNonEmptyDocument flag in FrameLoader for Resource Timing (Closed) Base URL: http://chromium.googlesource.com/chromium/blink.git@master
Patch Set: set loadedNonEmptyDocument flag in CachedResourceLoader(Resource Timing related code) Created 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed.
3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
4 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 4 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com>
6 * Copyright (C) Research In Motion Limited 2009. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2009. All rights reserved.
7 * Copyright (C) 2011 Kris Jordan <krisjordan@gmail.com> 7 * Copyright (C) 2011 Kris Jordan <krisjordan@gmail.com>
8 * Copyright (C) 2011 Google Inc. All rights reserved. 8 * Copyright (C) 2011 Google Inc. All rights reserved.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 } 495 }
496 496
497 void FrameLoader::didExplicitOpen() 497 void FrameLoader::didExplicitOpen()
498 { 498 {
499 m_isComplete = false; 499 m_isComplete = false;
500 m_didCallImplicitClose = false; 500 m_didCallImplicitClose = false;
501 501
502 // Calling document.open counts as committing the first real document load. 502 // Calling document.open counts as committing the first real document load.
503 if (!m_stateMachine.committedFirstRealDocumentLoad()) 503 if (!m_stateMachine.committedFirstRealDocumentLoad())
504 m_stateMachine.advanceTo(FrameLoaderStateMachine::DisplayingInitialEmpty DocumentPostCommit); 504 m_stateMachine.advanceTo(FrameLoaderStateMachine::DisplayingInitialEmpty DocumentPostCommit);
505 505
506 // Prevent window.open(url) -- eg window.open("about:blank") -- from blowing away results 506 // Prevent window.open(url) -- eg window.open("about:blank") -- from blowing away results
507 // from a subsequent window.document.open / window.document.write call. 507 // from a subsequent window.document.open / window.document.write call.
508 // Canceling redirection here works for all cases because document.open 508 // Canceling redirection here works for all cases because document.open
509 // implicitly precedes document.write. 509 // implicitly precedes document.write.
510 m_frame->navigationScheduler()->cancel(); 510 m_frame->navigationScheduler()->cancel();
511 } 511 }
512 512
513 513
514 void FrameLoader::cancelAndClear() 514 void FrameLoader::cancelAndClear()
515 { 515 {
(...skipping 2480 matching lines...) Expand 10 before | Expand all | Expand 10 after
2996 FloatRect newWindowRect = DOMWindow::adjustWindowRect(page, windowRect); 2996 FloatRect newWindowRect = DOMWindow::adjustWindowRect(page, windowRect);
2997 2997
2998 page->chrome()->setWindowRect(newWindowRect); 2998 page->chrome()->setWindowRect(newWindowRect);
2999 page->chrome()->show(); 2999 page->chrome()->show();
3000 3000
3001 created = true; 3001 created = true;
3002 return frame; 3002 return frame;
3003 } 3003 }
3004 3004
3005 } // namespace WebCore 3005 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698