Changeset 95307 in webkit


Ignore:
Timestamp:
Sep 16, 2011 11:32:01 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

Unreviewed, rolling out r95227.
http://trac.webkit.org/changeset/95227
https://bugs.webkit.org/show_bug.cgi?id=68262

Broke a bunch of SVG tests (Requested by andersca on #webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-09-16

  • platform/ScrollView.cpp:

(WebCore::ScrollView::contentsSize):
(WebCore::ScrollView::wheelEvent):

  • platform/ScrollView.h:
  • platform/mac/ScrollViewMac.mm:

(WebCore::ScrollView::platformContentsSize):

  • platform/wx/ScrollViewWx.cpp:

(WebCore::ScrollView::platformContentsSize):

Location:
trunk/Source/WebCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r95306 r95307  
     12011-09-16  Sheriff Bot  <webkit.review.bot@gmail.com>
     2
     3        Unreviewed, rolling out r95227.
     4        http://trac.webkit.org/changeset/95227
     5        https://bugs.webkit.org/show_bug.cgi?id=68262
     6
     7        Broke a bunch of SVG tests (Requested by andersca on #webkit).
     8
     9        * platform/ScrollView.cpp:
     10        (WebCore::ScrollView::contentsSize):
     11        (WebCore::ScrollView::wheelEvent):
     12        * platform/ScrollView.h:
     13        * platform/mac/ScrollViewMac.mm:
     14        (WebCore::ScrollView::platformContentsSize):
     15        * platform/wx/ScrollViewWx.cpp:
     16        (WebCore::ScrollView::platformContentsSize):
     17
    1182011-09-16  James Simonsen  <simonjam@chromium.org>
    219
  • trunk/Source/WebCore/platform/ScrollView.cpp

    r95227 r95307  
    281281IntSize ScrollView::contentsSize() const
    282282{
     283    if (platformWidget())
     284        return platformContentsSize();
    283285    return m_contentsSize;
    284286}
     
    13251327}
    13261328
     1329IntSize ScrollView::platformContentsSize() const
     1330{
     1331    return IntSize();
     1332}
     1333
    13271334void ScrollView::platformSetContentsSize()
    13281335{
  • trunk/Source/WebCore/platform/ScrollView.h

    r95227 r95307  
    385385    bool platformCanBlitOnScroll() const;
    386386    IntRect platformVisibleContentRect(bool includeScrollbars) const;
     387    IntSize platformContentsSize() const;
    387388    void platformSetContentsSize();
    388389    IntRect platformContentsToScreen(const IntRect&) const;
  • trunk/Source/WebCore/platform/mac/ScrollViewMac.mm

    r95227 r95307  
    118118}
    119119
     120IntSize ScrollView::platformContentsSize() const
     121{
     122    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     123    if (NSView* documentView = this->documentView())
     124        return enclosingIntRect([documentView bounds]).size();
     125    END_BLOCK_OBJC_EXCEPTIONS;
     126    return IntSize();
     127}
     128
    120129void ScrollView::platformSetContentsSize()
    121130{
  • trunk/Source/WebCore/platform/wx/ScrollViewWx.cpp

    r95227 r95307  
    166166}
    167167
     168IntSize ScrollView::platformContentsSize() const
     169{
     170    int width = 0;
     171    int height = 0;
     172    if (platformWidget()) {
     173        platformWidget()->GetVirtualSize(&width, &height);
     174        ASSERT(width >= 0 && height >= 0);
     175    }
     176    return IntSize(width, height);
     177}
     178
    168179void ScrollView::platformSetScrollPosition(const IntPoint& scrollPoint)
    169180{
Note: See TracChangeset for help on using the changeset viewer.