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

Unified Diff: third_party/WebKit/Source/core/loader/ProgressTracker.cpp

Issue 2694013005: Cleanup blink-side PlzNavigate logic (Closed)
Patch Set: Move most of the placeholder handling to startLoad() Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/loader/ProgressTracker.cpp
diff --git a/third_party/WebKit/Source/core/loader/ProgressTracker.cpp b/third_party/WebKit/Source/core/loader/ProgressTracker.cpp
index e54714344ace0ab61b1c7b3841c4c5e9392ad44c..306c0d01acf19f3d54daf7518afa73c2bc858ad5 100644
--- a/third_party/WebKit/Source/core/loader/ProgressTracker.cpp
+++ b/third_party/WebKit/Source/core/loader/ProgressTracker.cpp
@@ -104,12 +104,13 @@ LocalFrameClient* ProgressTracker::localFrameClient() const {
}
void ProgressTracker::progressStarted(FrameLoadType type) {
- if (!m_frame->isLoading())
- localFrameClient()->didStartLoading(NavigationToDifferentDocument);
reset();
m_progressValue = initialProgressValue;
- m_frame->setIsLoading(true);
- InspectorInstrumentation::frameStartedLoading(m_frame, type);
+ if (!m_frame->isLoading()) {
+ localFrameClient()->didStartLoading(NavigationToDifferentDocument);
+ m_frame->setIsLoading(true);
+ InspectorInstrumentation::frameStartedLoading(m_frame, type);
+ }
}
void ProgressTracker::progressCompleted() {

Powered by Google App Engine
This is Rietveld 408576698