| 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 1565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1576 requestContent: function(callback) | 1576 requestContent: function(callback) |
| 1577 { | 1577 { |
| 1578 this._cssModel._agent.getStyleSheetText(this.id, textCallback.bind(this)
); | 1578 this._cssModel._agent.getStyleSheetText(this.id, textCallback.bind(this)
); |
| 1579 | 1579 |
| 1580 /** | 1580 /** |
| 1581 * @this {WebInspector.CSSStyleSheetHeader} | 1581 * @this {WebInspector.CSSStyleSheetHeader} |
| 1582 */ | 1582 */ |
| 1583 function textCallback(error, text) | 1583 function textCallback(error, text) |
| 1584 { | 1584 { |
| 1585 if (error) { | 1585 if (error) { |
| 1586 WebInspector.console.log("Failed to get text for stylesheet " +
this.id + ": " + error); | 1586 WebInspector.messageSink.addErrorMessage("Failed to get text for
stylesheet " + this.id + ": " + error); |
| 1587 text = ""; | 1587 text = ""; |
| 1588 // Fall through. | 1588 // Fall through. |
| 1589 } | 1589 } |
| 1590 text = this._trimSourceURL(text); | 1590 text = this._trimSourceURL(text); |
| 1591 callback(text); | 1591 callback(text); |
| 1592 } | 1592 } |
| 1593 }, | 1593 }, |
| 1594 | 1594 |
| 1595 /** | 1595 /** |
| 1596 * @override | 1596 * @override |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1715 for (var i = 0; i < callbacks.length; ++i) | 1715 for (var i = 0; i < callbacks.length; ++i) |
| 1716 callbacks[i](computedStyle); | 1716 callbacks[i](computedStyle); |
| 1717 } | 1717 } |
| 1718 } | 1718 } |
| 1719 } | 1719 } |
| 1720 | 1720 |
| 1721 /** | 1721 /** |
| 1722 * @type {!WebInspector.CSSStyleModel} | 1722 * @type {!WebInspector.CSSStyleModel} |
| 1723 */ | 1723 */ |
| 1724 WebInspector.cssModel; | 1724 WebInspector.cssModel; |
| OLD | NEW |