* Polyfill for Node.getBoundingClientRect API. * @this {Element} * @return {ClientRect|LayoutRectDef}
()
| 21 | * @return {ClientRect|LayoutRectDef} |
| 22 | */ |
| 23 | function getBoundingClientRect() { |
| 24 | // eslint-disable-next-line local/no-invalid-this |
| 25 | if (mode.isEsm() || isConnectedNode(this)) { |
| 26 | return nativeClientRect.call(this); |
| 27 | } |
| 28 | |
| 29 | return layoutRectLtwh(0, 0, 0, 0); |
| 30 | } |
| 31 | |
| 32 | /** |
| 33 | * Determines if this polyfill should be installed. |
nothing calls this directly
no test coverage detected