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

Issue 2402223002: Fix class name which has only space (Closed)

Created:
4 years, 2 months ago by xing.xu
Modified:
4 years, 1 month ago
Reviewers:
skobes, foolip
CC:
chromium-reviews, blink-reviews-w3ctests_chromium.org, tfarina, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix class name which has only space When length of className is 0, should return ClassStringContent::Empty, this is done by classStringHasClassName(const AtomicString& newClassString. If length >= 1 and only white space, should return ClassStringContent::WhiteSpaceOnly. Spec is here: https://dom.spec.whatwg.org/#dom-element-classname. This is from w3c-test: http://w3c-test.org/dom/nodes/Element-classlist.html. BUG=651744 Test=LayoutTests/imported/wpt/dom/nodes/Element-classlist.html Committed: https://crrev.com/26b5369d478f5ef43d45ca0c7db8e48dadac35c9 Cr-Commit-Position: refs/heads/master@{#425578}

Patch Set 1 #

Patch Set 2 : Fix layout tests #

Total comments: 2

Patch Set 3 : Fix class name which has only space #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -4 lines) Patch
M third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/Element-classlist-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 2 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 33 (22 generated)
xing.xu
Hi, please help to review.
4 years, 2 months ago (2016-10-09 08:45:52 UTC) #3
foolip
On 2016/10/09 08:45:52, xing.xu wrote: > Hi, please help to review. Started a dry run, ...
4 years, 2 months ago (2016-10-10 11:58:30 UTC) #8
xing.xu
On 2016/10/10 11:58:30, foolip wrote: > On 2016/10/09 08:45:52, xing.xu wrote: > > Hi, please ...
4 years, 2 months ago (2016-10-11 01:58:56 UTC) #11
xing.xu
Hi, foolip@,skobes@, fix the tests, PTAL.
4 years, 2 months ago (2016-10-14 04:47:03 UTC) #16
skobes
https://codereview.chromium.org/2402223002/diff/20001/third_party/WebKit/LayoutTests/paint/invalidation/transform-rotate-and-remove-expected.txt File third_party/WebKit/LayoutTests/paint/invalidation/transform-rotate-and-remove-expected.txt (right): https://codereview.chromium.org/2402223002/diff/20001/third_party/WebKit/LayoutTests/paint/invalidation/transform-rotate-and-remove-expected.txt#newcode10 third_party/WebKit/LayoutTests/paint/invalidation/transform-rotate-and-remove-expected.txt:10: "object": "LayoutBlockFlow DIV id='rel' class=''", The w3c test is ...
4 years, 2 months ago (2016-10-14 20:41:31 UTC) #17
xing.xu
On 2016/10/14 20:41:31, skobes wrote: > https://codereview.chromium.org/2402223002/diff/20001/third_party/WebKit/LayoutTests/paint/invalidation/transform-rotate-and-remove-expected.txt > File > third_party/WebKit/LayoutTests/paint/invalidation/transform-rotate-and-remove-expected.txt > (right): > > ...
4 years, 2 months ago (2016-10-15 05:34:48 UTC) #22
skobes
lgtm
4 years, 2 months ago (2016-10-15 19:12:11 UTC) #24
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/2402223002/40001
4 years, 2 months ago (2016-10-15 23:09:25 UTC) #26
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/2402223002/40001
4 years, 2 months ago (2016-10-15 23:16:25 UTC) #29
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-15 23:21:57 UTC) #31
commit-bot: I haz the power
4 years, 2 months ago (2016-10-15 23:23:27 UTC) #33
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/26b5369d478f5ef43d45ca0c7db8e48dadac35c9
Cr-Commit-Position: refs/heads/master@{#425578}

Powered by Google App Engine
This is Rietveld 408576698