Chromium Code Reviews| OLD | NEW | 
|---|---|
| 1 /* | 1 /* | 
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 
| 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> | 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> | 
| 4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro | 
| 5 * | 5 * | 
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without | 
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions | 
| 8 * are met: | 8 * are met: | 
| 9 * | 9 * | 
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright | 
| (...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1008 } | 1008 } | 
| 1009 | 1009 | 
| 1010 delete this.selectionElement; | 1010 delete this.selectionElement; | 
| 1011 if (this.selected) | 1011 if (this.selected) | 
| 1012 this._createSelection(); | 1012 this._createSelection(); | 
| 1013 this._highlightSearchResults(); | 1013 this._highlightSearchResults(); | 
| 1014 } | 1014 } | 
| 1015 | 1015 | 
| 1016 /** | 1016 /** | 
| 1017 * @return {number} | 1017 * @return {number} | 
| 1018 * @override | |
| 
 
dgozman
2017/01/09 23:21:22
Methods starting with underscore are private and s
 
aboxhall
2017/01/11 00:11:48
Done.
 
 | |
| 1018 */ | 1019 */ | 
| 1019 _computeLeftIndent() { | 1020 _computeLeftIndent() { | 
| 1020 var treeElement = this.parent; | 1021 var treeElement = this.parent; | 
| 1021 var depth = 0; | 1022 var depth = 0; | 
| 1022 while (treeElement !== null) { | 1023 while (treeElement !== null) { | 
| 1023 depth++; | 1024 depth++; | 
| 1024 treeElement = treeElement.parent; | 1025 treeElement = treeElement.parent; | 
| 1025 } | 1026 } | 
| 1026 | 1027 | 
| 1027 /** Keep it in sync with elementsTreeOutline.css **/ | 1028 /** Keep it in sync with elementsTreeOutline.css **/ | 
| (...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1563 | 1564 | 
| 1564 // A union of HTML4 and HTML5-Draft elements that explicitly | 1565 // A union of HTML4 and HTML5-Draft elements that explicitly | 
| 1565 // or implicitly (for HTML5) forbid the closing tag. | 1566 // or implicitly (for HTML5) forbid the closing tag. | 
| 1566 Elements.ElementsTreeElement.ForbiddenClosingTagElements = new Set([ | 1567 Elements.ElementsTreeElement.ForbiddenClosingTagElements = new Set([ | 
| 1567 'area', 'base', 'basefont', 'br', 'canvas', 'col', 'command', 'embed', 'frame', 'hr', | 1568 'area', 'base', 'basefont', 'br', 'canvas', 'col', 'command', 'embed', 'frame', 'hr', | 
| 1568 'img', 'input', 'keygen', 'link', 'menuitem', 'meta', 'param', 'source', 'track', 'wbr' | 1569 'img', 'input', 'keygen', 'link', 'menuitem', 'meta', 'param', 'source', 'track', 'wbr' | 
| 1569 ]); | 1570 ]); | 
| 1570 | 1571 | 
| 1571 // These tags we do not allow editing their tag name. | 1572 // These tags we do not allow editing their tag name. | 
| 1572 Elements.ElementsTreeElement.EditTagBlacklist = new Set(['html', 'head', 'body'] ); | 1573 Elements.ElementsTreeElement.EditTagBlacklist = new Set(['html', 'head', 'body'] ); | 
| OLD | NEW |