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

Unified Diff: third_party/WebKit/Source/devtools/front_end/components_lazy/LineLevelProfile.js

Issue 2613643002: DevTools: migrate from external Maps to symbols in the bindings objects. (Closed)
Patch Set: Created 3 years, 12 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/components_lazy/LineLevelProfile.js
diff --git a/third_party/WebKit/Source/devtools/front_end/components_lazy/LineLevelProfile.js b/third_party/WebKit/Source/devtools/front_end/components_lazy/LineLevelProfile.js
index 1dc2328438d8fea0e611ec581ae144dc6164d1de..b0351bbf14f61d242969d83a1f73fef3aca4e6a5 100644
--- a/third_party/WebKit/Source/devtools/front_end/components_lazy/LineLevelProfile.js
+++ b/third_party/WebKit/Source/devtools/front_end/components_lazy/LineLevelProfile.js
@@ -133,7 +133,7 @@ Components.LineLevelProfile.LineDecorator = class {
var gutterType = 'CodeMirror-gutter-performance';
var decorations = uiSourceCode.decorationsForType(Components.LineLevelProfile.LineDecorator.type);
textEditor.uninstallGutter(gutterType);
- if (!decorations.size)
+ if (!decorations || !decorations.size)
return;
textEditor.installGutter(gutterType, false);
for (var decoration of decorations) {

Powered by Google App Engine
This is Rietveld 408576698