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

Issue 1141403003: [S.P.] Expand cull-rect for text boxes with selection bounds (Closed)

Created:
5 years, 7 months ago by fs
Modified:
5 years, 7 months ago
Reviewers:
chrishtr
CC:
blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-paint_chromium.org, dglazkov+blink, dshwang, eae+blinkwatch, rwlbuis, sof, slimming-paint-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

[S.P.] Expand cull-rect for text boxes with selection bounds Highlights for selection/composition and document markers are painted together with actual text, so the cull rect needs to have the bounds from these included. TEST=editing/selection/extend-by-character-002.html BUG=486825 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=195632

Patch Set 1 #

Patch Set 2 : Adjust offset #

Total comments: 2

Patch Set 3 : Use localSelectionRect. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -5 lines) Patch
M Source/core/dom/DocumentMarkerController.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/paint/InlineTextBoxPainter.h View 1 2 2 chunks +1 line, -1 line 0 comments Download
M Source/core/paint/InlineTextBoxPainter.cpp View 1 2 3 chunks +11 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
fs
Get the feeling that might end up a bit whack-a-mole-ish with the all the different ...
5 years, 7 months ago (2015-05-19 21:28:22 UTC) #2
chrishtr
https://codereview.chromium.org/1141403003/diff/20001/Source/core/paint/InlineTextBoxPainter.cpp File Source/core/paint/InlineTextBoxPainter.cpp (right): https://codereview.chromium.org/1141403003/diff/20001/Source/core/paint/InlineTextBoxPainter.cpp#newcode103 Source/core/paint/InlineTextBoxPainter.cpp:103: paintRect.unite(calculateSelectionBounds(LayoutRect(boxOrigin, LayoutSize(1, 1)))); m_inlineTextBox.inlineSelectionRect()? Also, why LayoutSize(1, 1)?
5 years, 7 months ago (2015-05-19 21:55:07 UTC) #3
fs
https://codereview.chromium.org/1141403003/diff/20001/Source/core/paint/InlineTextBoxPainter.cpp File Source/core/paint/InlineTextBoxPainter.cpp (right): https://codereview.chromium.org/1141403003/diff/20001/Source/core/paint/InlineTextBoxPainter.cpp#newcode103 Source/core/paint/InlineTextBoxPainter.cpp:103: paintRect.unite(calculateSelectionBounds(LayoutRect(boxOrigin, LayoutSize(1, 1)))); On 2015/05/19 21:55:07, chrishtr wrote: > ...
5 years, 7 months ago (2015-05-20 14:44:09 UTC) #4
chrishtr
lgtm
5 years, 7 months ago (2015-05-20 18:08:33 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1141403003/40001
5 years, 7 months ago (2015-05-20 18:08:46 UTC) #7
commit-bot: I haz the power
5 years, 7 months ago (2015-05-20 18:12:07 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=195632

Powered by Google App Engine
This is Rietveld 408576698