⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 170665 in webkit


Ignore:
Timestamp:
Jul 1, 2014, 2:12:08 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: Selected DOM element highlights invisible near bottom of the viewport (topContentInset?)
​https://bugs.webkit.org/show_bug.cgi?id=133818

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2014-07-01
Reviewed by Beth Dakin.

  • inspector/InspectorOverlay.cpp:

(WebCore::InspectorOverlay::update):
Take the topContentInset into account when sizing the InspectorOverlay's FrameView.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r170661 r170665  
     12014-07-01  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Web Inspector: Selected DOM element highlights invisible near bottom of the viewport (topContentInset?)
     4        https://bugs.webkit.org/show_bug.cgi?id=133818
     5
     6        Reviewed by Beth Dakin.
     7
     8        * inspector/InspectorOverlay.cpp:
     9        (WebCore::InspectorOverlay::update):
     10        Take the topContentInset into account when sizing the InspectorOverlay's FrameView.
     11
    1122014-07-01  Chris Fleizach  <cfleizach@apple.com>
    213
  • trunk/Source/WebCore/inspector/InspectorOverlay.cpp

    r170406 r170665  
    6464namespace WebCore {
    6565
    66 namespace {
    67 
    68 Path quadToPath(const FloatQuad& quad)
     66static Path quadToPath(const FloatQuad& quad)
    6967{
    7068    Path quadPath;
    … …  
    7775}
    7876
    79 void drawOutlinedQuad(GraphicsContext* context, const FloatQuad& quad, const Color& fillColor, const Color& outlineColor)
     77static void drawOutlinedQuad(GraphicsContext* context, const FloatQuad& quad, const Color& fillColor, const Color& outlineColor)
    8078{
    8179    static const int outlineThickness = 2;
    … …  
    238236}
    239237
    240 } // anonymous namespace
    241 
    242238InspectorOverlay::InspectorOverlay(Page& page, InspectorClient* client)
    243239    : m_page(page)
    … …  
    349345
    350346    FrameView* overlayView = overlayPage()->mainFrame().view();
    351     IntSize viewportSize = view->visibleContentRect().size();
    352     IntSize frameViewFullSize = view->visibleContentRectIncludingScrollbars().size();
     347    IntSize viewportSize = view->unscaledTotalVisibleContentSize();
     348    IntSize frameViewFullSize = view->unscaledTotalVisibleContentSize(ScrollableArea::IncludeScrollbars);
    353349    overlayPage()->setPageScaleFactor(m_page.pageScaleFactor(), IntPoint());
    354350    frameViewFullSize.scale(m_page.pageScaleFactor());
Note: See TracChangeset for help on using the changeset viewer.