<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>60630</bug_id>
          
          <creation_ts>2011-05-11 08:50:32 -0700</creation_ts>
          <short_desc>Web Inspector: hovering over linkified nodes in the UI does not highlight elements on the page.</short_desc>
          <delta_ts>2011-06-21 01:43:52 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector (Deprecated)</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Pavel Feldman">pfeldman</reporter>
          <assigned_to name="Pavel Feldman">pfeldman</assigned_to>
          <cc>apavlov</cc>
    
    <cc>bweinstein</cc>
    
    <cc>joepeck</cc>
    
    <cc>keishi</cc>
    
    <cc>loislo</cc>
    
    <cc>pfeldman</cc>
    
    <cc>pmuellr</cc>
    
    <cc>rik</cc>
    
    <cc>timothy</cc>
    
    <cc>yurys</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>401996</commentid>
    <comment_count>0</comment_count>
    <who name="Pavel Feldman">pfeldman</who>
    <bug_when>2011-05-11 08:50:32 -0700</bug_when>
    <thetext>Patch to follow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>401998</commentid>
    <comment_count>1</comment_count>
      <attachid>93125</attachid>
    <who name="Pavel Feldman">pfeldman</who>
    <bug_when>2011-05-11 08:55:12 -0700</bug_when>
    <thetext>Created attachment 93125
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>402141</commentid>
    <comment_count>2</comment_count>
      <attachid>93125</attachid>
    <who name="Yury Semikhatsky">yurys</who>
    <bug_when>2011-05-11 11:56:37 -0700</bug_when>
    <thetext>Comment on attachment 93125
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=93125&amp;action=review

&gt; Source/WebCore/inspector/front-end/inspector.js:322
&gt; +        element.addEventListener(&quot;mouseover&quot;, this.highlightDOMNode.bind(this, nodeId, &quot;all&quot;), false);

How does it differ from the current behavior? Looking at inspector.js:308 I see this:
DOMAgent.highlightNode(nodeId, mode || &quot;all&quot;); which is equivalent to passing &quot;all&quot; explicitely. Should we require mode parameter?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>402161</commentid>
    <comment_count>3</comment_count>
      <attachid>93125</attachid>
    <who name="Alexander Pavlov (apavlov)">apavlov</who>
    <bug_when>2011-05-11 12:24:16 -0700</bug_when>
    <thetext>Comment on attachment 93125
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=93125&amp;action=review

&gt;&gt; Source/WebCore/inspector/front-end/inspector.js:322
&gt;&gt; +        element.addEventListener(&quot;mouseover&quot;, this.highlightDOMNode.bind(this, nodeId, &quot;all&quot;), false);
&gt; 
&gt; How does it differ from the current behavior? Looking at inspector.js:308 I see this:
&gt; DOMAgent.highlightNode(nodeId, mode || &quot;all&quot;); which is equivalent to passing &quot;all&quot; explicitely. Should we require mode parameter?

In the case of a bound event handler, the mouse event becomes the second parameter which is far from &quot;all&quot;. We should doubtfully require the second parameter, as highlightDOMNode(0) results in hiding the highlight (and having the second &quot;mode&quot; parameter is awkward in this case.) Incidentally, I came up with the same solution today while rewriting the StylesSidebarPane.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>402606</commentid>
    <comment_count>4</comment_count>
    <who name="Yury Semikhatsky">yurys</who>
    <bug_when>2011-05-11 20:38:49 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (From update of attachment 93125 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=93125&amp;action=review
&gt; 
&gt; &gt;&gt; Source/WebCore/inspector/front-end/inspector.js:322
&gt; &gt;&gt; +        element.addEventListener(&quot;mouseover&quot;, this.highlightDOMNode.bind(this, nodeId, &quot;all&quot;), false);
&gt; &gt; 
&gt; &gt; How does it differ from the current behavior? Looking at inspector.js:308 I see this:
&gt; &gt; DOMAgent.highlightNode(nodeId, mode || &quot;all&quot;); which is equivalent to passing &quot;all&quot; explicitely. Should we require mode parameter?
&gt; 
&gt; In the case of a bound event handler, the mouse event becomes the second parameter which is far from &quot;all&quot;. We should doubtfully require the second parameter, as highlightDOMNode(0) results in hiding the highlight (and having the second &quot;mode&quot; parameter is awkward in this case.) 

Sounds like the method needs to be split into highlightXXX and hideHighlightXX.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>402643</commentid>
    <comment_count>5</comment_count>
      <attachid>93125</attachid>
    <who name="Yury Semikhatsky">yurys</who>
    <bug_when>2011-05-11 21:47:40 -0700</bug_when>
    <thetext>Comment on attachment 93125
Patch

r+ since it&apos;s a regression. The method should be split in a separate change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>423093</commentid>
    <comment_count>6</comment_count>
    <who name="Pavel Feldman">pfeldman</who>
    <bug_when>2011-06-18 02:27:31 -0700</bug_when>
    <thetext>I just checken on a canary and it does not seem to work. Reopening. I&apos;ll rebase and land.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>424345</commentid>
    <comment_count>7</comment_count>
      <attachid>93125</attachid>
    <who name="Pavel Feldman">pfeldman</who>
    <bug_when>2011-06-21 01:43:43 -0700</bug_when>
    <thetext>Comment on attachment 93125
Patch

Clearing flags on attachment: 93125

Committed r89342: &lt;http://trac.webkit.org/changeset/89342&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>424346</commentid>
    <comment_count>8</comment_count>
    <who name="Pavel Feldman">pfeldman</who>
    <bug_when>2011-06-21 01:43:52 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>93125</attachid>
            <date>2011-05-11 08:55:12 -0700</date>
            <delta_ts>2011-06-21 01:43:43 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-60630-20110511085511.patch</filename>
            <type>text/plain</type>
            <size>1579</size>
            <attacher name="Pavel Feldman">pfeldman</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogODYwMjcKZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJDb3JlL0No
YW5nZUxvZyBiL1NvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwppbmRleCAzNjA5OGVjZDdlMzlkZTY0
NjMwNzUxZjdiMmQ0OTQxZmFmM2EyMjBkLi42YjA1YWNhMTIzMjBiZjU1YzM0MGU3NmMwOWI4YzJj
ZWU5MzE3NDIxIDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvU291
cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTQgQEAKKzIwMTEtMDUtMTEgIFBhdmVs
IEZlbGRtYW4gIDxwZmVsZG1hbkBjaHJvbWl1bS5vcmc+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkg
Tk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgV2ViIEluc3BlY3RvcjogaG92ZXJpbmcgb3ZlciBs
aW5raWZpZWQgbm9kZXMKKyAgICAgICAgaW4gdGhlIFVJIGRvZXMgbm90IGhpZ2hsaWdodCBlbGVt
ZW50cyBvbiB0aGUgcGFnZS4KKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19i
dWcuY2dpP2lkPTYwNjMwCisKKyAgICAgICAgKiBp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