| 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 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 589 Components.DOMPresentationUtils.buildImagePreviewContents( | 589 Components.DOMPresentationUtils.buildImagePreviewContents( |
| 590 node.target(), link[Elements.ElementsTreeElement.HrefSymbol], true, sh
owPopover); | 590 node.target(), link[Elements.ElementsTreeElement.HrefSymbol], true, sh
owPopover); |
| 591 } | 591 } |
| 592 | 592 |
| 593 /** | 593 /** |
| 594 * @param {!Element=} contents | 594 * @param {!Element=} contents |
| 595 */ | 595 */ |
| 596 function showPopover(contents) { | 596 function showPopover(contents) { |
| 597 if (!contents) | 597 if (!contents) |
| 598 return; | 598 return; |
| 599 popover.setCanShrink(false); | |
| 600 popover.showForAnchor(contents, link); | 599 popover.showForAnchor(contents, link); |
| 601 } | 600 } |
| 602 } | 601 } |
| 603 | 602 |
| 604 _jumpToSearchResult(index) { | 603 _jumpToSearchResult(index) { |
| 605 this._currentSearchResultIndex = (index + this._searchResults.length) % this
._searchResults.length; | 604 this._currentSearchResultIndex = (index + this._searchResults.length) % this
._searchResults.length; |
| 606 this._highlightCurrentSearchResult(); | 605 this._highlightCurrentSearchResult(); |
| 607 } | 606 } |
| 608 | 607 |
| 609 /** | 608 /** |
| (...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1107 * @param {!SDK.DOMNode} node | 1106 * @param {!SDK.DOMNode} node |
| 1108 * @return {?{title: string, color: string}} | 1107 * @return {?{title: string, color: string}} |
| 1109 */ | 1108 */ |
| 1110 decorate(node) { | 1109 decorate(node) { |
| 1111 return { | 1110 return { |
| 1112 color: 'orange', | 1111 color: 'orange', |
| 1113 title: Common.UIString('Element state: %s', ':' + SDK.CSSModel.fromNode(no
de).pseudoState(node).join(', :')) | 1112 title: Common.UIString('Element state: %s', ':' + SDK.CSSModel.fromNode(no
de).pseudoState(node).join(', :')) |
| 1114 }; | 1113 }; |
| 1115 } | 1114 } |
| 1116 }; | 1115 }; |
| OLD | NEW |