OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 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 * 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 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 * @param {!RegExp} regex | 650 * @param {!RegExp} regex |
651 * @param {!Element} element | 651 * @param {!Element} element |
652 * @param {string} cssClassName | 652 * @param {string} cssClassName |
653 */ | 653 */ |
654 _applySearch(regex, element, cssClassName) { | 654 _applySearch(regex, element, cssClassName) { |
655 var ranges = []; | 655 var ranges = []; |
656 var content = element.textContent; | 656 var content = element.textContent; |
657 regex.lastIndex = 0; | 657 regex.lastIndex = 0; |
658 var match = regex.exec(content); | 658 var match = regex.exec(content); |
659 while (match) { | 659 while (match) { |
660 ranges.push(new Common.SourceRange(match.index, match[0].length)); | 660 ranges.push(new TextUtils.SourceRange(match.index, match[0].length)); |
661 match = regex.exec(content); | 661 match = regex.exec(content); |
662 } | 662 } |
663 if (ranges.length) | 663 if (ranges.length) |
664 UI.highlightRangesWithStyleClass(element, ranges, cssClassName, this._high
lightChanges); | 664 UI.highlightRangesWithStyleClass(element, ranges, cssClassName, this._high
lightChanges); |
665 } | 665 } |
666 | 666 |
667 revertHighlightChanges() { | 667 revertHighlightChanges() { |
668 UI.revertDomChanges(this._highlightChanges); | 668 UI.revertDomChanges(this._highlightChanges); |
669 this._highlightChanges = []; | 669 this._highlightChanges = []; |
670 } | 670 } |
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1343 } | 1343 } |
1344 var treeOutlineId = treeElement.treeOutline[ObjectUI.ObjectPropertiesSection
ExpandController._treeOutlineId]; | 1344 var treeOutlineId = treeElement.treeOutline[ObjectUI.ObjectPropertiesSection
ExpandController._treeOutlineId]; |
1345 result = treeOutlineId + (result ? ':' + result : ''); | 1345 result = treeOutlineId + (result ? ':' + result : ''); |
1346 treeElement[ObjectUI.ObjectPropertiesSectionExpandController._cachedPathSymb
ol] = result; | 1346 treeElement[ObjectUI.ObjectPropertiesSectionExpandController._cachedPathSymb
ol] = result; |
1347 return result; | 1347 return result; |
1348 } | 1348 } |
1349 }; | 1349 }; |
1350 | 1350 |
1351 ObjectUI.ObjectPropertiesSectionExpandController._cachedPathSymbol = Symbol('cac
hedPath'); | 1351 ObjectUI.ObjectPropertiesSectionExpandController._cachedPathSymbol = Symbol('cac
hedPath'); |
1352 ObjectUI.ObjectPropertiesSectionExpandController._treeOutlineId = Symbol('treeOu
tlineId'); | 1352 ObjectUI.ObjectPropertiesSectionExpandController._treeOutlineId = Symbol('treeOu
tlineId'); |
OLD | NEW |