Changeset 82773 in webkit


Ignore:
Timestamp:
Apr 2, 2011 1:30:01 PM (13 years ago)
Author:
weinig@apple.com
Message:

2011-04-02 Sam Weinig <sam@webkit.org>

Reviewed by Dan Bernstein.

Implement WKBundleFrameHasHorizontalScrollbar/WKBundleFrameHasVerticalScrollbar
<rdar://problem/9225772>
https://bugs.webkit.org/show_bug.cgi?id=57709

  • WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp: (WKBundleFrameHasHorizontalScrollbar): (WKBundleFrameHasVerticalScrollbar):
  • WebProcess/InjectedBundle/API/c/WKBundleFrame.h:
  • WebProcess/WebPage/WebFrame.cpp: (WebKit::WebFrame::hasHorizontalScrollbar): (WebKit::WebFrame::hasVerticalScrollbar):
  • WebProcess/WebPage/WebFrame.h:
Location:
trunk/Source/WebKit2
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r82763 r82773  
     12011-04-02  Sam Weinig  <sam@webkit.org>
     2
     3        Reviewed by Dan Bernstein.
     4
     5        Implement WKBundleFrameHasHorizontalScrollbar/WKBundleFrameHasVerticalScrollbar
     6        <rdar://problem/9225772>
     7        https://bugs.webkit.org/show_bug.cgi?id=57709
     8
     9        * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
     10        (WKBundleFrameHasHorizontalScrollbar):
     11        (WKBundleFrameHasVerticalScrollbar):
     12        * WebProcess/InjectedBundle/API/c/WKBundleFrame.h:
     13        * WebProcess/WebPage/WebFrame.cpp:
     14        (WebKit::WebFrame::hasHorizontalScrollbar):
     15        (WebKit::WebFrame::hasVerticalScrollbar):
     16        * WebProcess/WebPage/WebFrame.h:
     17
    1182011-04-01  Jon Lee  <jonlee@apple.com>
    219
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp

    r79793 r82773  
    202202}
    203203
     204bool WKBundleFrameHasHorizontalScrollbar(WKBundleFrameRef frameRef)
     205{
     206    return toImpl(frameRef)->hasHorizontalScrollbar();
     207}
     208
     209bool WKBundleFrameHasVerticalScrollbar(WKBundleFrameRef frameRef)
     210{
     211    return toImpl(frameRef)->hasVerticalScrollbar();
     212}
     213
    204214bool WKBundleFrameGetDocumentBackgroundColor(WKBundleFrameRef frameRef, double* red, double* green, double* blue, double* alpha)
    205215{
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleFrame.h

    r77856 r82773  
    6464WK_EXPORT WKSize WKBundleFrameGetScrollOffset(WKBundleFrameRef frame);
    6565
     66WK_EXPORT bool WKBundleFrameHasHorizontalScrollbar(WKBundleFrameRef frame);
     67WK_EXPORT bool WKBundleFrameHasVerticalScrollbar(WKBundleFrameRef frame);
     68
    6669WK_EXPORT bool WKBundleFrameGetDocumentBackgroundColor(WKBundleFrameRef frame, double* red, double* green, double* blue, double* alpha);
    6770
  • trunk/Source/WebKit2/WebProcess/WebPage/WebFrame.cpp

    r81814 r82773  
    513513}
    514514
     515bool WebFrame::hasHorizontalScrollbar() const
     516{
     517    if (!m_coreFrame)
     518        return false;
     519
     520    FrameView* view = m_coreFrame->view();
     521    if (!view)
     522        return false;
     523
     524    return view->horizontalScrollbar();
     525}
     526
     527bool WebFrame::hasVerticalScrollbar() const
     528{
     529    if (!m_coreFrame)
     530        return false;
     531
     532    FrameView* view = m_coreFrame->view();
     533    if (!view)
     534        return false;
     535
     536    return view->verticalScrollbar();
     537}
     538
    515539bool WebFrame::getDocumentBackgroundColor(double* red, double* green, double* blue, double* alpha)
    516540{
  • trunk/Source/WebKit2/WebProcess/WebPage/WebFrame.h

    r81814 r82773  
    9494    WebCore::IntRect visibleContentBoundsExcludingScrollbars() const;
    9595    WebCore::IntSize scrollOffset() const;
     96    bool hasHorizontalScrollbar() const;
     97    bool hasVerticalScrollbar() const;
    9698    bool getDocumentBackgroundColor(double* red, double* green, double* blue, double* alpha);
    9799
Note: See TracChangeset for help on using the changeset viewer.