OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |