Changeset 166082 in webkit
- Timestamp:
- Mar 21, 2014, 11:56:04 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r166080 r166082 1 2014-03-21 Simon Fraser <simon.fraser@apple.com> 2 3 unobscuredContentRect() should have the same signature on iOS and other platforms, 4 and should not recurse on iOS. 5 https://bugs.webkit.org/show_bug.cgi?id=130604 6 <rdar://problem/16392587> 7 8 Reviewed by Tim Horton and Beth Dakin. 9 10 Having different signatures on different platforms is a recipe for 11 build breakage. Give the iOS unobscuredContentRect() an unused 12 VisibleContentRectIncludesScrollbars parameter. 13 14 Also avoid recursion via unobscuredContentRect() calling visibleContentRectInternal(). 15 16 * WebCore.exp.in: 17 * platform/ScrollView.cpp: 18 (WebCore::ScrollView::unobscuredContentRect): 19 (WebCore::ScrollView::unobscuredContentRectInternal): 20 (WebCore::ScrollView::visibleContentRectInternal): 21 * platform/ScrollView.h: 22 (WebCore::ScrollView::unobscuredContentRectIncludingScrollbars): 23 * platform/ios/ScrollViewIOS.mm: 24 (WebCore::ScrollView::unobscuredContentRect): 25 1 26 2014-03-21 Brent Fulgham <bfulgham@apple.com> 2 27 -
trunk/Source/WebCore/WebCore.exp.in
r166057 r166082 2634 2634 __ZN7WebCore9TileCache20setLayerPoolCapacityEj 2635 2635 __ZNK7WebCore10FloatPointcv7CGPointEv 2636 __ZNK7WebCore10ScrollView21unobscuredContentRectE v2636 __ZNK7WebCore10ScrollView21unobscuredContentRectENS_14ScrollableArea36VisibleContentRectIncludesScrollbarsE 2637 2637 __ZNK7WebCore14DocumentLoader16responseMIMETypeEv 2638 2638 __ZNK7WebCore14FrameSelection17wordOffsetInRangeEPKNS_5RangeE -
trunk/Source/WebCore/platform/ScrollView.cpp
r166042 r166082 236 236 delegatesScrollingDidChange(); 237 237 } 238 238 239 239 #if !PLATFORM(IOS) 240 240 IntRect ScrollView::unobscuredContentRect(VisibleContentRectIncludesScrollbars scrollbarInclusion) const 241 { 242 return unobscuredContentRectInternal(scrollbarInclusion); 243 } 244 #endif 245 246 IntRect ScrollView::unobscuredContentRectInternal(VisibleContentRectIncludesScrollbars scrollbarInclusion) const 241 247 { 242 248 FloatSize visibleContentSize = unscaledUnobscuredVisibleContentSize(scrollbarInclusion); … … 244 250 return IntRect(IntPoint(m_scrollOffset), expandedIntSize(visibleContentSize)); 245 251 } 246 #endif 247 252 248 253 IntSize ScrollView::unscaledTotalVisibleContentSize(VisibleContentRectIncludesScrollbars scrollbarInclusion) const 249 254 { … … 295 300 296 301 if (platformWidget()) 297 return unobscuredContentRect( );302 return unobscuredContentRect(scrollbarInclusion); 298 303 #else 299 304 UNUSED_PARAM(visibleContentRectBehavior); … … 308 313 #endif 309 314 310 #if PLATFORM(IOS) 311 return unobscuredContentRect(); 312 #else 313 return unobscuredContentRect(scrollbarInclusion); 314 #endif 315 return unobscuredContentRectInternal(scrollbarInclusion); 315 316 } 316 317 #endif -
trunk/Source/WebCore/platform/ScrollView.h
r166017 r166082 172 172 // contribute to painting but not to the scrollable area. 173 173 // The unobscuredContentRect is the area that is not covered by UI elements. 174 IntRect unobscuredContentRect(VisibleContentRectIncludesScrollbars = ExcludeScrollbars) const; 174 175 #if PLATFORM(IOS) 175 IntRect unobscuredContentRect() const; 176 IntRect unobscuredContentRectIncludingScrollbars() const { return unobscuredContentRect(); } 176 IntRect unobscuredContentRectIncludingScrollbars() const { return unobscuredContentRect(IncludeScrollbars); } 177 177 #else 178 IntRect unobscuredContentRect(VisibleContentRectIncludesScrollbars = ExcludeScrollbars) const;179 178 IntRect unobscuredContentRectIncludingScrollbars() const { return visibleContentRectIncludingScrollbars(); } 180 179 #endif … … 393 392 private: 394 393 virtual IntRect visibleContentRectInternal(VisibleContentRectIncludesScrollbars, VisibleContentRectBehavior) const override; 394 IntRect unobscuredContentRectInternal(VisibleContentRectIncludesScrollbars = ExcludeScrollbars) const; 395 395 396 396 RefPtr<Scrollbar> m_horizontalScrollbar; -
trunk/Source/WebCore/platform/ios/ScrollViewIOS.mm
r165676 r166082 97 97 } 98 98 99 IntRect ScrollView::unobscuredContentRect( ) const99 IntRect ScrollView::unobscuredContentRect(VisibleContentRectIncludesScrollbars) const 100 100 { 101 101 if (WAKScrollView *view = static_cast<WAKScrollView *>(platformWidget())) { … … 110 110 return m_unobscuredContentRect; 111 111 112 return visibleContentRectIncludingScrollbars();112 return unobscuredContentRectInternal(); 113 113 } 114 114
Note:
See TracChangeset
for help on using the changeset viewer.