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 1188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1199 /** | 1199 /** |
1200 * @constructor | 1200 * @constructor |
1201 * @param {CSSAgent.CSSMedia} payload | 1201 * @param {CSSAgent.CSSMedia} payload |
1202 * @param {!NetworkAgent.FrameId} frameId | 1202 * @param {!NetworkAgent.FrameId} frameId |
1203 */ | 1203 */ |
1204 WebInspector.CSSMedia = function(payload, frameId) | 1204 WebInspector.CSSMedia = function(payload, frameId) |
1205 { | 1205 { |
1206 this.text = payload.text; | 1206 this.text = payload.text; |
1207 this.source = payload.source; | 1207 this.source = payload.source; |
1208 this.sourceURL = payload.sourceURL || ""; | 1208 this.sourceURL = payload.sourceURL || ""; |
1209 this.sourceLine = typeof payload.sourceLine === "undefined" || this.source =
== "linkedSheet" ? -1 : payload.sourceLine; | |
1210 this.range = payload.range; | 1209 this.range = payload.range; |
1211 this.frameId = frameId; | 1210 this.frameId = frameId; |
1212 } | 1211 } |
1213 | 1212 |
1214 WebInspector.CSSMedia.Source = { | 1213 WebInspector.CSSMedia.Source = { |
1215 LINKED_SHEET: "linkedSheet", | 1214 LINKED_SHEET: "linkedSheet", |
1216 INLINE_SHEET: "inlineSheet", | 1215 INLINE_SHEET: "inlineSheet", |
1217 MEDIA_RULE: "mediaRule", | 1216 MEDIA_RULE: "mediaRule", |
1218 IMPORT_RULE: "importRule" | 1217 IMPORT_RULE: "importRule" |
1219 }; | 1218 }; |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1659 | 1658 |
1660 if (!namedFlow) | 1659 if (!namedFlow) |
1661 return null; | 1660 return null; |
1662 return namedFlow; | 1661 return namedFlow; |
1663 } | 1662 } |
1664 } | 1663 } |
1665 /** | 1664 /** |
1666 * @type {WebInspector.CSSStyleModel} | 1665 * @type {WebInspector.CSSStyleModel} |
1667 */ | 1666 */ |
1668 WebInspector.cssModel = null; | 1667 WebInspector.cssModel = null; |
OLD | NEW |