| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
| 3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
| 4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
| 5 * 2000 Simon Hausmann <hausmann@kde.org> | 5 * 2000 Simon Hausmann <hausmann@kde.org> |
| 6 * 2000 Stefan Schimanski <1Stein@gmx.de> | 6 * 2000 Stefan Schimanski <1Stein@gmx.de> |
| 7 * 2001 George Staikos <staikos@kde.org> | 7 * 2001 George Staikos <staikos@kde.org> |
| 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All | 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
| 9 * rights reserved. | 9 * rights reserved. |
| 10 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> | 10 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 #include "core/frame/VisualViewport.h" | 54 #include "core/frame/VisualViewport.h" |
| 55 #include "core/html/HTMLFrameElementBase.h" | 55 #include "core/html/HTMLFrameElementBase.h" |
| 56 #include "core/html/HTMLPlugInElement.h" | 56 #include "core/html/HTMLPlugInElement.h" |
| 57 #include "core/input/EventHandler.h" | 57 #include "core/input/EventHandler.h" |
| 58 #include "core/inspector/ConsoleMessage.h" | 58 #include "core/inspector/ConsoleMessage.h" |
| 59 #include "core/layout/HitTestResult.h" | 59 #include "core/layout/HitTestResult.h" |
| 60 #include "core/layout/LayoutView.h" | 60 #include "core/layout/LayoutView.h" |
| 61 #include "core/layout/api/LayoutPartItem.h" | 61 #include "core/layout/api/LayoutPartItem.h" |
| 62 #include "core/layout/api/LayoutViewItem.h" | 62 #include "core/layout/api/LayoutViewItem.h" |
| 63 #include "core/layout/compositing/PaintLayerCompositor.h" | 63 #include "core/layout/compositing/PaintLayerCompositor.h" |
| 64 #include "core/loader/DocumentLoader.h" |
| 64 #include "core/loader/FrameLoadRequest.h" | 65 #include "core/loader/FrameLoadRequest.h" |
| 65 #include "core/loader/NavigationScheduler.h" | 66 #include "core/loader/NavigationScheduler.h" |
| 66 #include "core/page/ChromeClient.h" | 67 #include "core/page/ChromeClient.h" |
| 67 #include "core/page/FocusController.h" | 68 #include "core/page/FocusController.h" |
| 68 #include "core/page/Page.h" | 69 #include "core/page/Page.h" |
| 69 #include "core/page/scrolling/ScrollingCoordinator.h" | 70 #include "core/page/scrolling/ScrollingCoordinator.h" |
| 70 #include "core/paint/ObjectPainter.h" | 71 #include "core/paint/ObjectPainter.h" |
| 71 #include "core/paint/PaintInfo.h" | 72 #include "core/paint/PaintInfo.h" |
| 72 #include "core/paint/PaintLayer.h" | 73 #include "core/paint/PaintLayer.h" |
| 73 #include "core/paint/PaintLayerPainter.h" | 74 #include "core/paint/PaintLayerPainter.h" |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 } | 356 } |
| 356 | 357 |
| 357 void LocalFrame::navigate(const FrameLoadRequest& request) { | 358 void LocalFrame::navigate(const FrameLoadRequest& request) { |
| 358 m_loader.load(request); | 359 m_loader.load(request); |
| 359 } | 360 } |
| 360 | 361 |
| 361 void LocalFrame::reload(FrameLoadType loadType, | 362 void LocalFrame::reload(FrameLoadType loadType, |
| 362 ClientRedirectPolicy clientRedirectPolicy) { | 363 ClientRedirectPolicy clientRedirectPolicy) { |
| 363 DCHECK(isReloadLoadType(loadType)); | 364 DCHECK(isReloadLoadType(loadType)); |
| 364 if (clientRedirectPolicy == ClientRedirectPolicy::NotClientRedirect) { | 365 if (clientRedirectPolicy == ClientRedirectPolicy::NotClientRedirect) { |
| 365 if (!m_loader.currentItem()) | 366 if (!m_loader.documentLoader()->historyItem()) |
| 366 return; | 367 return; |
| 367 FrameLoadRequest request = | 368 FrameLoadRequest request = |
| 368 FrameLoadRequest(nullptr, m_loader.resourceRequestForReload( | 369 FrameLoadRequest(nullptr, m_loader.resourceRequestForReload( |
| 369 loadType, KURL(), clientRedirectPolicy)); | 370 loadType, KURL(), clientRedirectPolicy)); |
| 370 request.setClientRedirect(clientRedirectPolicy); | 371 request.setClientRedirect(clientRedirectPolicy); |
| 371 m_loader.load(request, loadType); | 372 m_loader.load(request, loadType); |
| 372 } else { | 373 } else { |
| 373 DCHECK_EQ(FrameLoadTypeReload, loadType); | 374 DCHECK_EQ(FrameLoadTypeReload, loadType); |
| 374 m_navigationScheduler->scheduleReload(); | 375 m_navigationScheduler->scheduleReload(); |
| 375 } | 376 } |
| (...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 901 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) | 902 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) |
| 902 m_frame->client()->frameBlameContext()->Enter(); | 903 m_frame->client()->frameBlameContext()->Enter(); |
| 903 } | 904 } |
| 904 | 905 |
| 905 ScopedFrameBlamer::~ScopedFrameBlamer() { | 906 ScopedFrameBlamer::~ScopedFrameBlamer() { |
| 906 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) | 907 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) |
| 907 m_frame->client()->frameBlameContext()->Leave(); | 908 m_frame->client()->frameBlameContext()->Leave(); |
| 908 } | 909 } |
| 909 | 910 |
| 910 } // namespace blink | 911 } // namespace blink |
| OLD | NEW |