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

Issue 1213213004: Introduce use counters for shadow DOM handling in plainText() (Closed)

Created:
5 years, 5 months ago by yosin_UTC9
Modified:
5 years, 5 months ago
Reviewers:
yoichio, tkent, hayato
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, sof, eae+blinkwatch, rwlbuis, hajimehoshi
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Introduce use counters for shadow DOM handling in plainText() Since http://crrev.com/98493009, |Element.innerText|, |Selection.toString()|, |Window.find()| and |execCommand("find")| JavaScript API returns text including text in shadow DOM tree. This behavior is unexpected and incompatible with other browsers. We would like to make these API behave as same as other browsers. However, we aren't sure that real world users depend on this incompatible behavior. If real world usages of very small, we'll changes these API to compatible other browsers. Note: IE and Firefox haven't supported shadow DOM yet. Safari supports user agent shadow DOM, but these APIs returns text from DOM tree. This patch introduces use counters for these APIs contains text from shadow DOM tree for a preparation of collecting real world usage to determine user affect when change these APIs behavior as other browsers. BUG=n/a TEST=n/a; no behavior changes Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=198268

Patch Set 1 : 2015-07-02T14:55:38 #

Patch Set 2 : 2015-07-02T15:13:50 Add comment for |m_handleShadowRoot| #

Total comments: 4

Patch Set 3 : 2015-07-02T16:05:10 Add counter for Window.find #

Patch Set 4 : 2015-07-03T14:40:27 Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -6 lines) Patch
M Source/core/dom/Element.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/DOMSelection.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/Editor.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/FindOptions.h View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M Source/core/editing/iterators/CharacterIterator.cpp View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M Source/core/editing/iterators/TextIterator.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/editing/iterators/TextIterator.cpp View 1 2 4 chunks +14 lines, -0 lines 0 comments Download
M Source/core/editing/iterators/TextIteratorFlags.h View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M Source/core/frame/UseCounter.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
yosin_UTC9
PTAL
5 years, 5 months ago (2015-07-02 06:19:12 UTC) #2
yoichio
https://codereview.chromium.org/1213213004/diff/20001/Source/core/dom/Element.cpp File Source/core/dom/Element.cpp (right): https://codereview.chromium.org/1213213004/diff/20001/Source/core/dom/Element.cpp#newcode2500 Source/core/dom/Element.cpp:2500: return plainText(Position(this, Position::PositionIsBeforeChildren), Position(this, Position::PositionIsAfterChildren), TextIteratorForInnerText); Why do't you ...
5 years, 5 months ago (2015-07-02 06:28:39 UTC) #4
yosin_UTC9
Update description to make an intention of this patch clear. https://codereview.chromium.org/1213213004/diff/20001/Source/core/dom/Element.cpp File Source/core/dom/Element.cpp (right): https://codereview.chromium.org/1213213004/diff/20001/Source/core/dom/Element.cpp#newcode2500 ...
5 years, 5 months ago (2015-07-02 06:40:29 UTC) #5
yoichio
https://codereview.chromium.org/1213213004/diff/20001/Source/core/dom/Element.cpp File Source/core/dom/Element.cpp (right): https://codereview.chromium.org/1213213004/diff/20001/Source/core/dom/Element.cpp#newcode2500 Source/core/dom/Element.cpp:2500: return plainText(Position(this, Position::PositionIsBeforeChildren), Position(this, Position::PositionIsAfterChildren), TextIteratorForInnerText); On 2015/07/02 06:40:29, ...
5 years, 5 months ago (2015-07-02 07:10:32 UTC) #6
yosin_UTC9
PTAL It's ready! https://codereview.chromium.org/1213213004/diff/20001/Source/core/dom/Element.cpp File Source/core/dom/Element.cpp (right): https://codereview.chromium.org/1213213004/diff/20001/Source/core/dom/Element.cpp#newcode2500 Source/core/dom/Element.cpp:2500: return plainText(Position(this, Position::PositionIsBeforeChildren), Position(this, Position::PositionIsAfterChildren), TextIteratorForInnerText); ...
5 years, 5 months ago (2015-07-02 08:08:31 UTC) #7
yoichio
On 2015/07/02 08:08:31, Yosi_UTC9 wrote: > PTAL > It's ready! > > https://codereview.chromium.org/1213213004/diff/20001/Source/core/dom/Element.cpp > File ...
5 years, 5 months ago (2015-07-02 08:17:21 UTC) #8
yosin_UTC9
ping...
5 years, 5 months ago (2015-07-03 01:18:32 UTC) #10
hayato
lgtm
5 years, 5 months ago (2015-07-03 05:11:14 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1213213004/60001
5 years, 5 months ago (2015-07-03 05:41:49 UTC) #14
commit-bot: I haz the power
5 years, 5 months ago (2015-07-03 08:22:13 UTC) #15
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=198268

Powered by Google App Engine
This is Rietveld 408576698