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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/DOMModel.js

Issue 2347963002: [DevTools] Show distribution for Shadow DOM V1. (Closed)
Patch Set: getDistributedNodes -> iteration Created 4 years, 3 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
« no previous file with comments | « third_party/WebKit/Source/core/inspector/InspectorInstrumentation.idl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 Google Inc. All rights reserved.
3 * Copyright (C) 2009 Joseph Pecoraro 3 * Copyright (C) 2009 Joseph Pecoraro
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 if (!this._pseudoElements) 268 if (!this._pseudoElements)
269 return null; 269 return null;
270 return this._pseudoElements.get(WebInspector.DOMNode.PseudoElementNames. After); 270 return this._pseudoElements.get(WebInspector.DOMNode.PseudoElementNames. After);
271 }, 271 },
272 272
273 /** 273 /**
274 * @return {boolean} 274 * @return {boolean}
275 */ 275 */
276 isInsertionPoint: function() 276 isInsertionPoint: function()
277 { 277 {
278 return !this.isXMLNode() && (this._nodeName === "SHADOW" || this._nodeNa me === "CONTENT"); 278 return !this.isXMLNode() && (this._nodeName === "SHADOW" || this._nodeNa me === "CONTENT" || this._nodeName === "SLOT");
279 }, 279 },
280 280
281 /** 281 /**
282 * @return {!Array.<!WebInspector.DOMNodeShortcut>} 282 * @return {!Array.<!WebInspector.DOMNodeShortcut>}
283 */ 283 */
284 distributedNodes: function() 284 distributedNodes: function()
285 { 285 {
286 return this._distributedNodes || []; 286 return this._distributedNodes || [];
287 }, 287 },
288 288
(...skipping 1991 matching lines...) Expand 10 before | Expand all | Expand 10 after
2280 } 2280 }
2281 2281
2282 /** 2282 /**
2283 * @param {!WebInspector.Target} target 2283 * @param {!WebInspector.Target} target
2284 * @return {?WebInspector.DOMModel} 2284 * @return {?WebInspector.DOMModel}
2285 */ 2285 */
2286 WebInspector.DOMModel.fromTarget = function(target) 2286 WebInspector.DOMModel.fromTarget = function(target)
2287 { 2287 {
2288 return /** @type {?WebInspector.DOMModel} */ (target.model(WebInspector.DOMM odel)); 2288 return /** @type {?WebInspector.DOMModel} */ (target.model(WebInspector.DOMM odel));
2289 } 2289 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/inspector/InspectorInstrumentation.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698