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

Issue 383163003: Add intentional optimization comment in Node::setTextContent (Closed)

Created:
6 years, 5 months ago by kangil_
Modified:
6 years, 5 months ago
Reviewers:
tkent, haraken, sof, eseidel
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, sof, eae+blinkwatch, rwlbuis, eseidel
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Add intentional optimization comment in Node::setTextContent SPEC: http://dom.spec.whatwg.org/#dom-node-textcontent Current spec describes to use new text node on setting Node.textContent However, current implementation added early return for optimization purpose. So this CL added a note as well as crbug pointer to describe those explicitly. TEST=LayoutTests/fast/dom/Node/textContent.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178386

Patch Set 1 #

Patch Set 2 : Rebase layout tests case #

Total comments: 2

Patch Set 3 : Take review comment into consideration #

Patch Set 4 : Take review comment into consideration #

Unified diffs Side-by-side diffs Delta from patch set Stats (+346 lines, -0 lines) Patch
A LayoutTests/fast/dom/Node/textContent.html View 1 2 1 chunk +258 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/Node/textContent-expected.txt View 1 2 3 1 chunk +84 lines, -0 lines 0 comments Download
M Source/core/dom/Node.cpp View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
kangil_
PTAL
6 years, 5 months ago (2014-07-12 07:33:26 UTC) #1
haraken
Does the new behavior align with Firefox and IE? https://codereview.chromium.org/383163003/diff/20001/LayoutTests/fast/dom/Node/textContent.html File LayoutTests/fast/dom/Node/textContent.html (right): https://codereview.chromium.org/383163003/diff/20001/LayoutTests/fast/dom/Node/textContent.html#newcode25 LayoutTests/fast/dom/Node/textContent.html:25: ...
6 years, 5 months ago (2014-07-12 15:46:13 UTC) #2
kangil_
Thanks for review. I added behavior in other browsers in description. PTAL! https://codereview.chromium.org/383163003/diff/20001/LayoutTests/fast/dom/Node/textContent.html File LayoutTests/fast/dom/Node/textContent.html ...
6 years, 5 months ago (2014-07-12 16:12:10 UTC) #3
haraken
LGTM
6 years, 5 months ago (2014-07-12 16:44:12 UTC) #4
kangil_
The CQ bit was checked by kangil.han@samsung.com
6 years, 5 months ago (2014-07-12 16:45:56 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kangil.han@samsung.com/383163003/40001
6 years, 5 months ago (2014-07-12 16:47:08 UTC) #6
sof
(Cc: +eseidel.) Hmm, didn't we add this as an optimization in crbug.com/352836 recently - why ...
6 years, 5 months ago (2014-07-12 16:54:14 UTC) #7
haraken
The CQ bit was unchecked by haraken@chromium.org
6 years, 5 months ago (2014-07-12 16:56:23 UTC) #8
haraken
On 2014/07/12 16:54:14, sof wrote: > (Cc: +eseidel.) > > Hmm, didn't we add this ...
6 years, 5 months ago (2014-07-12 16:56:48 UTC) #9
eseidel
not lgtm. This was an intentional optimization.
6 years, 5 months ago (2014-07-12 17:34:07 UTC) #10
haraken
It'd be great if we have a comment to mention that this is intentionally violating ...
6 years, 5 months ago (2014-07-12 17:48:46 UTC) #11
eseidel
I should note that this is also only one of several places where we make ...
6 years, 5 months ago (2014-07-12 17:51:19 UTC) #12
kangil_
On 2014/07/12 17:34:07, eseidel wrote: > not lgtm. This was an intentional optimization. Thanks for ...
6 years, 5 months ago (2014-07-13 11:03:09 UTC) #13
kangil_
@eseidel: Gentle ping. :)
6 years, 5 months ago (2014-07-17 11:51:48 UTC) #14
eseidel
lgtm
6 years, 5 months ago (2014-07-17 16:54:30 UTC) #15
commit-bot: I haz the power
6 years, 5 months ago (2014-07-17 17:49:39 UTC) #16
Message was sent while issue was closed.
Change committed as 178386

Powered by Google App Engine
This is Rietveld 408576698