OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple 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 | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. 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 2559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2570 | 2570 |
2571 /** | 2571 /** |
2572 * @param {string} moveDirection | 2572 * @param {string} moveDirection |
2573 * @return {?WebInspector.StylePropertyTreeElement} | 2573 * @return {?WebInspector.StylePropertyTreeElement} |
2574 */ | 2574 */ |
2575 _findSibling: function(moveDirection) | 2575 _findSibling: function(moveDirection) |
2576 { | 2576 { |
2577 var target = this; | 2577 var target = this; |
2578 do { | 2578 do { |
2579 target = (moveDirection === "forward" ? target.nextSibling : target.
previousSibling); | 2579 target = (moveDirection === "forward" ? target.nextSibling : target.
previousSibling); |
2580 } while(target && target.inherited()); | 2580 } while (target && target.inherited()); |
2581 | 2581 |
2582 return target; | 2582 return target; |
2583 }, | 2583 }, |
2584 | 2584 |
2585 /** | 2585 /** |
2586 * @param {string} userInput | 2586 * @param {string} userInput |
2587 * @param {!WebInspector.StylePropertyTreeElement.Context} context | 2587 * @param {!WebInspector.StylePropertyTreeElement.Context} context |
2588 * @param {string} moveDirection | 2588 * @param {string} moveDirection |
2589 */ | 2589 */ |
2590 editingCommitted: function(userInput, context, moveDirection) | 2590 editingCommitted: function(userInput, context, moveDirection) |
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3090 WebInspector.context.addFlavorChangeListener(WebInspector.DOMNode, onNodeCha
nged); | 3090 WebInspector.context.addFlavorChangeListener(WebInspector.DOMNode, onNodeCha
nged); |
3091 onNodeChanged(); | 3091 onNodeChanged(); |
3092 return button; | 3092 return button; |
3093 | 3093 |
3094 function onNodeChanged() | 3094 function onNodeChanged() |
3095 { | 3095 { |
3096 var node = WebInspector.context.flavor(WebInspector.DOMNode); | 3096 var node = WebInspector.context.flavor(WebInspector.DOMNode); |
3097 button.setEnabled(!!node); | 3097 button.setEnabled(!!node); |
3098 } | 3098 } |
3099 } | 3099 } |
OLD | NEW |