Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(556)

Unified Diff: Source/WebCore/inspector/front-end/Popover.js

Issue 7778006: Merge 93868 - Web Inspector: in some cases Popover code is failing to calculate popover box posit... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/835/
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698