[Webkit-unassigned] [Bug 133923] Web Inspector: Inspecting <aside> produces wrong highlight rectangle.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 20 11:40:00 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=133923





--- Comment #2 from Joseph Pecoraro <joepeck at webkit.org>  2014-06-20 11:40:21 PST ---
The inspector highlight information comes from the renderer. The RenderBox for the <aside> seems to say it is huge. renderBox->marginRight() is 31104.

lldb> 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->marginTop(), renderBox->marginRight(), renderBox->marginBottom(), renderBox->marginLeft());
   140     
-> 141                 if (!renderBox->isOutOfFlowPositioned() && region) {
   142                     RenderBox::LogicalExtentComputedValues computedValues;
   143                     renderBox->computeLogicalWidthInRegion(computedValues, region);
   144                     margins.mutableLogicalLeft(renderBox->style().writingMode()) = computedValues.m_margins.m_start;


lldb> 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)
  }
...

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list