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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/CSSRule.js

Issue 2545883005: DevTools: support sourceMappingURL for the inline stylesheets (Closed)
Patch Set: address comments Created 4 years 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 /** 4 /**
5 * @unrestricted 5 * @unrestricted
6 */ 6 */
7 SDK.CSSValue = class { 7 SDK.CSSValue = class {
8 /** 8 /**
9 * @param {!Protocol.CSS.Value} payload 9 * @param {!Protocol.CSS.Value} payload
10 */ 10 */
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 isViaInspector() { 83 isViaInspector() {
84 return this.origin === Protocol.CSS.StyleSheetOrigin.Inspector; 84 return this.origin === Protocol.CSS.StyleSheetOrigin.Inspector;
85 } 85 }
86 86
87 /** 87 /**
88 * @return {boolean} 88 * @return {boolean}
89 */ 89 */
90 isRegular() { 90 isRegular() {
91 return this.origin === Protocol.CSS.StyleSheetOrigin.Regular; 91 return this.origin === Protocol.CSS.StyleSheetOrigin.Regular;
92 } 92 }
93
94 /**
95 * @return {!SDK.CSSModel}
96 */
97 cssModel() {
98 return this._cssModel;
99 }
93 }; 100 };
94 101
95 /** 102 /**
96 * @unrestricted 103 * @unrestricted
97 */ 104 */
98 SDK.CSSStyleRule = class extends SDK.CSSRule { 105 SDK.CSSStyleRule = class extends SDK.CSSRule {
99 /** 106 /**
100 * @param {!SDK.CSSModel} cssModel 107 * @param {!SDK.CSSModel} cssModel
101 * @param {!Protocol.CSS.CSSRule} payload 108 * @param {!Protocol.CSS.CSSRule} payload
102 * @param {boolean=} wasUsed 109 * @param {boolean=} wasUsed
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 setKeyText(newKeyText) { 297 setKeyText(newKeyText) {
291 var styleSheetId = this.styleSheetId; 298 var styleSheetId = this.styleSheetId;
292 if (!styleSheetId) 299 if (!styleSheetId)
293 throw 'No rule stylesheet id'; 300 throw 'No rule stylesheet id';
294 var range = this._keyText.range; 301 var range = this._keyText.range;
295 if (!range) 302 if (!range)
296 throw 'Keyframe key is not editable'; 303 throw 'Keyframe key is not editable';
297 return this._cssModel.setKeyframeKey(styleSheetId, range, newKeyText); 304 return this._cssModel.setKeyframeKey(styleSheetId, range, newKeyText);
298 } 305 }
299 }; 306 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698