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

Unified Diff: content/renderer/render_view_impl.cc

Issue 670513003: Fixed the reporting of paint times in window.chrome.loadTimes() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index a8698ade35d805fe1461db0395b778e081105b88..4529b499eb3e3f2d2282cad2d3d9a36f4dd06398 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -3328,8 +3328,10 @@ void RenderViewImpl::DidFlushPaint() {
WebFrame* main_frame = webview()->mainFrame();
for (WebFrame* frame = main_frame; frame;
Charlie Reis 2014/10/21 23:40:20 Yikes. The premise behind this whole loop seems b
Pat Meenan 2014/10/22 12:40:03 Done.
frame = frame->traverseNext(false)) {
- if (frame->isWebLocalFrame())
+ if (frame->isWebLocalFrame() && !frame->parent()) {
main_frame = frame;
+ break;
+ }
}
// If we have a provisional frame we are between the start and commit stages
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698