| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2009 Joseph Pecoraro | 3 * Copyright (C) 2009 Joseph Pecoraro |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 _updateTarget: function(target) | 370 _updateTarget: function(target) |
| 371 { | 371 { |
| 372 if (this._target === target) | 372 if (this._target === target) |
| 373 return; | 373 return; |
| 374 if (this._target) { | 374 if (this._target) { |
| 375 this._cssModel.removeEventListener(WebInspector.CSSStyleModel.Events
.StyleSheetAdded, this._styleSheetOrMediaQueryResultChanged, this); | 375 this._cssModel.removeEventListener(WebInspector.CSSStyleModel.Events
.StyleSheetAdded, this._styleSheetOrMediaQueryResultChanged, this); |
| 376 this._cssModel.removeEventListener(WebInspector.CSSStyleModel.Events
.StyleSheetRemoved, this._styleSheetOrMediaQueryResultChanged, this); | 376 this._cssModel.removeEventListener(WebInspector.CSSStyleModel.Events
.StyleSheetRemoved, this._styleSheetOrMediaQueryResultChanged, this); |
| 377 this._cssModel.removeEventListener(WebInspector.CSSStyleModel.Events
.StyleSheetChanged, this._styleSheetOrMediaQueryResultChanged, this); | 377 this._cssModel.removeEventListener(WebInspector.CSSStyleModel.Events
.StyleSheetChanged, this._styleSheetOrMediaQueryResultChanged, this); |
| 378 this._cssModel.removeEventListener(WebInspector.CSSStyleModel.Events
.MediaQueryResultChanged, this._styleSheetOrMediaQueryResultChanged, this); | 378 this._cssModel.removeEventListener(WebInspector.CSSStyleModel.Events
.MediaQueryResultChanged, this._styleSheetOrMediaQueryResultChanged, this); |
| 379 this._cssModel.removeEventListener(WebInspector.CSSStyleModel.Events
.PseudoStateForced, this._styleSheetOrMediaQueryResultChanged, this); | 379 this._cssModel.removeEventListener(WebInspector.CSSStyleModel.Events
.PseudoStateForced, this._styleSheetOrMediaQueryResultChanged, this); |
| 380 this._domModel.removeDOMMutationsObserver(this._styleSheetOrMediaQue
ryResultChanged, this); |
| 380 this._domModel.removeEventListener(WebInspector.DOMModel.Events.Attr
Modified, this._attributeChanged, this); | 381 this._domModel.removeEventListener(WebInspector.DOMModel.Events.Attr
Modified, this._attributeChanged, this); |
| 381 this._domModel.removeEventListener(WebInspector.DOMModel.Events.Attr
Removed, this._attributeChanged, this); | 382 this._domModel.removeEventListener(WebInspector.DOMModel.Events.Attr
Removed, this._attributeChanged, this); |
| 382 this._target.resourceTreeModel.removeEventListener(WebInspector.Reso
urceTreeModel.EventTypes.FrameResized, this._frameResized, this); | 383 this._target.resourceTreeModel.removeEventListener(WebInspector.Reso
urceTreeModel.EventTypes.FrameResized, this._frameResized, this); |
| 383 } | 384 } |
| 384 this._target = target; | 385 this._target = target; |
| 385 if (target) { | 386 if (target) { |
| 386 this._domModel = WebInspector.DOMModel.fromTarget(target); | 387 this._domModel = WebInspector.DOMModel.fromTarget(target); |
| 387 this._cssModel = WebInspector.CSSStyleModel.fromTarget(target); | 388 this._cssModel = WebInspector.CSSStyleModel.fromTarget(target); |
| 388 this._cssModel.addEventListener(WebInspector.CSSStyleModel.Events.St
yleSheetAdded, this._styleSheetOrMediaQueryResultChanged, this); | 389 this._cssModel.addEventListener(WebInspector.CSSStyleModel.Events.St
yleSheetAdded, this._styleSheetOrMediaQueryResultChanged, this); |
| 389 this._cssModel.addEventListener(WebInspector.CSSStyleModel.Events.St
yleSheetRemoved, this._styleSheetOrMediaQueryResultChanged, this); | 390 this._cssModel.addEventListener(WebInspector.CSSStyleModel.Events.St
yleSheetRemoved, this._styleSheetOrMediaQueryResultChanged, this); |
| 390 this._cssModel.addEventListener(WebInspector.CSSStyleModel.Events.St
yleSheetChanged, this._styleSheetOrMediaQueryResultChanged, this); | 391 this._cssModel.addEventListener(WebInspector.CSSStyleModel.Events.St
yleSheetChanged, this._styleSheetOrMediaQueryResultChanged, this); |
| 391 this._cssModel.addEventListener(WebInspector.CSSStyleModel.Events.Me
diaQueryResultChanged, this._styleSheetOrMediaQueryResultChanged, this); | 392 this._cssModel.addEventListener(WebInspector.CSSStyleModel.Events.Me
diaQueryResultChanged, this._styleSheetOrMediaQueryResultChanged, this); |
| 392 this._cssModel.addEventListener(WebInspector.CSSStyleModel.Events.Ps
eudoStateForced, this._styleSheetOrMediaQueryResultChanged, this); | 393 this._cssModel.addEventListener(WebInspector.CSSStyleModel.Events.Ps
eudoStateForced, this._styleSheetOrMediaQueryResultChanged, this); |
| 394 this._domModel.addDOMMutationsObserver(this._styleSheetOrMediaQueryR
esultChanged, this); |
| 393 this._domModel.addEventListener(WebInspector.DOMModel.Events.AttrMod
ified, this._attributeChanged, this); | 395 this._domModel.addEventListener(WebInspector.DOMModel.Events.AttrMod
ified, this._attributeChanged, this); |
| 394 this._domModel.addEventListener(WebInspector.DOMModel.Events.AttrRem
oved, this._attributeChanged, this); | 396 this._domModel.addEventListener(WebInspector.DOMModel.Events.AttrRem
oved, this._attributeChanged, this); |
| 395 this._target.resourceTreeModel.addEventListener(WebInspector.Resourc
eTreeModel.EventTypes.FrameResized, this._frameResized, this); | 397 this._target.resourceTreeModel.addEventListener(WebInspector.Resourc
eTreeModel.EventTypes.FrameResized, this._frameResized, this); |
| 396 } | 398 } |
| 397 }, | 399 }, |
| 398 | 400 |
| 399 /** | 401 /** |
| 400 * @param {!WebInspector.StylePropertiesSection=} editedSection | 402 * @param {!WebInspector.StylePropertiesSection=} editedSection |
| 401 */ | 403 */ |
| 402 _refreshUpdate: function(editedSection) | 404 _refreshUpdate: function(editedSection) |
| (...skipping 3039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3442 | 3444 |
| 3443 WebInspector.StylesSidebarPane.MatchedRulesPayload.prototype = { | 3445 WebInspector.StylesSidebarPane.MatchedRulesPayload.prototype = { |
| 3444 /** | 3446 /** |
| 3445 * @return {boolean} | 3447 * @return {boolean} |
| 3446 */ | 3448 */ |
| 3447 fulfilled: function() | 3449 fulfilled: function() |
| 3448 { | 3450 { |
| 3449 return !!(this.matchedCSSRules && this.pseudoElements && this.inherited)
; | 3451 return !!(this.matchedCSSRules && this.pseudoElements && this.inherited)
; |
| 3450 } | 3452 } |
| 3451 } | 3453 } |
| OLD | NEW |