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

Unified Diff: third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp

Issue 1596573002: Remove extra calls of didMeaningfulLayout() during the same navigation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
index a954edf5bf42f080c9da7b9dc9fccdc2685f55f1..6e1a365e41fc1d0953c3ec7860b060bce29420c5 100644
--- a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
+++ b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
@@ -481,7 +481,9 @@ void FrameLoaderClientImpl::dispatchDidChangeIcons(IconType type)
void FrameLoaderClientImpl::dispatchDidCommitLoad(HistoryItem* item, HistoryCommitType commitType)
{
- m_webFrame->viewImpl()->didCommitLoad(commitType == StandardCommit, false);
+ if (!m_webFrame->parent()) {
+ m_webFrame->viewImpl()->didCommitLoad(commitType == StandardCommit, false);
+ }
// Save some histogram data so we can compute the average memory used per
// page load of the glyphs.

Powered by Google App Engine
This is Rietveld 408576698