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

Unified Diff: third_party/WebKit/Source/devtools/front_end/bindings/PresentationConsoleMessageHelper.js

Issue 1688283002: [DevTools] Blackboxing in LiveLocations is supported in Linkifier (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add-source-map-support-v3
Patch Set: Created 4 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/devtools/front_end/bindings/PresentationConsoleMessageHelper.js
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/PresentationConsoleMessageHelper.js b/third_party/WebKit/Source/devtools/front_end/bindings/PresentationConsoleMessageHelper.js
index 0f66b56b2209243d9d9862a35c5dd1b6df198982..7d54c7041d51c09350d820fed38871ada4367289 100644
--- a/third_party/WebKit/Source/devtools/front_end/bindings/PresentationConsoleMessageHelper.js
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/PresentationConsoleMessageHelper.js
@@ -173,12 +173,15 @@ WebInspector.PresentationConsoleMessage = function(message, rawLocation)
WebInspector.PresentationConsoleMessage.prototype = {
/**
- * @param {!WebInspector.UILocation} uiLocation
+ * @param {!WebInspector.LiveLocation} liveLocation
*/
- _updateLocation: function(uiLocation)
+ _updateLocation: function(liveLocation)
{
if (this._uiMessage)
this._uiMessage.remove();
+ var uiLocation = liveLocation.uiLocation();
+ if (!uiLocation)
+ return;
this._uiMessage = uiLocation.uiSourceCode.addLineMessage(this._level, this._text, uiLocation.lineNumber, uiLocation.columnNumber);
},

Powered by Google App Engine
This is Rietveld 408576698