| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). | 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). |
| 4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
| 5 * Copyright (C) 2011 Google Inc. All rights reserved. | 5 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 6 * | 6 * |
| 7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
| 9 * are met: | 9 * are met: |
| 10 * | 10 * |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 | 237 |
| 238 closeSearch: function() | 238 closeSearch: function() |
| 239 { | 239 { |
| 240 this.cancelSearch(); | 240 this.cancelSearch(); |
| 241 if (WebInspector.currentFocusElement().isDescendant(this._footerElementC
ontainer)) | 241 if (WebInspector.currentFocusElement().isDescendant(this._footerElementC
ontainer)) |
| 242 WebInspector.setCurrentFocusElement(WebInspector.previousFocusElemen
t()); | 242 WebInspector.setCurrentFocusElement(WebInspector.previousFocusElemen
t()); |
| 243 }, | 243 }, |
| 244 | 244 |
| 245 _toggleSearchBar: function(toggled) | 245 _toggleSearchBar: function(toggled) |
| 246 { | 246 { |
| 247 this._footerElementContainer.enableStyleClass("hidden", !toggled); | 247 this._footerElementContainer.classList.toggle("hidden", !toggled); |
| 248 this.doResize(); | 248 this.doResize(); |
| 249 }, | 249 }, |
| 250 | 250 |
| 251 cancelSearch: function() | 251 cancelSearch: function() |
| 252 { | 252 { |
| 253 if (!this._searchIsVisible) | 253 if (!this._searchIsVisible) |
| 254 return; | 254 return; |
| 255 this.resetSearch(); | 255 this.resetSearch(); |
| 256 delete this._searchIsVisible; | 256 delete this._searchIsVisible; |
| 257 this._toggleSearchBar(false); | 257 this._toggleSearchBar(false); |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 } | 356 } |
| 357 } | 357 } |
| 358 this._performSearch(false, false); | 358 this._performSearch(false, false); |
| 359 this._searchInputElement.focus(); | 359 this._searchInputElement.focus(); |
| 360 this._searchInputElement.select(); | 360 this._searchInputElement.select(); |
| 361 this._searchIsVisible = true; | 361 this._searchIsVisible = true; |
| 362 }, | 362 }, |
| 363 | 363 |
| 364 _updateReplaceVisibility: function() | 364 _updateReplaceVisibility: function() |
| 365 { | 365 { |
| 366 this._replaceElement.enableStyleClass("hidden", !this._replaceable); | 366 this._replaceElement.classList.toggle("hidden", !this._replaceable); |
| 367 if (!this._replaceable) { | 367 if (!this._replaceable) { |
| 368 this._replaceCheckboxElement.checked = false; | 368 this._replaceCheckboxElement.checked = false; |
| 369 this._updateSecondRowVisibility(); | 369 this._updateSecondRowVisibility(); |
| 370 } | 370 } |
| 371 }, | 371 }, |
| 372 | 372 |
| 373 /** | 373 /** |
| 374 * @param {!Event} event | 374 * @param {!Event} event |
| 375 */ | 375 */ |
| 376 _onSearchFieldManualFocus: function(event) | 376 _onSearchFieldManualFocus: function(event) |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 * @param {string} text | 535 * @param {string} text |
| 536 */ | 536 */ |
| 537 replaceSelectionWith: function(text) { }, | 537 replaceSelectionWith: function(text) { }, |
| 538 | 538 |
| 539 /** | 539 /** |
| 540 * @param {string} query | 540 * @param {string} query |
| 541 * @param {string} replacement | 541 * @param {string} replacement |
| 542 */ | 542 */ |
| 543 replaceAllWith: function(query, replacement) { } | 543 replaceAllWith: function(query, replacement) { } |
| 544 } | 544 } |
| OLD | NEW |