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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 * @param {WebInspector.DOMNode} targetNode | 597 * @param {WebInspector.DOMNode} targetNode |
598 * @param {?WebInspector.DOMNode} anchorNode | 598 * @param {?WebInspector.DOMNode} anchorNode |
599 * @param {function(?Protocol.Error, DOMAgent.NodeId=)=} callback | 599 * @param {function(?Protocol.Error, DOMAgent.NodeId=)=} callback |
600 */ | 600 */ |
601 moveTo: function(targetNode, anchorNode, callback) | 601 moveTo: function(targetNode, anchorNode, callback) |
602 { | 602 { |
603 DOMAgent.moveTo(this.id, targetNode.id, anchorNode ? anchorNode.id : und
efined, WebInspector.domAgent._markRevision(this, callback)); | 603 DOMAgent.moveTo(this.id, targetNode.id, anchorNode ? anchorNode.id : und
efined, WebInspector.domAgent._markRevision(this, callback)); |
604 }, | 604 }, |
605 | 605 |
606 /** | 606 /** |
| 607 * @param {function(?Protocol.Error, DOMAgent.NodeId=)} callback |
| 608 */ |
| 609 findRelayoutBoundary: function(callback) |
| 610 { |
| 611 DOMAgent.relayoutBoundaryForNode(this.id, callback); |
| 612 }, |
| 613 |
| 614 /** |
607 * @return {boolean} | 615 * @return {boolean} |
608 */ | 616 */ |
609 isXMLNode: function() | 617 isXMLNode: function() |
610 { | 618 { |
611 return !!this.ownerDocument && !!this.ownerDocument.xmlVersion; | 619 return !!this.ownerDocument && !!this.ownerDocument.xmlVersion; |
612 }, | 620 }, |
613 | 621 |
614 /** | 622 /** |
615 * @param {boolean} optimized | 623 * @param {boolean} optimized |
616 * @return {string} | 624 * @return {string} |
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1556 shadowRootPopped: function(hostId, rootId) | 1564 shadowRootPopped: function(hostId, rootId) |
1557 { | 1565 { |
1558 this._domAgent._shadowRootPopped(hostId, rootId); | 1566 this._domAgent._shadowRootPopped(hostId, rootId); |
1559 } | 1567 } |
1560 } | 1568 } |
1561 | 1569 |
1562 /** | 1570 /** |
1563 * @type {?WebInspector.DOMAgent} | 1571 * @type {?WebInspector.DOMAgent} |
1564 */ | 1572 */ |
1565 WebInspector.domAgent = null; | 1573 WebInspector.domAgent = null; |
OLD | NEW |