<?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>133923</bug_id>
          
          <creation_ts>2014-06-14 22:42:41 -0700</creation_ts>
          <short_desc>Web Inspector: Inspecting &lt;aside&gt; produces wrong highlight rectangle.</short_desc>
          <delta_ts>2015-11-02 15:05:55 -0800</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</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://jsfiddle.net/b9WCW/1/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="alan">zalan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>graouts</cc>
    
    <cc>joepeck</cc>
    
    <cc>timothy</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1015749</commentid>
    <comment_count>0</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2014-06-14 22:42:41 -0700</bug_when>
    <thetext>1. load http://jsfiddle.net/b9WCW/1/
2. inspect &lt;aside class=side&gt;
-&gt;highlight rectangle expands beyond the &lt;aside&gt; box.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1015750</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2014-06-14 22:42:52 -0700</bug_when>
    <thetext>&lt;rdar://problem/17317549&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1016977</commentid>
    <comment_count>2</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2014-06-20 11:40:21 -0700</bug_when>
    <thetext>The inspector highlight information comes from the renderer. The RenderBox for the &lt;aside&gt; seems to say it is huge. renderBox-&gt;marginRight() is 31104.

lldb&gt; f
frame #0: 0x00000001142908c5 WebCore`WebCore::(anonymous namespace)::buildRendererHighlight(renderer=0x00007ff8d17ad960, region=0x0000000000000000, highlightConfig=0x00007ff8d141d970, highlight=0x00007fff54751e80) + 741 at InspectorOverlay.cpp:141
   138 	
   139 	            LayoutBoxExtent margins(renderBox-&gt;marginTop(), renderBox-&gt;marginRight(), renderBox-&gt;marginBottom(), renderBox-&gt;marginLeft());
   140 	
-&gt; 141 	            if (!renderBox-&gt;isOutOfFlowPositioned() &amp;&amp; region) {
   142 	                RenderBox::LogicalExtentComputedValues computedValues;
   143 	                renderBox-&gt;computeLogicalWidthInRegion(computedValues, region);
   144 	                margins.mutableLogicalLeft(renderBox-&gt;style().writingMode()) = computedValues.m_margins.m_start;


lldb&gt; p *renderBox
...
  m_frameRect = {
    m_location = {
      m_x = (m_value = 31296)
      m_y = (m_value = 192)
    }
    m_size = {
      m_width = (m_value = 19712)
      m_height = (m_value = 5760)
    }
  }
  m_marginBox = {
    m_top = (m_value = 0)
    m_right = (m_value = 31104)
    m_bottom = (m_value = 0)
    m_left = (m_value = 0)
  }
...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1016978</commentid>
    <comment_count>3</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2014-06-20 11:41:23 -0700</bug_when>
    <thetext>omg that margin!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1016987</commentid>
    <comment_count>4</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2014-06-20 12:03:13 -0700</bug_when>
    <thetext>Can reproduce without &lt;aside&gt; just pure &lt;div&gt;s. Seems to affect a div with overflow:hidden next to a float:

&lt;style&gt;
div.one { float: left; width: 3em; }
div.two { overflow: hidden; }
&lt;/style&gt;
&lt;div class=&quot;one&quot;&gt;&lt;p&gt;x&lt;/p&gt;&lt;/div&gt;
&lt;div class=&quot;two&quot;&gt;&lt;p&gt;x&lt;/p&gt;&lt;/div&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1017460</commentid>
    <comment_count>5</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2014-06-22 18:13:33 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; The inspector highlight information comes from the renderer. The RenderBox for the &lt;aside&gt; seems to say it is huge. renderBox-&gt;marginRight() is 31104.
&gt; 
&gt; lldb&gt; f
&gt; frame #0: 0x00000001142908c5 WebCore`WebCore::(anonymous namespace)::buildRendererHighlight(renderer=0x00007ff8d17ad960, region=0x0000000000000000, highlightConfig=0x00007ff8d141d970, highlight=0x00007fff54751e80) + 741 at InspectorOverlay.cpp:141
&gt;    138     
&gt;    139                 LayoutBoxExtent margins(renderBox-&gt;marginTop(), renderBox-&gt;marginRight(), renderBox-&gt;marginBottom(), renderBox-&gt;marginLeft());
&gt;    140     
&gt; -&gt; 141                 if (!renderBox-&gt;isOutOfFlowPositioned() &amp;&amp; region) {
&gt;    142                     RenderBox::LogicalExtentComputedValues computedValues;
&gt;    143                     renderBox-&gt;computeLogicalWidthInRegion(computedValues, region);
&gt;    144                     margins.mutableLogicalLeft(renderBox-&gt;style().writingMode()) = computedValues.m_margins.m_start;
&gt; 
&gt; 
&gt; lldb&gt; p *renderBox
&gt; ...
&gt;   m_frameRect = {
&gt;     m_location = {
&gt;       m_x = (m_value = 31296)
&gt;       m_y = (m_value = 192)
&gt;     }
&gt;     m_size = {
&gt;       m_width = (m_value = 19712)
&gt;       m_height = (m_value = 5760)
&gt;     }
&gt;   }
&gt;   m_marginBox = {
&gt;     m_top = (m_value = 0)
&gt;     m_right = (m_value = 31104)
&gt;     m_bottom = (m_value = 0)
&gt;     m_left = (m_value = 0)
&gt;   }
&gt; ...
You don&apos;t seem to have the LayoutUnit &lt;-&gt; CSS px conversion lldb helper applied. 31296 is 489px which looks to me like normal right margin value.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>