Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 53 { | 53 { |
| 54 if (this._target === target) | 54 if (this._target === target) |
| 55 return; | 55 return; |
| 56 | 56 |
| 57 if (this._target) { | 57 if (this._target) { |
| 58 this._cssModel.removeEventListener(WebInspector.CSSStyleModel.Events .StyleSheetAdded, this.update, this); | 58 this._cssModel.removeEventListener(WebInspector.CSSStyleModel.Events .StyleSheetAdded, this.update, this); |
| 59 this._cssModel.removeEventListener(WebInspector.CSSStyleModel.Events .StyleSheetRemoved, this.update, this); | 59 this._cssModel.removeEventListener(WebInspector.CSSStyleModel.Events .StyleSheetRemoved, this.update, this); |
| 60 this._cssModel.removeEventListener(WebInspector.CSSStyleModel.Events .StyleSheetChanged, this.update, this); | 60 this._cssModel.removeEventListener(WebInspector.CSSStyleModel.Events .StyleSheetChanged, this.update, this); |
| 61 this._cssModel.removeEventListener(WebInspector.CSSStyleModel.Events .MediaQueryResultChanged, this.update, this); | 61 this._cssModel.removeEventListener(WebInspector.CSSStyleModel.Events .MediaQueryResultChanged, this.update, this); |
| 62 this._cssModel.removeEventListener(WebInspector.CSSStyleModel.Events .PseudoStateForced, this.update, this); | 62 this._cssModel.removeEventListener(WebInspector.CSSStyleModel.Events .PseudoStateForced, this.update, this); |
| 63 this._domModel.removeEventListener(WebInspector.DOMModel.Events.DOMM utated, this.update, this); | |
| 63 this._domModel.removeEventListener(WebInspector.DOMModel.Events.Attr Modified, this._attributesUpdated, this); | 64 this._domModel.removeEventListener(WebInspector.DOMModel.Events.Attr Modified, this._attributesUpdated, this); |
| 64 this._domModel.removeEventListener(WebInspector.DOMModel.Events.Attr Removed, this._attributesUpdated, this); | 65 this._domModel.removeEventListener(WebInspector.DOMModel.Events.Attr Removed, this._attributesUpdated, this); |
| 65 this._target.resourceTreeModel.removeEventListener(WebInspector.Reso urceTreeModel.EventTypes.FrameResized, this.update, this); | 66 this._target.resourceTreeModel.removeEventListener(WebInspector.Reso urceTreeModel.EventTypes.FrameResized, this.update, this); |
| 66 } | 67 } |
| 67 this._target = target; | 68 this._target = target; |
| 68 if (target) { | 69 if (target) { |
| 69 this._domModel = WebInspector.DOMModel.fromTarget(target); | 70 this._domModel = WebInspector.DOMModel.fromTarget(target); |
| 70 this._cssModel = WebInspector.CSSStyleModel.fromTarget(target); | 71 this._cssModel = WebInspector.CSSStyleModel.fromTarget(target); |
| 71 this._cssModel.addEventListener(WebInspector.CSSStyleModel.Events.St yleSheetAdded, this.update, this); | 72 this._cssModel.addEventListener(WebInspector.CSSStyleModel.Events.St yleSheetAdded, this.update, this); |
| 72 this._cssModel.addEventListener(WebInspector.CSSStyleModel.Events.St yleSheetRemoved, this.update, this); | 73 this._cssModel.addEventListener(WebInspector.CSSStyleModel.Events.St yleSheetRemoved, this.update, this); |
| 73 this._cssModel.addEventListener(WebInspector.CSSStyleModel.Events.St yleSheetChanged, this.update, this); | 74 this._cssModel.addEventListener(WebInspector.CSSStyleModel.Events.St yleSheetChanged, this.update, this); |
| 74 this._cssModel.addEventListener(WebInspector.CSSStyleModel.Events.Me diaQueryResultChanged, this.update, this); | 75 this._cssModel.addEventListener(WebInspector.CSSStyleModel.Events.Me diaQueryResultChanged, this.update, this); |
| 75 this._cssModel.addEventListener(WebInspector.CSSStyleModel.Events.Ps eudoStateForced, this.update, this); | 76 this._cssModel.addEventListener(WebInspector.CSSStyleModel.Events.Ps eudoStateForced, this.update, this); |
| 77 this._domModel.addEventListener(WebInspector.DOMModel.Events.DOMMuta ted, this.update, this); | |
| 76 this._domModel.addEventListener(WebInspector.DOMModel.Events.AttrMod ified, this._attributesUpdated, this); | 78 this._domModel.addEventListener(WebInspector.DOMModel.Events.AttrMod ified, this._attributesUpdated, this); |
|
pfeldman
2015/05/05 14:13:07
I assume these should be removed now. Also, you pr
sergeyv
2015/05/06 08:35:54
AttrModified/AttrRemoved usually have separate ha
| |
| 77 this._domModel.addEventListener(WebInspector.DOMModel.Events.AttrRem oved, this._attributesUpdated, this); | 79 this._domModel.addEventListener(WebInspector.DOMModel.Events.AttrRem oved, this._attributesUpdated, this); |
| 78 this._target.resourceTreeModel.addEventListener(WebInspector.Resourc eTreeModel.EventTypes.FrameResized, this.update, this); | 80 this._target.resourceTreeModel.addEventListener(WebInspector.Resourc eTreeModel.EventTypes.FrameResized, this.update, this); |
| 79 } | 81 } |
| 80 }, | 82 }, |
| 81 | 83 |
| 82 /** | 84 /** |
| 83 * @override | 85 * @override |
| 84 * @param {!WebInspector.Throttler.FinishCallback} finishedCallback | 86 * @param {!WebInspector.Throttler.FinishCallback} finishedCallback |
| 85 * @protected | 87 * @protected |
| 86 */ | 88 */ |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 483 }, | 485 }, |
| 484 | 486 |
| 485 editingCommitted: function(element, userInput, previousContent, context) | 487 editingCommitted: function(element, userInput, previousContent, context) |
| 486 { | 488 { |
| 487 this.editingEnded(element, context); | 489 this.editingEnded(element, context); |
| 488 this._applyUserInput(element, userInput, previousContent, context, true) ; | 490 this._applyUserInput(element, userInput, previousContent, context, true) ; |
| 489 }, | 491 }, |
| 490 | 492 |
| 491 __proto__: WebInspector.ElementsSidebarPane.prototype | 493 __proto__: WebInspector.ElementsSidebarPane.prototype |
| 492 } | 494 } |
| OLD | NEW |