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

Side by Side Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2628153002: PlzNavigate: Fix anchor-no-multiple-windows.html layout test. (Closed)
Patch Set: Update the shouldSendCompleteNotification() function to use the hasProvisionalNavigation() function Created 3 years, 11 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
« no previous file with comments | « third_party/WebKit/Source/core/loader/FrameLoader.cpp ('k') | no next file » | 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 2011 matching lines...) Expand 10 before | Expand all | Expand 10 after
2022 2022
2023 FrameLoader& frameloader = frame()->loader(); 2023 FrameLoader& frameloader = frame()->loader();
2024 frameloader.loadFailed(frameloader.documentLoader(), error); 2024 frameloader.loadFailed(frameloader.documentLoader(), error);
2025 return true; 2025 return true;
2026 } 2026 }
2027 2027
2028 bool WebLocalFrameImpl::isLoading() const { 2028 bool WebLocalFrameImpl::isLoading() const {
2029 if (!frame() || !frame()->document()) 2029 if (!frame() || !frame()->document())
2030 return false; 2030 return false;
2031 return frame()->loader().stateMachine()->isDisplayingInitialEmptyDocument() || 2031 return frame()->loader().stateMachine()->isDisplayingInitialEmptyDocument() ||
2032 frame()->loader().provisionalDocumentLoader() || 2032 frame()->loader().hasProvisionalNavigation() ||
2033 !frame()->document()->loadEventFinished(); 2033 !frame()->document()->loadEventFinished();
2034 } 2034 }
2035 2035
2036 bool WebLocalFrameImpl::isNavigationScheduledWithin( 2036 bool WebLocalFrameImpl::isNavigationScheduledWithin(
2037 double intervalInSeconds) const { 2037 double intervalInSeconds) const {
2038 return frame() && 2038 return frame() &&
2039 frame()->navigationScheduler().isNavigationScheduledWithin( 2039 frame()->navigationScheduler().isNavigationScheduledWithin(
2040 intervalInSeconds); 2040 intervalInSeconds);
2041 } 2041 }
2042 2042
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
2359 ->frameScheduler() 2359 ->frameScheduler()
2360 ->unthrottledTaskRunner() 2360 ->unthrottledTaskRunner()
2361 ->toSingleThreadTaskRunner(); 2361 ->toSingleThreadTaskRunner();
2362 } 2362 }
2363 2363
2364 WebInputMethodControllerImpl* WebLocalFrameImpl::inputMethodController() const { 2364 WebInputMethodControllerImpl* WebLocalFrameImpl::inputMethodController() const {
2365 return m_inputMethodController.get(); 2365 return m_inputMethodController.get();
2366 } 2366 }
2367 2367
2368 } // namespace blink 2368 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/FrameLoader.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698