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

Issue 2847763004: Make InsertTextCommand not to apply style for empty selection (Closed)

Created:
3 years, 7 months ago by yosin_UTC9
Modified:
3 years, 7 months ago
Reviewers:
yoichio, Xiaocheng
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make InsertTextCommand not to apply typing style for empty selection This patch makes |InsertTextCommand::DoApply()| not to call |ApplyStyle()| for applying typing style when selection after inserting text is empty since |ApplyStyle()| doesn't work with empty selection. The issue 714311 and the attached test case insert text into OPTION element to get empty selection after insertion, since we can't place selection inside OPTION element. BUG=714311 TEST=run_webkit_unit_tests --gtest_filter=InsertTextCommandTest.WithTypingStyle Review-Url: https://codereview.chromium.org/2847763004 Cr-Commit-Position: refs/heads/master@{#468080} Committed: https://chromium.googlesource.com/chromium/src/+/89209614959b6d3b2d4c4e8b015232663b4fcd87

Patch Set 1 : 2017-04-28T14:41:08 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -1 line) Patch
M third_party/WebKit/Source/core/editing/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/InsertTextCommand.cpp View 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/Source/core/editing/commands/InsertTextCommandTest.cpp View 1 chunk +34 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (10 generated)
yosin_UTC9
PTAL Please click [Commit] button since I'm OOO until May 8. Thanks!
3 years, 7 months ago (2017-04-28 08:18:44 UTC) #8
Xiaocheng
lgtm
3 years, 7 months ago (2017-04-28 18:39:40 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2847763004/1
3 years, 7 months ago (2017-04-28 18:40:31 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/89209614959b6d3b2d4c4e8b015232663b4fcd87
3 years, 7 months ago (2017-04-28 18:58:24 UTC) #14
vabr (Chromium)
3 years, 7 months ago (2017-05-02 07:55:48 UTC) #15
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:1) has been created in
https://codereview.chromium.org/2853213002/ by vabr@chromium.org.

The reason for reverting is: Speculative revert, this seems to have broken some
virtual/gpu/fast/canvas/ tests. More info on the associated bug.

BUG=717389.

Powered by Google App Engine
This is Rietveld 408576698