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

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: Removed parent check and added TODO 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..91ef6498964d1567f5b9e8aab36496eab6b12b42 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -3328,8 +3328,13 @@ void RenderViewImpl::DidFlushPaint() {
WebFrame* main_frame = webview()->mainFrame();
for (WebFrame* frame = main_frame; frame;
frame = frame->traverseNext(false)) {
- if (frame->isWebLocalFrame())
+ // TODO(nasko): This is a hack for the case in which the top-level
+ // frame is being rendered in another process. It will not
+ // behave correctly for out of process iframes.
+ if (frame->isWebLocalFrame()) {
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