| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 if (sourceURLLine.search(sourceURLRegex) === -1) | 81 if (sourceURLLine.search(sourceURLRegex) === -1) |
| 82 return text; | 82 return text; |
| 83 return text.substr(0, sourceURLLineIndex) + text.substr(sourceURLLineIndex +
sourceURLLine.length + 1); | 83 return text.substr(0, sourceURLLineIndex) + text.substr(sourceURLLineIndex +
sourceURLLine.length + 1); |
| 84 } | 84 } |
| 85 | 85 |
| 86 /** | 86 /** |
| 87 * @param {!SDK.Target} target | 87 * @param {!SDK.Target} target |
| 88 * @return {?SDK.CSSModel} | 88 * @return {?SDK.CSSModel} |
| 89 */ | 89 */ |
| 90 static fromTarget(target) { | 90 static fromTarget(target) { |
| 91 return /** @type {?SDK.CSSModel} */ (target.model(SDK.CSSModel)); | 91 return target.model(SDK.CSSModel); |
| 92 } | 92 } |
| 93 | 93 |
| 94 /** | 94 /** |
| 95 * @param {!SDK.DOMNode} node | 95 * @param {!SDK.DOMNode} node |
| 96 * @return {!SDK.CSSModel} | 96 * @return {!SDK.CSSModel} |
| 97 */ | 97 */ |
| 98 static fromNode(node) { | 98 static fromNode(node) { |
| 99 return /** @type {!SDK.CSSModel} */ (SDK.CSSModel.fromTarget(node.target()))
; | 99 return /** @type {!SDK.CSSModel} */ (SDK.CSSModel.fromTarget(node.target()))
; |
| 100 } | 100 } |
| 101 | 101 |
| (...skipping 1082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1184 SDK.CSSModel.InlineStyleResult = class { | 1184 SDK.CSSModel.InlineStyleResult = class { |
| 1185 /** | 1185 /** |
| 1186 * @param {?SDK.CSSStyleDeclaration} inlineStyle | 1186 * @param {?SDK.CSSStyleDeclaration} inlineStyle |
| 1187 * @param {?SDK.CSSStyleDeclaration} attributesStyle | 1187 * @param {?SDK.CSSStyleDeclaration} attributesStyle |
| 1188 */ | 1188 */ |
| 1189 constructor(inlineStyle, attributesStyle) { | 1189 constructor(inlineStyle, attributesStyle) { |
| 1190 this.inlineStyle = inlineStyle; | 1190 this.inlineStyle = inlineStyle; |
| 1191 this.attributesStyle = attributesStyle; | 1191 this.attributesStyle = attributesStyle; |
| 1192 } | 1192 } |
| 1193 }; | 1193 }; |
| OLD | NEW |