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

Issue 1854583003: Make leadingWhitespacePosition() to respect "white-space" CSS property (Closed)

Created:
4 years, 8 months ago by yosin_UTC9
Modified:
4 years, 8 months ago
Reviewers:
tkent, yoichio
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 leadingWhitespacePosition() to respect "white-space" CSS property This patch makes |leadingWhitespacePosition()|, which returns collapsible whitespace position, to return null |Position| when a previous position of specified position is in a element which preserves whitespaces, e.g. "white-space:pre", "white-space:pre-word", etc. Before this patch, |leadingWhitespacePosition()| uses only |isCollapsibleWhitespace(UChar)| to check collapsible whitespace without considering "white-space" CSS property. BUG=598665 TESET=run_layout_test editing/execCommand/insert_paragraph/insert_paragraph_pre_crash.html Committed: https://crrev.com/2063467918ab92fe1969fbd9a1b37f29c4661cc6 Cr-Commit-Position: refs/heads/master@{#384509}

Patch Set 1 #

Total comments: 2

Patch Set 2 : 2016-04-01T14:49:00 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/editing/execCommand/insert_paragraph/insert_paragraph_pre_crash.html View 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/EditingUtilities.h View 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/EditingUtilities.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (4 generated)
yosin_UTC9
PTAL
4 years, 8 months ago (2016-04-01 04:21:39 UTC) #3
yoichio
https://codereview.chromium.org/1854583003/diff/1/third_party/WebKit/Source/core/editing/EditingUtilities.cpp File third_party/WebKit/Source/core/editing/EditingUtilities.cpp (right): https://codereview.chromium.org/1854583003/diff/1/third_party/WebKit/Source/core/editing/EditingUtilities.cpp#newcode1409 third_party/WebKit/Source/core/editing/EditingUtilities.cpp:1409: if (!isSpaceOrNewline(previousCharacter) && previousCharacter != noBreakSpaceCharacter) This check works ...
4 years, 8 months ago (2016-04-01 05:10:05 UTC) #4
yosin_UTC9
PTAL The code change is only checking "white-space" CSS property now. https://codereview.chromium.org/1854583003/diff/1/third_party/WebKit/Source/core/editing/EditingUtilities.cpp File third_party/WebKit/Source/core/editing/EditingUtilities.cpp (right): ...
4 years, 8 months ago (2016-04-01 05:53:37 UTC) #5
yoichio
On 2016/04/01 05:53:37, Yosi_UTC9 wrote: > PTAL > > The code change is only checking ...
4 years, 8 months ago (2016-04-01 06:14:16 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1854583003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1854583003/20001
4 years, 8 months ago (2016-04-01 06:39:54 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-01 07:30:23 UTC) #9
commit-bot: I haz the power
4 years, 8 months ago (2016-04-01 07:31:49 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/2063467918ab92fe1969fbd9a1b37f29c4661cc6
Cr-Commit-Position: refs/heads/master@{#384509}

Powered by Google App Engine
This is Rietveld 408576698