Index: Source/WebCore/inspector/front-end/Popover.js |
=================================================================== |
--- Source/WebCore/inspector/front-end/Popover.js (revision 93953) |
+++ Source/WebCore/inspector/front-end/Popover.js (working copy) |
@@ -94,7 +94,7 @@ |
var anchorBox = anchorElement.offsetRelativeToWindow(window); |
anchorBox.width = anchorElement.offsetWidth; |
anchorBox.height = anchorElement.offsetHeight; |
- while (anchorElement !== anchorElement.ownerDocument.body) { |
+ while (anchorElement && anchorElement !== anchorElement.ownerDocument.body) { |
if (anchorElement.scrollLeft) |
anchorBox.x -= anchorElement.scrollLeft; |
if (anchorElement.scrollTop) |