Changeset 171224 in webkit
- Timestamp:
- Jul 18, 2014 10:14:38 AM (10 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r171222 r171224 1 2014-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 1 15 2014-07-18 Commit Queue <commit-queue@webkit.org> 2 16 -
trunk/Source/WebCore/platform/graphics/IntSize.h
r171207 r171224 80 80 m_width += width; 81 81 m_height += height; 82 }83 84 void contract(int width, int height)85 {86 m_width -= width;87 m_height -= height;88 82 } 89 83 -
trunk/Source/WebCore/platform/mac/ScrollViewMac.mm
r171207 r171224 35 35 #import "WebCoreFrameView.h" 36 36 37 @interface NSClipView (Details)38 - (NSRect)_insetBounds;39 @end40 41 @interface NSScrollView (Details)42 - (NSEdgeInsets)contentInsets;43 @end44 45 37 @interface NSWindow (WebWindowDetails) 46 38 - (BOOL)_needsToResetDragMargins; … … 116 108 { 117 109 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; 137 115 return IntRect(); 138 116 } … … 140 118 IntSize ScrollView::platformVisibleContentSize(bool includeScrollbars) const 141 119 { 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(); 143 127 } 144 128
Note: See TracChangeset
for help on using the changeset viewer.