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

Issue 1581333002: Make VisibleSelection::setWithoutValidation() to handle TextAffinity::Upstream (Closed)

Created:
4 years, 11 months ago by yosin_UTC9
Modified:
4 years, 11 months ago
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make VisibleSelection::setWithoutValidation() to handle TextAffinity::Upstream Before this patch, |VisibleSelection::setWithoutValidation()| assumes it is always called |m_affinity| == |TextAffinity::Downstream|, however as attached test case, "/set-without-validation-with-upstream-caret.html", this assumption is false. |setWithoutValidation()| can be called with |m_affinity| == |TextAffinity::Upstream|. This patch makes |VisibleSelection::setWithoutValidation()| to handle in case of |VisibleSelection::m_affinity| == |TextAffinity::Upstream| case by keeping invariant only caret selection having |TextAffinity::Upstream|. BUG=575568 TEST=editing/caret/set-without-validation-with-upstream-caret.html Committed: https://crrev.com/57ff0386acaed36fc1cfcb86432d53b84d747e36 Cr-Commit-Position: refs/heads/master@{#369363}

Patch Set 1 : 2016-01-14T14:55:53 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -4 lines) Patch
A third_party/WebKit/LayoutTests/editing/caret/set-without-validation-with-upstream-caret.html View 1 chunk +17 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleSelection.cpp View 2 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 16 (8 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1581333002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1581333002/1
4 years, 11 months ago (2016-01-14 06:05:31 UTC) #3
yosin_UTC9
Finally, we get a test case for setWithoutValidation() with upstream caret, so we can get ...
4 years, 11 months ago (2016-01-14 06:37:25 UTC) #7
hajimehoshi
lgtm
4 years, 11 months ago (2016-01-14 06:57:59 UTC) #8
Xiaocheng
On 2016/01/14 at 06:57:59, hajimehoshi wrote: > lgtm Looks pretty neat to me. (I am ...
4 years, 11 months ago (2016-01-14 07:17:35 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-14 07:21:19 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1581333002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1581333002/1
4 years, 11 months ago (2016-01-14 07:36:25 UTC) #13
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 11 months ago (2016-01-14 07:40:10 UTC) #14
commit-bot: I haz the power
4 years, 11 months ago (2016-01-14 07:44:28 UTC) #16
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/57ff0386acaed36fc1cfcb86432d53b84d747e36
Cr-Commit-Position: refs/heads/master@{#369363}

Powered by Google App Engine
This is Rietveld 408576698