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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/CSSSourceFrame.js

Issue 2440953003: DevTools: use semicolons after each statement. (Closed)
Patch Set: rebaseline Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 29 matching lines...) Expand all
40 this._swatchPopoverHelper = new WebInspector.SwatchPopoverHelper(); 40 this._swatchPopoverHelper = new WebInspector.SwatchPopoverHelper();
41 this._muteSwatchProcessing = false; 41 this._muteSwatchProcessing = false;
42 this.configureAutocomplete({ 42 this.configureAutocomplete({
43 suggestionsCallback: this._cssSuggestions.bind(this), 43 suggestionsCallback: this._cssSuggestions.bind(this),
44 isWordChar: this._isWordChar.bind(this) 44 isWordChar: this._isWordChar.bind(this)
45 }); 45 });
46 this.textEditor.addEventListener(WebInspector.SourcesTextEditor.Events.Scrol lChanged, () => { 46 this.textEditor.addEventListener(WebInspector.SourcesTextEditor.Events.Scrol lChanged, () => {
47 if (this._swatchPopoverHelper.isShowing()) 47 if (this._swatchPopoverHelper.isShowing())
48 this._swatchPopoverHelper.hide(true); 48 this._swatchPopoverHelper.hide(true);
49 }); 49 });
50 } 50 };
51 51
52 /** @type {number} */ 52 /** @type {number} */
53 WebInspector.CSSSourceFrame.maxSwatchProcessingLength = 300; 53 WebInspector.CSSSourceFrame.maxSwatchProcessingLength = 300;
54 /** @type {symbol} */ 54 /** @type {symbol} */
55 WebInspector.CSSSourceFrame.SwatchBookmark = Symbol("swatch"); 55 WebInspector.CSSSourceFrame.SwatchBookmark = Symbol("swatch");
56 56
57 WebInspector.CSSSourceFrame.prototype = { 57 WebInspector.CSSSourceFrame.prototype = {
58 _registerShortcuts: function() 58 _registerShortcuts: function()
59 { 59 {
60 var shortcutKeys = WebInspector.ShortcutsScreen.SourcesPanelShortcuts; 60 var shortcutKeys = WebInspector.ShortcutsScreen.SourcesPanelShortcuts;
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 seenColon = true; 377 seenColon = true;
378 else 378 else
379 return null; 379 return null;
380 } 380 }
381 tokenPosition = token.startColumn - 1; 381 tokenPosition = token.startColumn - 1;
382 } 382 }
383 return null; 383 return null;
384 }, 384 },
385 385
386 __proto__: WebInspector.UISourceCodeFrame.prototype 386 __proto__: WebInspector.UISourceCodeFrame.prototype
387 } 387 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698