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

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

Issue 1470323003: [DevTools] Removed support deprecated (//@|/*@) source(URL|MappingURL)= (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 1837 matching lines...) Expand 10 before | Expand all | Expand 10 after
1848 { 1848 {
1849 return WebInspector.resourceTypes.Stylesheet; 1849 return WebInspector.resourceTypes.Stylesheet;
1850 }, 1850 },
1851 1851
1852 /** 1852 /**
1853 * @param {string} text 1853 * @param {string} text
1854 * @return {string} 1854 * @return {string}
1855 */ 1855 */
1856 _trimSourceURL: function(text) 1856 _trimSourceURL: function(text)
1857 { 1857 {
1858 var sourceURLRegex = /\n[\040\t]*\/\*[#@][\040\t]sourceURL=[\040\t]*([^\ s]*)[\040\t]*\*\/[\040\t]*$/mg; 1858 var sourceURLRegex = /\n[\040\t]*\/\*#[\040\t]sourceURL=[\040\t]*([^\s]* )[\040\t]*\*\/[\040\t]*$/mg;
1859 return text.replace(sourceURLRegex, ""); 1859 return text.replace(sourceURLRegex, "");
1860 }, 1860 },
1861 1861
1862 /** 1862 /**
1863 * @override 1863 * @override
1864 * @param {function(string)} userCallback 1864 * @param {function(string)} userCallback
1865 */ 1865 */
1866 requestContent: function(userCallback) 1866 requestContent: function(userCallback)
1867 { 1867 {
1868 this._cssModel._agent.getStyleSheetText(this.id, textCallback.bind(this) ) 1868 this._cssModel._agent.getStyleSheetText(this.id, textCallback.bind(this) )
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
2375 * @constructor 2375 * @constructor
2376 * @param {?WebInspector.CSSStyleDeclaration} inlineStyle 2376 * @param {?WebInspector.CSSStyleDeclaration} inlineStyle
2377 * @param {?WebInspector.CSSStyleDeclaration} attributesStyle 2377 * @param {?WebInspector.CSSStyleDeclaration} attributesStyle
2378 */ 2378 */
2379 WebInspector.CSSStyleModel.InlineStyleResult = function(inlineStyle, attributesS tyle) 2379 WebInspector.CSSStyleModel.InlineStyleResult = function(inlineStyle, attributesS tyle)
2380 { 2380 {
2381 this.inlineStyle = inlineStyle; 2381 this.inlineStyle = inlineStyle;
2382 this.attributesStyle = attributesStyle; 2382 this.attributesStyle = attributesStyle;
2383 } 2383 }
2384 2384
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698