OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |