Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1206 var paddingLeftValue = window.getComputedStyle(this._listItemNode).paddingLe ft; | 1206 var paddingLeftValue = window.getComputedStyle(this._listItemNode).paddingLe ft; |
| 1207 console.assert(paddingLeftValue.endsWith('px')); | 1207 console.assert(paddingLeftValue.endsWith('px')); |
| 1208 var computedLeftPadding = parseFloat(paddingLeftValue); | 1208 var computedLeftPadding = parseFloat(paddingLeftValue); |
| 1209 var left = this._listItemNode.totalOffsetLeft() + computedLeftPadding; | 1209 var left = this._listItemNode.totalOffsetLeft() + computedLeftPadding; |
| 1210 return event.pageX >= left && event.pageX <= left + UI.TreeElement._ArrowTog gleWidth && this._expandable; | 1210 return event.pageX >= left && event.pageX <= left + UI.TreeElement._ArrowTog gleWidth && this._expandable; |
| 1211 } | 1211 } |
| 1212 }; | 1212 }; |
| 1213 | 1213 |
| 1214 /** @const */ | 1214 /** @const */ |
| 1215 UI.TreeElement._ArrowToggleWidth = 10; | 1215 UI.TreeElement._ArrowToggleWidth = 10; |
| 1216 | |
| 1217 (function() { | |
|
pfeldman
2017/02/13 18:18:12
Is this temporary? I wish all the generic images w
| |
| 1218 var img = new Image(); | |
| 1219 if (window.devicePixelRatio > 1) | |
| 1220 img.src = 'Images/treeoutlineTriangles_2x.png'; | |
| 1221 else | |
| 1222 img.src = 'Images/treeoutlineTriangles.png'; | |
| 1223 UI.TreeElement._imagePreload = img; | |
| 1224 })(); | |
| OLD | NEW |