Changeset 123571 in webkit
- Timestamp:
- Jul 24, 2012, 9:42:44 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/LayoutTests/ChangeLog ¶
r123570 r123571 1 2012-07-24 Dan Bernstein <mitz@apple.com> 2 3 RenderBlock::positionForPoint can fail when the block or its children have a vertical writing mode 4 https://bugs.webkit.org/show_bug.cgi?id=92202 5 6 Reviewed by Beth Dakin. 7 8 * fast/writing-mode/positionForPoint-expected.txt: Added. 9 * fast/writing-mode/positionForPoint.html: Added. 10 1 11 2012-07-24 MORITA Hajime <morrita@google.com> 2 12 -
TabularUnified trunk/Source/WebCore/ChangeLog ¶
r123570 r123571 1 2012-07-24 Dan Bernstein <mitz@apple.com> 2 3 RenderBlock::positionForPoint can fail when the block or its children have a vertical writing mode 4 https://bugs.webkit.org/show_bug.cgi?id=92202 5 6 Reviewed by Beth Dakin. 7 8 Test: fast/writing-mode/positionForPoint.html 9 10 * rendering/RenderBlock.cpp: 11 (WebCore::RenderBlock::positionForPoint): Fixed two issues, each of which are covered by 12 one of the sub-tests in the new regression test: (1) changed to compare children’s logical 13 bounds against pointInLogicalContents, i.e. compare childern’s horizontal bounds to the 14 point’s horizontal component; and (2) changed to use logicalTopForChild and 15 logicalHeightForChild, which account for this block’s writing mode, instead of logicalTop 16 and logicalBottom, which are based on the child’s writing mode. 17 1 18 2012-07-24 MORITA Hajime <morrita@google.com> 2 19 -
TabularUnified trunk/Source/WebCore/rendering/RenderBlock.cpp ¶
r123524 r123571 5019 5019 5020 5020 if (lastCandidateBox) { 5021 if (pointIn Contents.y() > lastCandidateBox->logicalTop())5021 if (pointInLogicalContents.y() > logicalTopForChild(lastCandidateBox)) 5022 5022 return positionForPointRespectingEditingBoundaries(this, lastCandidateBox, pointInContents); 5023 5023 5024 5024 for (RenderBox* childBox = firstChildBox(); childBox; childBox = childBox->nextSiblingBox()) { 5025 5025 // We hit child if our click is above the bottom of its padding box (like IE6/7 and FF3). 5026 if (isChildHitTestCandidate(childBox) && pointIn Contents.y() < childBox->logicalBottom())5026 if (isChildHitTestCandidate(childBox) && pointInLogicalContents.y() < logicalTopForChild(childBox) + logicalHeightForChild(childBox)) 5027 5027 return positionForPointRespectingEditingBoundaries(this, childBox, pointInContents); 5028 5028 }
Note:
See TracChangeset
for help on using the changeset viewer.