| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 this.showWhitespacesInEditor = this.createSetting("showWhitespacesInEditor",
false); | 84 this.showWhitespacesInEditor = this.createSetting("showWhitespacesInEditor",
false); |
| 85 this.skipStackFramesPattern = this.createRegExpSetting("skipStackFramesPatte
rn", ""); | 85 this.skipStackFramesPattern = this.createRegExpSetting("skipStackFramesPatte
rn", ""); |
| 86 this.skipContentScripts = this.createSetting("skipContentScripts", false); | 86 this.skipContentScripts = this.createSetting("skipContentScripts", false); |
| 87 this.pauseOnExceptionEnabled = this.createSetting("pauseOnExceptionEnabled",
false); | 87 this.pauseOnExceptionEnabled = this.createSetting("pauseOnExceptionEnabled",
false); |
| 88 this.pauseOnCaughtException = this.createSetting("pauseOnCaughtException", f
alse); | 88 this.pauseOnCaughtException = this.createSetting("pauseOnCaughtException", f
alse); |
| 89 this.enableAsyncStackTraces = this.createSetting("enableAsyncStackTraces", f
alse); | 89 this.enableAsyncStackTraces = this.createSetting("enableAsyncStackTraces", f
alse); |
| 90 this.showMediaQueryInspector = this.createSetting("showMediaQueryInspector",
false); | 90 this.showMediaQueryInspector = this.createSetting("showMediaQueryInspector",
false); |
| 91 this.disableOverridesWarning = this.createSetting("disableOverridesWarning",
false); | 91 this.disableOverridesWarning = this.createSetting("disableOverridesWarning",
false); |
| 92 this.testPath = this.createSetting("testPath", ""); | 92 this.testPath = this.createSetting("testPath", ""); |
| 93 this.frameViewerHideChromeWindow = this.createSetting("frameViewerHideChrome
Window", false); | 93 this.frameViewerHideChromeWindow = this.createSetting("frameViewerHideChrome
Window", false); |
| 94 this.showSubtreeAnimations = this.createSetting("showSubtreeAnimations", fal
se); |
| 94 | 95 |
| 95 // Rendering options | 96 // Rendering options |
| 96 this.showPaintRects = this.createSetting("showPaintRects", false); | 97 this.showPaintRects = this.createSetting("showPaintRects", false); |
| 97 this.showDebugBorders = this.createSetting("showDebugBorders", false); | 98 this.showDebugBorders = this.createSetting("showDebugBorders", false); |
| 98 this.showFPSCounter = this.createSetting("showFPSCounter", false); | 99 this.showFPSCounter = this.createSetting("showFPSCounter", false); |
| 99 this.continuousPainting = this.createSetting("continuousPainting", false); | 100 this.continuousPainting = this.createSetting("continuousPainting", false); |
| 100 this.showScrollBottleneckRects = this.createSetting("showScrollBottleneckRec
ts", false); | 101 this.showScrollBottleneckRects = this.createSetting("showScrollBottleneckRec
ts", false); |
| 101 } | 102 } |
| 102 | 103 |
| 103 WebInspector.Settings.prototype = { | 104 WebInspector.Settings.prototype = { |
| (...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 633 | 634 |
| 634 _fireChangedIfNeeded: function() | 635 _fireChangedIfNeeded: function() |
| 635 { | 636 { |
| 636 var newValue = this._calculateValue(); | 637 var newValue = this._calculateValue(); |
| 637 if (newValue === this._value) | 638 if (newValue === this._value) |
| 638 return; | 639 return; |
| 639 this._value = newValue; | 640 this._value = newValue; |
| 640 this._eventSupport.dispatchEventToListeners(this._name, this._value); | 641 this._eventSupport.dispatchEventToListeners(this._name, this._value); |
| 641 } | 642 } |
| 642 } | 643 } |
| OLD | NEW |