Changeset 200261 in webkit
- Timestamp:
- Apr 29, 2016 1:33:48 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r200260 r200261 1 2016-04-29 Myles C. Maxfield <mmaxfield@apple.com> 2 3 [RTL Scrollbars] REGRESSION(r200116): Positioned contents can overlap RTL scrollbars 4 https://bugs.webkit.org/show_bug.cgi?id=157164 5 <rdar://problem/25993610> 6 7 Reviewed by Darin Adler. 8 9 * TestExpectations: 10 * fast/scrolling/rtl-scrollbars-positioned-intersect-scrollbars-expected.html: Added. 11 * fast/scrolling/rtl-scrollbars-positioned-intersect-scrollbars.html: Added. 12 1 13 2016-04-29 Joanmarie Diggs <jdiggs@igalia.com> 2 14 -
trunk/LayoutTests/TestExpectations
r200204 r200261 990 990 fast/scrolling/rtl-scrollbars-listbox-simple.html [ ImageOnlyFailure ] 991 991 fast/scrolling/rtl-scrollbars-listbox.html [ ImageOnlyFailure ] 992 fast/scrolling/rtl-scrollbars-positioned-intersect-scrollbars.html [ ImageOnlyFailure ] 992 993 993 994 # <a download> does not support Blobs -
trunk/Source/WebCore/ChangeLog
r200258 r200261 1 2016-04-29 Myles C. Maxfield <mmaxfield@apple.com> 2 3 [RTL Scrollbars] REGRESSION(r200116): Positioned contents can overlap RTL scrollbars 4 https://bugs.webkit.org/show_bug.cgi?id=157164 5 <rdar://problem/25993610> 6 7 Reviewed by Darin Adler. 8 9 There was some code left over from the old implementation of RTL_SCROLLBARS 10 which had some faulty assumptions about the interaction between direction 11 and scrollbar placement. In particular, once we began obeying the "dir" 12 attribute in r200116, these assumptions were no longer valid. 13 14 Test: fast/scrolling/rtl-scrollbars-positioned-intersect-scrollbars.html 15 scrollbars/rtl/div-absolute.html 16 scrollbars/rtl/div-horizontal.html 17 18 * rendering/InlineFlowBox.h: 19 (WebCore::InlineFlowBox::layoutOverflowRect): 20 * rendering/RenderBlock.cpp: 21 (WebCore::RenderBlock::computeOverflow): Deleted. 22 * rendering/RenderBox.cpp: 23 (WebCore::RenderBox::layoutOverflowRectForPropagation): 24 * rendering/RenderLayer.cpp: 25 (WebCore::RenderLayer::computeScrollDimensions): 26 1 27 2016-04-29 Nan Wang <n_wang@apple.com> 2 28 -
trunk/Source/WebCore/rendering/InlineFlowBox.h
r197566 r200261 224 224 // respectively are flipped when compared to their physical counterparts. For example minX is on the left in vertical-lr, but it is on the right in vertical-rl. 225 225 LayoutRect layoutOverflowRect(LayoutUnit lineTop, LayoutUnit lineBottom) const 226 { 226 { 227 227 return m_overflow ? m_overflow->layoutOverflowRect() : enclosingLayoutRect(frameRectIncludingLineHeight(lineTop, lineBottom)); 228 228 } -
trunk/Source/WebCore/rendering/RenderBlock.cpp
r200116 r200261 1001 1001 } 1002 1002 1003 // Overflow is always relative to the border-box of the element in question. 1004 // Therefore, if the element has a vertical scrollbar placed on the left, an overflow rect at x=2px would conceptually intersect the scrollbar. 1003 1005 void RenderBlock::computeOverflow(LayoutUnit oldClientAfterEdge, bool) 1004 1006 { 1005 1007 clearOverflow(); 1006 // Add overflow from children.1007 1008 addOverflowFromChildren(); 1008 1009 1009 // Add in the overflow from positioned objects.1010 1010 addOverflowFromPositionedObjects(); 1011 1011 -
trunk/Source/WebCore/rendering/RenderBox.cpp
r200220 r200261 4904 4904 // Subtract space occupied by scrollbars. They are at their physical edge in this coordinate 4905 4905 // system, so order is important here: first flip, then subtract scrollbars. 4906 if (shouldPlaceBlockDirectionScrollbarOnLeft() && style().isLeftToRightDirection())4906 if (shouldPlaceBlockDirectionScrollbarOnLeft()) 4907 4907 rect.move(verticalScrollbarWidth(), 0); 4908 4908 rect.contract(verticalScrollbarWidth(), horizontalScrollbarHeight()); -
trunk/Source/WebCore/rendering/RenderLayer.cpp
r200216 r200261 3381 3381 3382 3382 int scrollableLeftOverflow = overflowLeft() - box->borderLeft(); 3383 if ( box->style().isLeftToRightDirection() && box->shouldPlaceBlockDirectionScrollbarOnLeft() && m_vBar)3384 scrollableLeftOverflow -= m_vBar->occupiedWidth();3383 if (shouldPlaceBlockDirectionScrollbarOnLeft()) 3384 scrollableLeftOverflow -= verticalScrollbarWidth(); 3385 3385 int scrollableTopOverflow = overflowTop() - box->borderTop(); 3386 3386 setScrollOrigin(IntPoint(-scrollableLeftOverflow, -scrollableTopOverflow));
Note: See TracChangeset
for help on using the changeset viewer.