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

Issue 2121313003: [Editing][DOM][CodeHealth] Make Node::isContentEditable and Node::isRichEditable global functions. (Closed)

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

Description

[Editing][DOM][CodeHealth] Make Node::isContentEditable and Node::isRichEditable global functions. Make Node::isContentEditable and Node::isRichEditable global functions. This CL also re-introduce HTMLElement::isContentEditable because it is a web-exposed IDL attribute. This is a preparation to move these functions from core/dom to core/editing/ TEST=No change in behavior Committed: https://crrev.com/4b266be31a4596cf8b76bdce903c4b138803dbad Cr-Commit-Position: refs/heads/master@{#407100}

Patch Set 1 #

Total comments: 2

Patch Set 2 #

Total comments: 5

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -42 lines) Patch
M third_party/WebKit/Source/core/dom/Node.h View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Node.cpp View 1 2 2 chunks +9 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/editing/CaretBase.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/SelectionController.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/DeleteFromTextNodeCommand.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/commands/InsertNodeBeforeCommand.cpp View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/RemoveNodeCommand.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLElement.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLElement.cpp View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/DragController.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/TouchAdjustment.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/web/WebElement.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp View 1 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebNode.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 5 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 31 (14 generated)
yoichio
PTAL. but I want to wait shipping another patch conflicting: https://codereview.chromium.org/2120913002/
4 years, 5 months ago (2016-07-07 09:14:17 UTC) #3
yoichio
4 years, 5 months ago (2016-07-07 09:14:26 UTC) #4
yosin_UTC9
Since hasEditableStyle() and isEditableToAccessibility() don't take nullptr, let's use |const Node&|. https://codereview.chromium.org/2121313003/diff/1/third_party/WebKit/Source/core/dom/Node.cpp File third_party/WebKit/Source/core/dom/Node.cpp (right): ...
4 years, 5 months ago (2016-07-07 09:34:54 UTC) #5
yoichio
PTAL
4 years, 5 months ago (2016-07-21 08:14:03 UTC) #10
yosin_UTC9
https://codereview.chromium.org/2121313003/diff/20001/third_party/WebKit/Source/core/html/HTMLElement.cpp File third_party/WebKit/Source/core/html/HTMLElement.cpp (right): https://codereview.chromium.org/2121313003/diff/20001/third_party/WebKit/Source/core/html/HTMLElement.cpp#newcode589 third_party/WebKit/Source/core/html/HTMLElement.cpp:589: bool HTMLElement::isContentEditable() const Why do we need to have ...
4 years, 5 months ago (2016-07-21 08:25:02 UTC) #11
tkent
lgtm https://codereview.chromium.org/2121313003/diff/20001/third_party/WebKit/Source/web/WebNode.cpp File third_party/WebKit/Source/web/WebNode.cpp (right): https://codereview.chromium.org/2121313003/diff/20001/third_party/WebKit/Source/web/WebNode.cpp#newcode172 third_party/WebKit/Source/web/WebNode.cpp:172: bool WebNode::isContentEditable() const I found this function was ...
4 years, 5 months ago (2016-07-21 08:28:44 UTC) #12
yosin_UTC9
Please update description: >Make Node::isContentEditable and ::isContentRichEditable static. Make Node::isContentEditable and Node::isRichEditable global functions. >This ...
4 years, 5 months ago (2016-07-21 08:28:57 UTC) #13
tkent
https://codereview.chromium.org/2121313003/diff/20001/third_party/WebKit/Source/core/html/HTMLElement.cpp File third_party/WebKit/Source/core/html/HTMLElement.cpp (right): https://codereview.chromium.org/2121313003/diff/20001/third_party/WebKit/Source/core/html/HTMLElement.cpp#newcode589 third_party/WebKit/Source/core/html/HTMLElement.cpp:589: bool HTMLElement::isContentEditable() const On 2016/07/21 at 08:25:02, Yosi_UTC9 wrote: ...
4 years, 5 months ago (2016-07-21 08:29:55 UTC) #14
yoichio
Update description. https://codereview.chromium.org/2121313003/diff/20001/third_party/WebKit/Source/web/WebNode.cpp File third_party/WebKit/Source/web/WebNode.cpp (right): https://codereview.chromium.org/2121313003/diff/20001/third_party/WebKit/Source/web/WebNode.cpp#newcode172 third_party/WebKit/Source/web/WebNode.cpp:172: bool WebNode::isContentEditable() const On 2016/07/21 08:28:44, tkent ...
4 years, 5 months ago (2016-07-21 08:36:33 UTC) #17
yosin_UTC9
On 2016/07/21 at 08:29:55, tkent wrote: > https://codereview.chromium.org/2121313003/diff/20001/third_party/WebKit/Source/core/html/HTMLElement.cpp > File third_party/WebKit/Source/core/html/HTMLElement.cpp (right): > > https://codereview.chromium.org/2121313003/diff/20001/third_party/WebKit/Source/core/html/HTMLElement.cpp#newcode589 ...
4 years, 5 months ago (2016-07-21 08:44:30 UTC) #18
yoichio
On 2016/07/21 08:44:30, Yosi_UTC9 wrote: > On 2016/07/21 at 08:29:55, tkent wrote: > > > ...
4 years, 5 months ago (2016-07-22 04:20:48 UTC) #21
yosin_UTC9
On 2016/07/22 at 04:20:48, yoichio wrote: > On 2016/07/21 08:44:30, Yosi_UTC9 wrote: > > On ...
4 years, 5 months ago (2016-07-22 04:46:12 UTC) #22
yoichio
On 2016/07/22 04:46:12, Yosi_UTC9 wrote: > On 2016/07/22 at 04:20:48, yoichio wrote: > > On ...
4 years, 5 months ago (2016-07-22 05:10:20 UTC) #23
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/2121313003/40001
4 years, 5 months ago (2016-07-22 05:10:54 UTC) #26
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-07-22 08:19:41 UTC) #28
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/4b266be31a4596cf8b76bdce903c4b138803dbad Cr-Commit-Position: refs/heads/master@{#407100}
4 years, 5 months ago (2016-07-22 08:21:03 UTC) #30
tkent
4 years, 5 months ago (2016-07-25 01:54:16 UTC) #31
Message was sent while issue was closed.
https://codereview.chromium.org/2121313003/diff/20001/third_party/WebKit/Sour...
File third_party/WebKit/Source/web/WebNode.cpp (right):

https://codereview.chromium.org/2121313003/diff/20001/third_party/WebKit/Sour...
third_party/WebKit/Source/web/WebNode.cpp:172: bool WebNode::isContentEditable()
const
On 2016/07/21 at 08:36:33, yoichio wrote:
> On 2016/07/21 08:28:44, tkent wrote:
> > I found this function was not used and we should remove it though it's
unrelated
> > to this CL.
> 
> Acknowledged.

I was wrong.  It's used only for Android. 
RenderWidget::showUnhandledTapUIIfNeeded().

Powered by Google App Engine
This is Rietveld 408576698