Changeset 82773 in webkit
- Timestamp:
- Apr 2, 2011 1:30:01 PM (13 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r82763 r82773 1 2011-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 1 18 2011-04-01 Jon Lee <jonlee@apple.com> 2 19 -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp
r79793 r82773 202 202 } 203 203 204 bool WKBundleFrameHasHorizontalScrollbar(WKBundleFrameRef frameRef) 205 { 206 return toImpl(frameRef)->hasHorizontalScrollbar(); 207 } 208 209 bool WKBundleFrameHasVerticalScrollbar(WKBundleFrameRef frameRef) 210 { 211 return toImpl(frameRef)->hasVerticalScrollbar(); 212 } 213 204 214 bool WKBundleFrameGetDocumentBackgroundColor(WKBundleFrameRef frameRef, double* red, double* green, double* blue, double* alpha) 205 215 { -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleFrame.h
r77856 r82773 64 64 WK_EXPORT WKSize WKBundleFrameGetScrollOffset(WKBundleFrameRef frame); 65 65 66 WK_EXPORT bool WKBundleFrameHasHorizontalScrollbar(WKBundleFrameRef frame); 67 WK_EXPORT bool WKBundleFrameHasVerticalScrollbar(WKBundleFrameRef frame); 68 66 69 WK_EXPORT bool WKBundleFrameGetDocumentBackgroundColor(WKBundleFrameRef frame, double* red, double* green, double* blue, double* alpha); 67 70 -
trunk/Source/WebKit2/WebProcess/WebPage/WebFrame.cpp
r81814 r82773 513 513 } 514 514 515 bool 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 527 bool 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 515 539 bool WebFrame::getDocumentBackgroundColor(double* red, double* green, double* blue, double* alpha) 516 540 { -
trunk/Source/WebKit2/WebProcess/WebPage/WebFrame.h
r81814 r82773 94 94 WebCore::IntRect visibleContentBoundsExcludingScrollbars() const; 95 95 WebCore::IntSize scrollOffset() const; 96 bool hasHorizontalScrollbar() const; 97 bool hasVerticalScrollbar() const; 96 98 bool getDocumentBackgroundColor(double* red, double* green, double* blue, double* alpha); 97 99
Note: See TracChangeset
for help on using the changeset viewer.