| OLD | NEW |
| 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 1690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1701 requestContent: function(callback) | 1701 requestContent: function(callback) |
| 1702 { | 1702 { |
| 1703 this._cssModel._agent.getStyleSheetText(this.id, textCallback.bind(this)
); | 1703 this._cssModel._agent.getStyleSheetText(this.id, textCallback.bind(this)
); |
| 1704 | 1704 |
| 1705 /** | 1705 /** |
| 1706 * @this {WebInspector.CSSStyleSheetHeader} | 1706 * @this {WebInspector.CSSStyleSheetHeader} |
| 1707 */ | 1707 */ |
| 1708 function textCallback(error, text) | 1708 function textCallback(error, text) |
| 1709 { | 1709 { |
| 1710 if (error) { | 1710 if (error) { |
| 1711 WebInspector.console.addErrorMessage("Failed to get text for sty
lesheet " + this.id + ": " + error); | 1711 WebInspector.console.error("Failed to get text for stylesheet "
+ this.id + ": " + error); |
| 1712 text = ""; | 1712 text = ""; |
| 1713 // Fall through. | 1713 // Fall through. |
| 1714 } | 1714 } |
| 1715 text = this._trimSourceURL(text); | 1715 text = this._trimSourceURL(text); |
| 1716 callback(text); | 1716 callback(text); |
| 1717 } | 1717 } |
| 1718 }, | 1718 }, |
| 1719 | 1719 |
| 1720 /** | 1720 /** |
| 1721 * @override | 1721 * @override |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1840 for (var i = 0; i < callbacks.length; ++i) | 1840 for (var i = 0; i < callbacks.length; ++i) |
| 1841 callbacks[i](computedStyle); | 1841 callbacks[i](computedStyle); |
| 1842 } | 1842 } |
| 1843 } | 1843 } |
| 1844 } | 1844 } |
| 1845 | 1845 |
| 1846 /** | 1846 /** |
| 1847 * @type {!WebInspector.CSSStyleModel} | 1847 * @type {!WebInspector.CSSStyleModel} |
| 1848 */ | 1848 */ |
| 1849 WebInspector.cssModel; | 1849 WebInspector.cssModel; |
| OLD | NEW |