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

Unified Diff: third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineModel.js

Issue 2218603003: Timeline: show white overlay till page being reloaded paints (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 4 years, 4 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/devtools/front_end/timeline_model/TimelineModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineModel.js b/third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineModel.js
index 0c1fece45d0aa5e9223139f07af38ff4c34628df..a516f4c85778bee0e6931840772352c2371b640a 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineModel.js
@@ -1653,10 +1653,9 @@ WebInspector.InvalidationTracker.prototype = {
var layerId = paintEvent.args["data"]["layerId"];
if (layerId)
this._lastPaintWithLayer = paintEvent;
- if (!this._lastPaintWithLayer) {
- console.error("Failed to find a paint container for a paint event.");
+ // No outer layer -- this may be overlay being painted. Disregard it quietly.
+ if (!this._lastPaintWithLayer)
return;
- }
var effectivePaintId = this._lastPaintWithLayer.args["data"]["nodeId"];
var paintFrameId = paintEvent.args["data"]["frame"];

Powered by Google App Engine
This is Rietveld 408576698