| 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 983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 994 } | 994 } |
| 995 | 995 |
| 996 void FrameLoader::setFirstPartyForCookies(const KURL& url) | 996 void FrameLoader::setFirstPartyForCookies(const KURL& url) |
| 997 { | 997 { |
| 998 for (Frame* frame = m_frame; frame; frame = frame->tree()->traverseNext(m_fr
ame)) | 998 for (Frame* frame = m_frame; frame; frame = frame->tree()->traverseNext(m_fr
ame)) |
| 999 frame->document()->setFirstPartyForCookies(url); | 999 frame->document()->setFirstPartyForCookies(url); |
| 1000 } | 1000 } |
| 1001 | 1001 |
| 1002 // This does the same kind of work that didOpenURL does, except it relies on the
fact | 1002 // This does the same kind of work that didOpenURL does, except it relies on the
fact |
| 1003 // that a higher level already checked that the URLs match and the scrolling is
the right thing to do. | 1003 // that a higher level already checked that the URLs match and the scrolling is
the right thing to do. |
| 1004 void FrameLoader::loadInSameDocument(const KURL& url, SerializedScriptValue* sta
teObject, bool isNewNavigation) | 1004 void FrameLoader::loadInSameDocument(const KURL& url, PassRefPtr<SerializedScrip
tValue> stateObject, bool isNewNavigation) |
| 1005 { | 1005 { |
| 1006 // If we have a state object, we cannot also be a new navigation. | 1006 // If we have a state object, we cannot also be a new navigation. |
| 1007 ASSERT(!stateObject || (stateObject && !isNewNavigation)); | 1007 ASSERT(!stateObject || (stateObject && !isNewNavigation)); |
| 1008 | 1008 |
| 1009 // Update the data source's request with the new URL to fake the URL change | 1009 // Update the data source's request with the new URL to fake the URL change |
| 1010 KURL oldURL = m_frame->document()->url(); | 1010 KURL oldURL = m_frame->document()->url(); |
| 1011 m_frame->document()->setURL(url); | 1011 m_frame->document()->setURL(url); |
| 1012 setOutgoingReferrer(url); | 1012 setOutgoingReferrer(url); |
| 1013 documentLoader()->replaceRequestURLForSameDocumentNavigation(url); | 1013 documentLoader()->replaceRequestURLForSameDocumentNavigation(url); |
| 1014 if (isNewNavigation && !shouldTreatURLAsSameAsCurrent(url) && !stateObject)
{ | 1014 if (isNewNavigation && !shouldTreatURLAsSameAsCurrent(url) && !stateObject)
{ |
| (...skipping 2334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3349 FloatRect newWindowRect = DOMWindow::adjustWindowRect(page, windowRect); | 3349 FloatRect newWindowRect = DOMWindow::adjustWindowRect(page, windowRect); |
| 3350 | 3350 |
| 3351 page->chrome()->setWindowRect(newWindowRect); | 3351 page->chrome()->setWindowRect(newWindowRect); |
| 3352 page->chrome()->show(); | 3352 page->chrome()->show(); |
| 3353 | 3353 |
| 3354 created = true; | 3354 created = true; |
| 3355 return frame; | 3355 return frame; |
| 3356 } | 3356 } |
| 3357 | 3357 |
| 3358 } // namespace WebCore | 3358 } // namespace WebCore |
| OLD | NEW |