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

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

Issue 2403563002: DevTools: fix sourceMapURL for inline stylesheets (Closed)
Patch Set: Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/inspector/elements/styles-4/inline-style-sourcemap-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /** 5 /**
6 * @constructor 6 * @constructor
7 * @implements {WebInspector.ContentProvider} 7 * @implements {WebInspector.ContentProvider}
8 * @param {!WebInspector.CSSModel} cssModel 8 * @param {!WebInspector.CSSModel} cssModel
9 * @param {!CSSAgent.CSSStyleSheetHeader} payload 9 * @param {!CSSAgent.CSSStyleSheetHeader} payload
10 */ 10 */
(...skipping 26 matching lines...) Expand all
37 this._originalContentProvider = new WebInspector.StaticContentProvid er(this.contentURL(), this.contentType(), lazyContent); 37 this._originalContentProvider = new WebInspector.StaticContentProvid er(this.contentURL(), this.contentType(), lazyContent);
38 } 38 }
39 return this._originalContentProvider; 39 return this._originalContentProvider;
40 }, 40 },
41 41
42 /** 42 /**
43 * @param {string=} sourceMapURL 43 * @param {string=} sourceMapURL
44 */ 44 */
45 setSourceMapURL: function(sourceMapURL) 45 setSourceMapURL: function(sourceMapURL)
46 { 46 {
47 var completeSourceMapURL = this.sourceURL && sourceMapURL ? WebInspector .ParsedURL.completeURL(this.sourceURL, sourceMapURL) : null; 47 var completeSourceMapURL = this.sourceURL && sourceMapURL ? WebInspector .ParsedURL.completeURL(this.sourceURL, sourceMapURL) : sourceMapURL;
48 this.sourceMapURL = completeSourceMapURL; 48 this.sourceMapURL = completeSourceMapURL;
49 }, 49 },
50 50
51 /** 51 /**
52 * @return {!WebInspector.Target} 52 * @return {!WebInspector.Target}
53 */ 53 */
54 target: function() 54 target: function()
55 { 55 {
56 return this._cssModel.target(); 56 return this._cssModel.target();
57 }, 57 },
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 */ 213 */
214 function performSearch(content) 214 function performSearch(content)
215 { 215 {
216 var searchResults = content ? WebInspector.ContentProvider.performSe archInContent(content, query, caseSensitive, isRegex) : []; 216 var searchResults = content ? WebInspector.ContentProvider.performSe archInContent(content, query, caseSensitive, isRegex) : [];
217 callback(searchResults); 217 callback(searchResults);
218 } 218 }
219 219
220 this.requestContent().then(performSearch); 220 this.requestContent().then(performSearch);
221 } 221 }
222 } 222 }
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/inspector/elements/styles-4/inline-style-sourcemap-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698