Changeset 147635 in webkit
- Timestamp:
- Apr 4, 2013 9:01:49 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r147622 r147635 1 2013-04-04 Xidorn Quan <quanxunzhen@gmail.com> 2 3 REGRESSION (r145870): Can't get insertion point to appear in some input and textareas on wordpress 4 https://bugs.webkit.org/show_bug.cgi?id=113591 5 6 Reviewed by Simon Fraser. 7 8 * fast/borders/border-radius-child-expected.txt: Added. 9 * fast/borders/border-radius-child.html: Added. 10 1 11 2013-04-04 Christophe Dumez <ch.dumez@sisa.samsung.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r147628 r147635 1 2013-04-04 Xidorn Quan <quanxunzhen@gmail.com> 2 3 REGRESSION (r145870): Can't get insertion point to appear in some input and textareas on wordpress 4 https://bugs.webkit.org/show_bug.cgi?id=113591 5 6 Reviewed by Simon Fraser. 7 8 Since a child node could overflow its ancestor, it is not wise to check 9 one's radii boundary before checking whether the given point intersects 10 its children. This patch moves the related code down to fix the bug. 11 12 Test: fast/borders/border-radius-child.html 13 14 * rendering/RenderBlock.cpp: 15 (WebCore::RenderBlock::nodeAtPoint): 16 1 17 2013-04-04 Xabier Rodriguez Calvar <calvaris@igalia.com> 2 18 -
trunk/Source/WebCore/rendering/RenderBlock.cpp
r147426 r147635 4906 4906 flipForWritingMode(overflowBox); 4907 4907 overflowBox.moveBy(adjustedLocation); 4908 if (style()->hasBorderRadius()) {4909 LayoutRect borderRect = borderBoxRect();4910 borderRect.moveBy(adjustedLocation);4911 RoundedRect border = style()->getRoundedBorderFor(borderRect, view());4912 if (!locationInContainer.intersects(border))4913 return false;4914 }4915 4908 if (!locationInContainer.intersects(overflowBox)) 4916 4909 return false; … … 4946 4939 return true; 4947 4940 } 4941 } 4942 4943 // Check if the point is outside radii. 4944 if (!isRenderView() && style()->hasBorderRadius()) { 4945 LayoutRect borderRect = borderBoxRect(); 4946 borderRect.moveBy(adjustedLocation); 4947 RoundedRect border = style()->getRoundedBorderFor(borderRect, view()); 4948 if (!locationInContainer.intersects(border)) 4949 return false; 4948 4950 } 4949 4951
Note: See TracChangeset
for help on using the changeset viewer.