Not reviewed: follow up to inspector's r108331, using more general condition.
authorpfeldman@chromium.org <pfeldman@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 24 Feb 2012 11:58:30 +0000 (11:58 +0000)
committerpfeldman@chromium.org <pfeldman@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 24 Feb 2012 11:58:30 +0000 (11:58 +0000)
Patch by Pavel Feldman <pfeldman@chromium.org> on 2012-02-24

* inspector/front-end/JavaScriptSourceFrame.js:
(WebInspector.JavaScriptSourceFrame.prototype._getPopoverAnchor):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108769 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/inspector/front-end/JavaScriptSourceFrame.js

index ab0d66f..3f61fa1 100644 (file)
@@ -1,3 +1,10 @@
+2012-02-24  Pavel Feldman  <pfeldman@chromium.org>
+
+        Not reviewed: follow up to inspector's r108331, using more general condition.
+
+        * inspector/front-end/JavaScriptSourceFrame.js:
+        (WebInspector.JavaScriptSourceFrame.prototype._getPopoverAnchor):
+
 2012-02-24  Kentaro Hara  <haraken@chromium.org>
 
         Move WebGL APIs from DOMWindow.idl to DOMWindowWebGL.idl
index 719f5b6..c8b9528 100644 (file)
@@ -274,7 +274,7 @@ WebInspector.JavaScriptSourceFrame.prototype = {
         if (element.hasStyleClass("webkit-javascript-keyword"))
             return element.textContent === "this" ? element : null;
 
-        if (element !== lineElement || element.querySelectorAll(".source-frame-token").length)
+        if (element !== lineElement || lineElement.childElementCount)
             return null;
 
         // Handle non-highlighted case