Changeset 171224 in webkit


Ignore:
Timestamp:
Jul 18, 2014 10:14:38 AM (10 years ago)
Author:
commit-queue@webkit.org
Message:

Unreviewed, rolling out r171207.
https://bugs.webkit.org/show_bug.cgi?id=135056

Broke multiple tests on Yosemite (Requested by ap on #webkit).

Reverted changeset:

"Fixed position elements are misplaced when a WK1 view has
contentInsets set"
https://bugs.webkit.org/show_bug.cgi?id=135031
http://trac.webkit.org/changeset/171207

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r171222 r171224  
     12014-07-18  Commit Queue  <commit-queue@webkit.org>
     2
     3        Unreviewed, rolling out r171207.
     4        https://bugs.webkit.org/show_bug.cgi?id=135056
     5
     6        Broke multiple tests on Yosemite (Requested by ap on #webkit).
     7
     8        Reverted changeset:
     9
     10        "Fixed position elements are misplaced when a WK1 view has
     11        contentInsets set"
     12        https://bugs.webkit.org/show_bug.cgi?id=135031
     13        http://trac.webkit.org/changeset/171207
     14
    1152014-07-18  Commit Queue  <commit-queue@webkit.org>
    216
  • trunk/Source/WebCore/platform/graphics/IntSize.h

    r171207 r171224  
    8080        m_width += width;
    8181        m_height += height;
    82     }
    83 
    84     void contract(int width, int height)
    85     {
    86         m_width -= width;
    87         m_height -= height;
    8882    }
    8983
  • trunk/Source/WebCore/platform/mac/ScrollViewMac.mm

    r171207 r171224  
    3535#import "WebCoreFrameView.h"
    3636
    37 @interface NSClipView (Details)
    38 - (NSRect)_insetBounds;
    39 @end
    40 
    41 @interface NSScrollView (Details)
    42 - (NSEdgeInsets)contentInsets;
    43 @end
    44 
    4537@interface NSWindow (WebWindowDetails)
    4638- (BOOL)_needsToResetDragMargins;
     
    116108{
    117109    BEGIN_BLOCK_OBJC_EXCEPTIONS;
    118 
    119     IntRect visibleContentRect;
    120 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 10100
    121     visibleContentRect = enclosingIntRect([[scrollView() contentView] _insetBounds]);
    122 #else
    123     visibleContentRect = enclosingIntRect([scrollView() documentVisibleRect]);
    124 #endif
    125 
    126     if (includeScrollbars) {
    127         IntSize frameSize([scrollView() frame].size);
    128 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 10100
    129         frameSize.contract(scrollView().contentInsets.left + scrollView().contentInsets.right, scrollView().contentInsets.top + scrollView().contentInsets.bottom);
    130 #endif
    131         visibleContentRect.setSize(frameSize);
    132     }
    133 
    134     return visibleContentRect;
    135     END_BLOCK_OBJC_EXCEPTIONS;
    136 
     110    IntRect result = enclosingIntRect([scrollView() documentVisibleRect]);
     111    if (includeScrollbars)
     112        result.setSize(IntSize([scrollView() frame].size));
     113    return result;
     114    END_BLOCK_OBJC_EXCEPTIONS;
    137115    return IntRect();
    138116}
     
    140118IntSize ScrollView::platformVisibleContentSize(bool includeScrollbars) const
    141119{
    142     return platformVisibleContentRect(includeScrollbars).size();
     120    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     121    if (includeScrollbars)
     122        return IntSize([scrollView() frame].size);
     123
     124    return expandedIntSize(FloatSize([scrollView() documentVisibleRect].size));
     125    END_BLOCK_OBJC_EXCEPTIONS;
     126    return IntSize();
    143127}
    144128
Note: See TracChangeset for help on using the changeset viewer.