| 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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 if (this.hasChildren && !this.expanded) | 405 if (this.hasChildren && !this.expanded) |
| 406 this.expand(); | 406 this.expand(); |
| 407 return false; | 407 return false; |
| 408 }, | 408 }, |
| 409 | 409 |
| 410 /** | 410 /** |
| 411 * @return {boolean} | 411 * @return {boolean} |
| 412 */ | 412 */ |
| 413 hasEditableNode: function() | 413 hasEditableNode: function() |
| 414 { | 414 { |
| 415 return !this._node.isShadowRoot() && !this._node.ancestorUserAgentShadow
Root(); | 415 return !this._node.isShadowRoot() && !this._node.ancestorClosedShadowRoo
t(); |
| 416 }, | 416 }, |
| 417 | 417 |
| 418 _insertInLastAttributePosition: function(tag, node) | 418 _insertInLastAttributePosition: function(tag, node) |
| 419 { | 419 { |
| 420 if (tag.getElementsByClassName("webkit-html-attribute").length > 0) | 420 if (tag.getElementsByClassName("webkit-html-attribute").length > 0) |
| 421 tag.insertBefore(node, tag.lastChild); | 421 tag.insertBefore(node, tag.lastChild); |
| 422 else { | 422 else { |
| 423 var nodeName = tag.textContent.match(/^<(.*?)>$/)[1]; | 423 var nodeName = tag.textContent.match(/^<(.*?)>$/)[1]; |
| 424 tag.textContent = ''; | 424 tag.textContent = ''; |
| 425 tag.createTextChild('<' + nodeName); | 425 tag.createTextChild('<' + nodeName); |
| (...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1584 | 1584 |
| 1585 if (object) | 1585 if (object) |
| 1586 object.callFunction(scrollIntoView); | 1586 object.callFunction(scrollIntoView); |
| 1587 } | 1587 } |
| 1588 | 1588 |
| 1589 this._node.resolveToObject("", scrollIntoViewCallback); | 1589 this._node.resolveToObject("", scrollIntoViewCallback); |
| 1590 }, | 1590 }, |
| 1591 | 1591 |
| 1592 __proto__: TreeElement.prototype | 1592 __proto__: TreeElement.prototype |
| 1593 } | 1593 } |
| OLD | NEW |