Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Issue 331303004: Fix selection rect calculation for inline elements with padding (Closed)

Created:
6 years, 6 months ago by eae
Modified:
6 years, 6 months ago
CC:
blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr., rune+blink, zoltan1
Project:
blink
Visibility:
Public.

Description

Fix selection rect calculation for inline elements with padding Account for border and padding for inline elements when computing the height for an inline box. While not needed for layout it is critical for computing the selection rect. Change InlineFlowBox::placeBoxesInBlockDirection to accurately account for the border and padding logical height when computing the selection height just as the logical top border and padding is taken into account for the logical top. Unfortunately this requires a new field in RootInlineBox as the line bottom and selection bottom can be different. R=leviw@chromium.org BUG=385540 TEST=fast/text/selection-with-inline-padding.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176566

Patch Set 1 #

Total comments: 1

Patch Set 2 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -10 lines) Patch
M LayoutTests/TestExpectations View 1 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/editing/selection/hit-test-on-text-with-line-height.html View 1 1 chunk +1 line, -1 line 0 comments Download
A LayoutTests/fast/text/selection-with-inline-padding.html View 1 chunk +27 lines, -0 lines 0 comments Download
A LayoutTests/fast/text/selection-with-inline-padding-expected.html View 1 chunk +27 lines, -0 lines 0 comments Download
M Source/core/rendering/InlineFlowBox.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/InlineFlowBox.cpp View 6 chunks +6 lines, -3 lines 0 comments Download
M Source/core/rendering/RootInlineBox.h View 2 chunks +4 lines, -1 line 0 comments Download
M Source/core/rendering/RootInlineBox.cpp View 5 chunks +7 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
eae
6 years, 6 months ago (2014-06-19 21:57:25 UTC) #1
eae
6 years, 6 months ago (2014-06-19 22:50:50 UTC) #2
eseidel
lgtm https://codereview.chromium.org/331303004/diff/1/Source/core/rendering/RootInlineBox.h File Source/core/rendering/RootInlineBox.h (right): https://codereview.chromium.org/331303004/diff/1/Source/core/rendering/RootInlineBox.h#newcode217 Source/core/rendering/RootInlineBox.h:217: LayoutUnit m_selectionBottom; I wonder how many lines we ...
6 years, 6 months ago (2014-06-19 23:01:47 UTC) #3
eae
On 2014/06/19 23:01:47, eseidel wrote: > lgtm > > https://codereview.chromium.org/331303004/diff/1/Source/core/rendering/RootInlineBox.h > File Source/core/rendering/RootInlineBox.h (right): > ...
6 years, 6 months ago (2014-06-19 23:04:59 UTC) #4
leviw_travelin_and_unemployed
lgtm
6 years, 6 months ago (2014-06-19 23:17:05 UTC) #5
eae
The CQ bit was checked by eae@chromium.org
6 years, 6 months ago (2014-06-20 00:01:04 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eae@chromium.org/331303004/20001
6 years, 6 months ago (2014-06-20 00:01:38 UTC) #7
commit-bot: I haz the power
6 years, 6 months ago (2014-06-20 01:06:17 UTC) #8
Message was sent while issue was closed.
Change committed as 176566

Powered by Google App Engine
This is Rietveld 408576698