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

Issue 214523008: Use RenderStyle::isCollapsibleWhiteSpace when renderer is available. (Closed)

Created:
6 years, 9 months ago by c.shu
Modified:
6 years, 8 months ago
Reviewers:
esprehn, eseidel
CC:
blink-reviews, sof, eae+blinkwatch, dglazkov+blink, adamk+blink_chromium.org, Inactive, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Use RenderStyle::isCollapsibleWhiteSpace when renderer is available. This patch replaces isCollapsibleWhitespace() with RenderStyle::isCollapsibleWhiteSpace in places where renderer is available. The latter provides more accurate decision so we should always use it when possible. Some test results require rebaseline but none of them failed the test really and the new behavior is correct. BUG=357226 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170706

Patch Set 1 #

Patch Set 2 : Use RenderStyle::isCollapsibleWhiteSpace when renderer is available. #

Total comments: 2

Patch Set 3 : Address reviewer comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -58 lines) Patch
M LayoutTests/editing/deleting/delete-block-table-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/editing/pasteboard/paste-into-anchor-text-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/Element/offsetTop-table-cell-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/html/object-border-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/table/cell-in-row-before-misnested-text-crash-css-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/table/cell-in-row-before-misnested-text-crash-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/table/table-sections-border-spacing-expected.txt View 1 chunk +6 lines, -6 lines 0 comments Download
M LayoutTests/fast/tokenizer/script_extra_close-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/xsl/mozilla-tests-expected.txt View 1 chunk +28 lines, -28 lines 0 comments Download
M LayoutTests/svg/custom/scrolling-embedded-svg-file-image-repaint-problem-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/HTMLInterchange.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/TextIterator.h View 1 chunk +0 lines, -13 lines 0 comments Download
M Source/core/editing/TextIterator.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/htmlediting.h View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
c.shu
6 years, 9 months ago (2014-03-27 19:01:23 UTC) #1
pdr.
+cc esprehn.
6 years, 8 months ago (2014-03-31 18:23:39 UTC) #2
c.shu
Would you review the patch? thanks.
6 years, 8 months ago (2014-04-01 00:20:00 UTC) #3
esprehn
https://codereview.chromium.org/214523008/diff/20001/Source/core/dom/Position.cpp File Source/core/dom/Position.cpp (right): https://codereview.chromium.org/214523008/diff/20001/Source/core/dom/Position.cpp#newcode1066 Source/core/dom/Position.cpp:1066: if (considerNonCollapsibleWhitespace ? (isSpaceOrNewline(c) || c == noBreakSpace) : ...
6 years, 8 months ago (2014-04-01 00:25:54 UTC) #4
c.shu
On 2014/04/01 00:25:54, esprehn wrote: > https://codereview.chromium.org/214523008/diff/20001/Source/core/dom/Position.cpp > File Source/core/dom/Position.cpp (right): > > https://codereview.chromium.org/214523008/diff/20001/Source/core/dom/Position.cpp#newcode1066 > ...
6 years, 8 months ago (2014-04-01 13:36:57 UTC) #5
c.shu
6 years, 8 months ago (2014-04-01 15:27:13 UTC) #6
eseidel
Can you please explain the test cahnges? I don't understand them from first look.
6 years, 8 months ago (2014-04-02 20:02:23 UTC) #7
c.shu
On 2014/04/02 20:02:23, eseidel wrote: > Can you please explain the test cahnges? I don't ...
6 years, 8 months ago (2014-04-02 20:12:28 UTC) #8
eseidel
So all the tests colapse exactly one extra space? Why don't they collapse more?
6 years, 8 months ago (2014-04-02 20:13:23 UTC) #9
c.shu
On 2014/04/02 20:13:23, eseidel wrote: > So all the tests colapse exactly one extra space? ...
6 years, 8 months ago (2014-04-02 20:38:15 UTC) #10
c.shu
On 2014/04/02 20:38:15, c.shu wrote: > On 2014/04/02 20:13:23, eseidel wrote: > > So all ...
6 years, 8 months ago (2014-04-02 20:43:00 UTC) #11
eseidel
lgtm
6 years, 8 months ago (2014-04-02 20:46:01 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/c.shu@samsung.com/214523008/40001
6 years, 8 months ago (2014-04-02 20:46:02 UTC) #13
commit-bot: I haz the power
6 years, 8 months ago (2014-04-02 21:54:56 UTC) #14
Message was sent while issue was closed.
Change committed as 170706

Powered by Google App Engine
This is Rietveld 408576698