| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 /** @type {!Multimap<string, !CSSAgent.StyleSheetId>} */ | 54 /** @type {!Multimap<string, !CSSAgent.StyleSheetId>} */ |
| 55 this._sourceMapLoadingStyleSheetsIds = new Multimap(); | 55 this._sourceMapLoadingStyleSheetsIds = new Multimap(); |
| 56 | 56 |
| 57 /** @type {!Map<string, !WebInspector.SourceMap>} */ | 57 /** @type {!Map<string, !WebInspector.SourceMap>} */ |
| 58 this._sourceMapByURL = new Map(); | 58 this._sourceMapByURL = new Map(); |
| 59 /** @type {!Multimap<string, !WebInspector.CSSStyleSheetHeader>} */ | 59 /** @type {!Multimap<string, !WebInspector.CSSStyleSheetHeader>} */ |
| 60 this._sourceMapURLToHeaders = new Multimap(); | 60 this._sourceMapURLToHeaders = new Multimap(); |
| 61 WebInspector.moduleSetting("cssSourceMapsEnabled").addChangeListener(this._t
oggleSourceMapSupport, this); | 61 WebInspector.moduleSetting("cssSourceMapsEnabled").addChangeListener(this._t
oggleSourceMapSupport, this); |
| 62 } | 62 } |
| 63 | 63 |
| 64 /** @enum {symbol} */ |
| 64 WebInspector.CSSModel.Events = { | 65 WebInspector.CSSModel.Events = { |
| 65 LayoutEditorChange: "LayoutEditorChange", | 66 LayoutEditorChange: Symbol("LayoutEditorChange"), |
| 66 FontsUpdated: "FontsUpdated", | 67 FontsUpdated: Symbol("FontsUpdated"), |
| 67 MediaQueryResultChanged: "MediaQueryResultChanged", | 68 MediaQueryResultChanged: Symbol("MediaQueryResultChanged"), |
| 68 ModelWasEnabled: "ModelWasEnabled", | 69 ModelWasEnabled: Symbol("ModelWasEnabled"), |
| 69 PseudoStateForced: "PseudoStateForced", | 70 PseudoStateForced: Symbol("PseudoStateForced"), |
| 70 StyleSheetAdded: "StyleSheetAdded", | 71 StyleSheetAdded: Symbol("StyleSheetAdded"), |
| 71 StyleSheetChanged: "StyleSheetChanged", | 72 StyleSheetChanged: Symbol("StyleSheetChanged"), |
| 72 StyleSheetRemoved: "StyleSheetRemoved", | 73 StyleSheetRemoved: Symbol("StyleSheetRemoved"), |
| 73 SourceMapAttached: "SourceMapAttached", | 74 SourceMapAttached: Symbol("SourceMapAttached"), |
| 74 SourceMapDetached: "SourceMapDetached", | 75 SourceMapDetached: Symbol("SourceMapDetached"), |
| 75 SourceMapChanged: "SourceMapChanged" | 76 SourceMapChanged: Symbol("SourceMapChanged") |
| 76 } | 77 } |
| 77 | 78 |
| 78 WebInspector.CSSModel.MediaTypes = ["all", "braille", "embossed", "handheld", "p
rint", "projection", "screen", "speech", "tty", "tv"]; | 79 WebInspector.CSSModel.MediaTypes = ["all", "braille", "embossed", "handheld", "p
rint", "projection", "screen", "speech", "tty", "tv"]; |
| 79 | 80 |
| 80 WebInspector.CSSModel.PseudoStateMarker = "pseudo-state-marker"; | 81 WebInspector.CSSModel.PseudoStateMarker = "pseudo-state-marker"; |
| 81 | 82 |
| 82 /** | 83 /** |
| 83 * @constructor | 84 * @constructor |
| 84 * @param {!CSSAgent.StyleSheetId} styleSheetId | 85 * @param {!CSSAgent.StyleSheetId} styleSheetId |
| 85 * @param {!WebInspector.TextRange} oldRange | 86 * @param {!WebInspector.TextRange} oldRange |
| (...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1228 /** | 1229 /** |
| 1229 * @constructor | 1230 * @constructor |
| 1230 * @param {?WebInspector.CSSStyleDeclaration} inlineStyle | 1231 * @param {?WebInspector.CSSStyleDeclaration} inlineStyle |
| 1231 * @param {?WebInspector.CSSStyleDeclaration} attributesStyle | 1232 * @param {?WebInspector.CSSStyleDeclaration} attributesStyle |
| 1232 */ | 1233 */ |
| 1233 WebInspector.CSSModel.InlineStyleResult = function(inlineStyle, attributesStyle) | 1234 WebInspector.CSSModel.InlineStyleResult = function(inlineStyle, attributesStyle) |
| 1234 { | 1235 { |
| 1235 this.inlineStyle = inlineStyle; | 1236 this.inlineStyle = inlineStyle; |
| 1236 this.attributesStyle = attributesStyle; | 1237 this.attributesStyle = attributesStyle; |
| 1237 } | 1238 } |
| OLD | NEW |