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

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

Issue 465563002: Make onload async (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/loader/NavigationScheduler.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 for (Frame* child = m_frame->tree().firstChild(); child; child = child->tree ().nextSibling()) { 424 for (Frame* child = m_frame->tree().firstChild(); child; child = child->tree ().nextSibling()) {
425 if (child->isLocalFrame() && !toLocalFrame(child)->loader().m_isComplete ) 425 if (child->isLocalFrame() && !toLocalFrame(child)->loader().m_isComplete )
426 return false; 426 return false;
427 } 427 }
428 return true; 428 return true;
429 } 429 }
430 430
431 bool FrameLoader::allAncestorsAreComplete() const 431 bool FrameLoader::allAncestorsAreComplete() const
432 { 432 {
433 for (Frame* ancestor = m_frame; ancestor; ancestor = ancestor->tree().parent ()) { 433 for (Frame* ancestor = m_frame; ancestor; ancestor = ancestor->tree().parent ()) {
434 if (ancestor->isLocalFrame() && !toLocalFrame(ancestor)->document()->loa dEventFinished()) 434 if (ancestor->isLocalFrame() && toLocalFrame(ancestor)->document()->load EventStillNeeded())
435 return false; 435 return false;
436 } 436 }
437 return true; 437 return true;
438 } 438 }
439 439
440 void FrameLoader::checkCompleted() 440 void FrameLoader::checkCompleted()
441 { 441 {
442 RefPtr<LocalFrame> protect(m_frame); 442 RefPtr<LocalFrame> protect(m_frame);
443 m_shouldCallCheckCompleted = false; 443 m_shouldCallCheckCompleted = false;
444 444
(...skipping 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after
1495 // FIXME: We need a way to propagate sandbox flags to out-of-process frames. 1495 // FIXME: We need a way to propagate sandbox flags to out-of-process frames.
1496 Frame* parentFrame = m_frame->tree().parent(); 1496 Frame* parentFrame = m_frame->tree().parent();
1497 if (parentFrame && parentFrame->isLocalFrame()) 1497 if (parentFrame && parentFrame->isLocalFrame())
1498 flags |= toLocalFrame(parentFrame)->document()->sandboxFlags(); 1498 flags |= toLocalFrame(parentFrame)->document()->sandboxFlags();
1499 if (FrameOwner* frameOwner = m_frame->owner()) 1499 if (FrameOwner* frameOwner = m_frame->owner())
1500 flags |= frameOwner->sandboxFlags(); 1500 flags |= frameOwner->sandboxFlags();
1501 return flags; 1501 return flags;
1502 } 1502 }
1503 1503
1504 } // namespace blink 1504 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/loader/NavigationScheduler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698