|
|
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
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
|
Total messages: 4 (1 generated)
|