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

Issue 847303003: Delete selection paint invalidation code. (Closed)

Created:
5 years, 11 months ago by ojan
Modified:
5 years, 11 months ago
CC:
abarth-chromium, esprehn, mojo-reviews_chromium.org
Base URL:
git@github.com:domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Delete selection paint invalidation code. There is a slight change in behavior in FrameSelection::revealSelection. If you have a non-collapsed selection, then we'll center the start of the selection instead of the whole selection in some cases. There's a ton of callers of this code, so it's hard to be sure if any of this actually changes behavior for sky. In manual testing, I couldn't find any scenarios where there was a difference. Almost universally, when we call revealSelection, we have a CaretSelection. The only case I could think of where we have a RangeSelection is when modifying an off-screen selection (e.g. shift+right), but in that case we pass the RevealExtent option, so this patch doesn't change behavior there. Removing that caller makes all the rest of this rect computing code into dead code. R=abarth@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/550791f3f907423412a28d4dec81467ce81cc67c

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -339 lines) Patch
M sky/engine/core/editing/FrameSelection.h View 1 chunk +0 lines, -2 lines 0 comments Download
M sky/engine/core/editing/FrameSelection.cpp View 2 chunks +2 lines, -14 lines 1 comment Download
M sky/engine/core/rendering/RenderBlock.h View 1 chunk +0 lines, -1 line 0 comments Download
M sky/engine/core/rendering/RenderBlock.cpp View 1 chunk +0 lines, -21 lines 0 comments Download
M sky/engine/core/rendering/RenderBox.h View 3 chunks +0 lines, -5 lines 0 comments Download
M sky/engine/core/rendering/RenderBox.cpp View 2 chunks +0 lines, -104 lines 0 comments Download
M sky/engine/core/rendering/RenderInline.h View 1 chunk +0 lines, -2 lines 0 comments Download
M sky/engine/core/rendering/RenderInline.cpp View 1 chunk +0 lines, -49 lines 0 comments Download
M sky/engine/core/rendering/RenderLayer.h View 1 chunk +0 lines, -3 lines 0 comments Download
M sky/engine/core/rendering/RenderLayer.cpp View 1 chunk +0 lines, -6 lines 0 comments Download
M sky/engine/core/rendering/RenderObject.h View 2 chunks +0 lines, -8 lines 0 comments Download
M sky/engine/core/rendering/RenderObject.cpp View 1 chunk +0 lines, -17 lines 0 comments Download
M sky/engine/core/rendering/RenderReplaced.h View 1 chunk +0 lines, -1 line 0 comments Download
M sky/engine/core/rendering/RenderReplaced.cpp View 1 chunk +0 lines, -16 lines 0 comments Download
M sky/engine/core/rendering/RenderText.h View 1 chunk +0 lines, -1 line 0 comments Download
M sky/engine/core/rendering/RenderText.cpp View 1 chunk +0 lines, -43 lines 0 comments Download
M sky/engine/core/rendering/RenderView.h View 2 chunks +0 lines, -3 lines 0 comments Download
M sky/engine/core/rendering/RenderView.cpp View 2 chunks +0 lines, -43 lines 0 comments Download

Messages

Total messages: 4 (1 generated)
ojan
https://codereview.chromium.org/847303003/diff/1/sky/engine/core/editing/FrameSelection.cpp File sky/engine/core/editing/FrameSelection.cpp (right): https://codereview.chromium.org/847303003/diff/1/sky/engine/core/editing/FrameSelection.cpp#newcode1534 sky/engine/core/editing/FrameSelection.cpp:1534: Position position = revealExtentOption == RevealExtent ? extent() : ...
5 years, 11 months ago (2015-01-14 19:49:19 UTC) #2
abarth-chromium
lgtm
5 years, 11 months ago (2015-01-14 21:21:15 UTC) #3
ojan
5 years, 11 months ago (2015-01-14 21:25:23 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
550791f3f907423412a28d4dec81467ce81cc67c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698