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 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1031 if (this._node.nodeType() == Node.ELEMENT_NODE && !elementCloseTag) | 1031 if (this._node.nodeType() == Node.ELEMENT_NODE && !elementCloseTag) |
1032 this._canAddAttributes = true; | 1032 this._canAddAttributes = true; |
1033 this._searchQuery = null; | 1033 this._searchQuery = null; |
1034 this._expandedChildrenLimit = WebInspector.ElementsTreeElement.InitialChildr
enLimit; | 1034 this._expandedChildrenLimit = WebInspector.ElementsTreeElement.InitialChildr
enLimit; |
1035 } | 1035 } |
1036 | 1036 |
1037 WebInspector.ElementsTreeElement.InitialChildrenLimit = 500; | 1037 WebInspector.ElementsTreeElement.InitialChildrenLimit = 500; |
1038 | 1038 |
1039 // A union of HTML4 and HTML5-Draft elements that explicitly | 1039 // A union of HTML4 and HTML5-Draft elements that explicitly |
1040 // or implicitly (for HTML5) forbid the closing tag. | 1040 // or implicitly (for HTML5) forbid the closing tag. |
1041 // FIXME: Revise once HTML5 Final is published. | |
1042 WebInspector.ElementsTreeElement.ForbiddenClosingTagElements = [ | 1041 WebInspector.ElementsTreeElement.ForbiddenClosingTagElements = [ |
1043 "area", "base", "basefont", "br", "canvas", "col", "command", "embed", "fram
e", | 1042 "area", "base", "basefont", "br", "canvas", "col", "command", "embed", "fram
e", |
1044 "hr", "img", "input", "keygen", "link", "meta", "param", "source" | 1043 "hr", "img", "input", "keygen", "link", "menuitem", "meta", "param", "source
", "track", "wbr" |
1045 ].keySet(); | 1044 ].keySet(); |
1046 | 1045 |
1047 // These tags we do not allow editing their tag name. | 1046 // These tags we do not allow editing their tag name. |
1048 WebInspector.ElementsTreeElement.EditTagBlacklist = [ | 1047 WebInspector.ElementsTreeElement.EditTagBlacklist = [ |
1049 "html", "head", "body" | 1048 "html", "head", "body" |
1050 ].keySet(); | 1049 ].keySet(); |
1051 | 1050 |
1052 WebInspector.ElementsTreeElement.prototype = { | 1051 WebInspector.ElementsTreeElement.prototype = { |
1053 highlightSearchResults: function(searchQuery) | 1052 highlightSearchResults: function(searchQuery) |
1054 { | 1053 { |
(...skipping 1870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2925 var treeOutline = new WebInspector.ElementsTreeOutline(node.target(), fa
lse, false); | 2924 var treeOutline = new WebInspector.ElementsTreeOutline(node.target(), fa
lse, false); |
2926 treeOutline.rootDOMNode = node; | 2925 treeOutline.rootDOMNode = node; |
2927 treeOutline.element.classList.add("outline-disclosure"); | 2926 treeOutline.element.classList.add("outline-disclosure"); |
2928 if (!treeOutline.children[0].hasChildren) | 2927 if (!treeOutline.children[0].hasChildren) |
2929 treeOutline.element.classList.add("single-node"); | 2928 treeOutline.element.classList.add("single-node"); |
2930 treeOutline.setVisible(true); | 2929 treeOutline.setVisible(true); |
2931 treeOutline.element.treeElementForTest = treeOutline.children[0]; | 2930 treeOutline.element.treeElementForTest = treeOutline.children[0]; |
2932 return treeOutline.element; | 2931 return treeOutline.element; |
2933 } | 2932 } |
2934 } | 2933 } |
OLD | NEW |