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

Issue 331373006: Make inline blocks correctly update their line box selection state. (Closed)

Created:
6 years, 6 months ago by skobes
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

Make inline blocks correctly update their line box selection state. When text is selected, RenderText::setSelectionState marks each RootInlineBox as having selected children. But if a line contained only an inline-block element, the selection state of that line's RootInlineBox was not updated. That caused RenderBlockFlow::inlineSelectionGaps to set lastLogicalTop to the wrong value, since it believed the line was not selected. That caused RenderBlock::selectionGaps to paint a vertical selection gap on top of the affected line, obscuring its content. This patch adds RenderBlock::setSelectionState, which updates the selection state of the RootInlineBox. BUG=388324 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176944

Patch Set 1 : #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -0 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
A LayoutTests/fast/text/inline-block-in-selection-root.html View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
A LayoutTests/fast/text/inline-block-in-selection-root-expected.html View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderBlock.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderBlock.cpp View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
skobes
6 years, 6 months ago (2014-06-24 18:36:41 UTC) #1
leviw_travelin_and_unemployed
lgtm
6 years, 6 months ago (2014-06-24 18:45:38 UTC) #2
skobes
The CQ bit was checked by skobes@chromium.org
6 years, 6 months ago (2014-06-24 18:51:49 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skobes@chromium.org/331373006/20001
6 years, 6 months ago (2014-06-24 18:52:50 UTC) #4
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 6 months ago (2014-06-24 20:07:33 UTC) #5
skobes
The test "compositing/squashing/selection-repaint-with-gaps.html" is expecting invalidations that correspond to the incorrect selection painting behavior that ...
6 years, 6 months ago (2014-06-24 20:26:37 UTC) #6
skobes
The CQ bit was checked by skobes@chromium.org
6 years, 6 months ago (2014-06-24 20:26:41 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skobes@chromium.org/331373006/40001
6 years, 6 months ago (2014-06-24 20:27:40 UTC) #8
skobes
The CQ bit was checked by skobes@chromium.org
6 years, 6 months ago (2014-06-24 21:33:12 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skobes@chromium.org/331373006/60001
6 years, 6 months ago (2014-06-24 21:33:25 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 6 months ago (2014-06-25 04:11:34 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-25 05:11:14 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/13467)
6 years, 6 months ago (2014-06-25 05:11:15 UTC) #13
skobes
Changed font in test to work around http://crbug.com/388823.
6 years, 6 months ago (2014-06-25 18:45:50 UTC) #14
skobes
The CQ bit was checked by skobes@chromium.org
6 years, 6 months ago (2014-06-25 18:45:53 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skobes@chromium.org/331373006/70001
6 years, 6 months ago (2014-06-25 18:46:00 UTC) #16
commit-bot: I haz the power
6 years, 6 months ago (2014-06-25 19:50:37 UTC) #17
Message was sent while issue was closed.
Change committed as 176944

Powered by Google App Engine
This is Rietveld 408576698