| 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 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 829 this._expandedChildrenLimit = WebInspector.ElementsTreeElement.InitialChildr
enLimit; | 829 this._expandedChildrenLimit = WebInspector.ElementsTreeElement.InitialChildr
enLimit; |
| 830 } | 830 } |
| 831 | 831 |
| 832 WebInspector.ElementsTreeElement.InitialChildrenLimit = 500; | 832 WebInspector.ElementsTreeElement.InitialChildrenLimit = 500; |
| 833 | 833 |
| 834 // A union of HTML4 and HTML5-Draft elements that explicitly | 834 // A union of HTML4 and HTML5-Draft elements that explicitly |
| 835 // or implicitly (for HTML5) forbid the closing tag. | 835 // or implicitly (for HTML5) forbid the closing tag. |
| 836 // FIXME: Revise once HTML5 Final is published. | 836 // FIXME: Revise once HTML5 Final is published. |
| 837 WebInspector.ElementsTreeElement.ForbiddenClosingTagElements = [ | 837 WebInspector.ElementsTreeElement.ForbiddenClosingTagElements = [ |
| 838 "area", "base", "basefont", "br", "canvas", "col", "command", "embed", "fram
e", | 838 "area", "base", "basefont", "br", "canvas", "col", "command", "embed", "fram
e", |
| 839 "hr", "img", "input", "isindex", "keygen", "link", "meta", "param", "source" | 839 "hr", "img", "input", "keygen", "link", "meta", "param", "source" |
| 840 ].keySet(); | 840 ].keySet(); |
| 841 | 841 |
| 842 // These tags we do not allow editing their tag name. | 842 // These tags we do not allow editing their tag name. |
| 843 WebInspector.ElementsTreeElement.EditTagBlacklist = [ | 843 WebInspector.ElementsTreeElement.EditTagBlacklist = [ |
| 844 "html", "head", "body" | 844 "html", "head", "body" |
| 845 ].keySet(); | 845 ].keySet(); |
| 846 | 846 |
| 847 WebInspector.ElementsTreeElement.prototype = { | 847 WebInspector.ElementsTreeElement.prototype = { |
| 848 highlightSearchResults: function(searchQuery) | 848 highlightSearchResults: function(searchQuery) |
| 849 { | 849 { |
| (...skipping 1788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2638 var treeOutline = new WebInspector.ElementsTreeOutline(false, false); | 2638 var treeOutline = new WebInspector.ElementsTreeOutline(false, false); |
| 2639 treeOutline.rootDOMNode = /** @type {!WebInspector.DOMNode} */ (object); | 2639 treeOutline.rootDOMNode = /** @type {!WebInspector.DOMNode} */ (object); |
| 2640 treeOutline.element.classList.add("outline-disclosure"); | 2640 treeOutline.element.classList.add("outline-disclosure"); |
| 2641 if (!treeOutline.children[0].hasChildren) | 2641 if (!treeOutline.children[0].hasChildren) |
| 2642 treeOutline.element.classList.add("single-node"); | 2642 treeOutline.element.classList.add("single-node"); |
| 2643 treeOutline.setVisible(true); | 2643 treeOutline.setVisible(true); |
| 2644 treeOutline.element.treeElementForTest = treeOutline.children[0]; | 2644 treeOutline.element.treeElementForTest = treeOutline.children[0]; |
| 2645 return treeOutline.element; | 2645 return treeOutline.element; |
| 2646 } | 2646 } |
| 2647 } | 2647 } |
| OLD | NEW |