Changeset 83865 in webkit


Ignore:
Timestamp:
Apr 14, 2011 9:47:34 AM (13 years ago)
Author:
apavlov@chromium.org
Message:

2011-04-14 Alexander Pavlov <apavlov@chromium.org>

Reviewed by Pavel Feldman.

Web Inspector: Content area highlight does not cover scrollbars
https://bugs.webkit.org/show_bug.cgi?id=58528

  • inspector/DOMNodeHighlighter.cpp: (WebCore::DOMNodeHighlighter::DrawNodeHighlight):
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r83864 r83865  
     12011-04-14  Alexander Pavlov  <apavlov@chromium.org>
     2
     3        Reviewed by Pavel Feldman.
     4
     5        Web Inspector: Content area highlight does not cover scrollbars
     6        https://bugs.webkit.org/show_bug.cgi?id=58528
     7
     8        * inspector/DOMNodeHighlighter.cpp:
     9        (WebCore::DOMNodeHighlighter::DrawNodeHighlight):
     10
    1112011-04-14  Pavel Podivilov  <podivilov@chromium.org>
    212
  • trunk/Source/WebCore/inspector/DOMNodeHighlighter.cpp

    r81784 r83865  
    244244        RenderBox* renderBox = toRenderBox(renderer);
    245245
     246        // RenderBox returns the "pure" content area box, exclusive of the scrollbars (if present), which also count towards the content area in CSS.
    246247        IntRect contentBox = renderBox->contentBoxRect();
     248        contentBox.setWidth(contentBox.width() + renderBox->verticalScrollbarWidth());
     249        contentBox.setHeight(contentBox.height() + renderBox->horizontalScrollbarHeight());
    247250
    248251        IntRect paddingBox(contentBox.x() - renderBox->paddingLeft(), contentBox.y() - renderBox->paddingTop(),
Note: See TracChangeset for help on using the changeset viewer.