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

Side by Side Diff: Source/devtools/front_end/sdk/DOMModel.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) 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 319
320 var current = this; 320 var current = this;
321 while (current && !current.isShadowRoot()) 321 while (current && !current.isShadowRoot())
322 current = current.parentNode; 322 current = current.parentNode;
323 return current; 323 return current;
324 }, 324 },
325 325
326 /** 326 /**
327 * @return {?WebInspector.DOMNode} 327 * @return {?WebInspector.DOMNode}
328 */ 328 */
329 ancestorUserAgentShadowRoot: function() 329 ancestorClosedShadowRoot: function()
330 { 330 {
331 var ancestorShadowRoot = this.ancestorShadowRoot(); 331 var ancestorShadowRoot = this.ancestorShadowRoot();
332 if (!ancestorShadowRoot) 332 if (!ancestorShadowRoot)
333 return null; 333 return null;
334 return ancestorShadowRoot.shadowRootType() === WebInspector.DOMNode.Shad owRootTypes.UserAgent ? ancestorShadowRoot : null; 334 return ancestorShadowRoot.shadowRootType() === WebInspector.DOMNode.Shad owRootTypes.UserAgent ? ancestorShadowRoot : null;
335 }, 335 },
336 336
337 /** 337 /**
338 * @return {boolean} 338 * @return {boolean}
339 */ 339 */
(...skipping 1870 matching lines...) Expand 10 before | Expand all | Expand 10 after
2210 2210
2211 /** 2211 /**
2212 * @override 2212 * @override
2213 * @param {!PageAgent.FrameId} frameId 2213 * @param {!PageAgent.FrameId} frameId
2214 */ 2214 */
2215 highlightFrame: function(frameId) 2215 highlightFrame: function(frameId)
2216 { 2216 {
2217 this._agent.highlightFrame(frameId, WebInspector.Color.PageHighlight.Con tent.toProtocolRGBA(), WebInspector.Color.PageHighlight.ContentOutline.toProtoco lRGBA()); 2217 this._agent.highlightFrame(frameId, WebInspector.Color.PageHighlight.Con tent.toProtocolRGBA(), WebInspector.Color.PageHighlight.ContentOutline.toProtoco lRGBA());
2218 } 2218 }
2219 } 2219 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/elements/ElementsTreeOutline.js ('k') | Source/modules/accessibility/AXRenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698