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

Issue 2179273003: Implement spec-compliant HTMLElement.prototype.isContentEditable (Closed)

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

Description

Implement spec-compliant HTMLElement.prototype.isContentEditable Web-exposed isContentEditable and our style-based editability are different concepts. For example, the former should be |true| even if an element has display: none and users can't edit it. So, we don't need to use the style-based editability to implement isContentEditable. Specifications: https://html.spec.whatwg.org/multipage/interaction.html#dom-iscontenteditable https://w3c.github.io/editing/execCommand.html#editing-host https://w3c.github.io/editing/execCommand.html#editable BUG=313082 Committed: https://crrev.com/57deef0bd2f6ff07999d84078630cc4ee9c11f80 Cr-Commit-Position: refs/heads/master@{#408035}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Move isEditingHost and isEditable to HTMLElement.cpp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -14 lines) Patch
D third_party/WebKit/LayoutTests/imported/wpt/html/editing/editing-0/contenteditable/user-interaction-editing-contenteditable-expected.txt View 1 chunk +0 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLElement.h View 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLElement.cpp View 1 4 chunks +39 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLElement.idl View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 23 (15 generated)
tkent
yosin@, yoichio@, would you review this please?
4 years, 4 months ago (2016-07-27 00:51:44 UTC) #14
yoichio
https://codereview.chromium.org/2179273003/diff/20001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp File third_party/WebKit/Source/core/editing/EditingUtilities.cpp (right): https://codereview.chromium.org/2179273003/diff/20001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp#newcode314 third_party/WebKit/Source/core/editing/EditingUtilities.cpp:314: } If these functions are just for HTMLEelement::isContentEditable and ...
4 years, 4 months ago (2016-07-27 01:29:35 UTC) #15
yosin_UTC9
Oops, forgot to send. https://codereview.chromium.org/2179273003/diff/20001/third_party/WebKit/Source/core/editing/EditingUtilities.h File third_party/WebKit/Source/core/editing/EditingUtilities.h (right): https://codereview.chromium.org/2179273003/diff/20001/third_party/WebKit/Source/core/editing/EditingUtilities.h#newcode79 third_party/WebKit/Source/core/editing/EditingUtilities.h:79: bool isEditingHost(const Node&); Could you ...
4 years, 4 months ago (2016-07-27 01:34:36 UTC) #16
tkent
ok, I moved isEditingHost and isEditable to HTMLElement.cpp, and wrapped them with anonymous namespace. Please ...
4 years, 4 months ago (2016-07-27 02:21:06 UTC) #17
yosin_UTC9
lgtm
4 years, 4 months ago (2016-07-27 02:23:21 UTC) #19
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/2179273003/40001
4 years, 4 months ago (2016-07-27 02:23:51 UTC) #20
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 4 months ago (2016-07-27 03:47:38 UTC) #21
commit-bot: I haz the power
4 years, 4 months ago (2016-07-27 03:49:38 UTC) #23
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/57deef0bd2f6ff07999d84078630cc4ee9c11f80
Cr-Commit-Position: refs/heads/master@{#408035}

Powered by Google App Engine
This is Rietveld 408576698