Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: Source/devtools/front_end/elements/ElementsTreeElement.js

Issue 935283002: Rename {Author,UserAgent}ShadowRoot to {Open,Closed}ShadowRoot. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix inspector tests Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/elements/ElementsPanel.js ('k') | Source/devtools/front_end/elements/ElementsTreeOutline.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698