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

Issue 1611953002: Rename editableRootElementForPosition() to rootEditableElementOf() (Closed)

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

Description

This patch renames |editableRootElementForPosition()| to |rootEditableElementOf()| to align with |Node::rootEditableElement() and |VisiblePosition| version of |rootEditableElementOf()|. BUG=578974 TEST=n/a; no behavior changes Committed: https://crrev.com/d9a9181fd4f36031b9d02db8b82e1679a77844ea Cr-Commit-Position: refs/heads/master@{#370679}

Patch Set 1 : 2016-01-21T18:23:57 #

Total comments: 2

Messages

Total messages: 16 (7 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1611953002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1611953002/1
4 years, 11 months ago (2016-01-21 09:26:01 UTC) #2
yosin_UTC9
PTAL
4 years, 11 months ago (2016-01-21 09:37:56 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-21 11:03:10 UTC) #8
tkent
lgtm https://codereview.chromium.org/1611953002/diff/1/third_party/WebKit/Source/core/editing/EditingUtilities.cpp File third_party/WebKit/Source/core/editing/EditingUtilities.cpp (right): https://codereview.chromium.org/1611953002/diff/1/third_party/WebKit/Source/core/editing/EditingUtilities.cpp#newcode231 third_party/WebKit/Source/core/editing/EditingUtilities.cpp:231: ContainerNode* node = highestRoot->parentNode(); Not related to this ...
4 years, 11 months ago (2016-01-21 13:19:38 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1611953002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1611953002/1
4 years, 11 months ago (2016-01-21 13:20:01 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 11 months ago (2016-01-21 13:24:38 UTC) #12
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/d9a9181fd4f36031b9d02db8b82e1679a77844ea Cr-Commit-Position: refs/heads/master@{#370679}
4 years, 11 months ago (2016-01-21 13:25:38 UTC) #14
tkent
https://codereview.chromium.org/1611953002/diff/1/third_party/WebKit/Source/core/editing/EditingUtilities.cpp File third_party/WebKit/Source/core/editing/EditingUtilities.cpp (right): https://codereview.chromium.org/1611953002/diff/1/third_party/WebKit/Source/core/editing/EditingUtilities.cpp#newcode231 third_party/WebKit/Source/core/editing/EditingUtilities.cpp:231: ContainerNode* node = highestRoot->parentNode(); On 2016/01/21 at 13:19:38, tkent ...
4 years, 11 months ago (2016-01-26 04:23:59 UTC) #15
yosin_UTC9
4 years, 11 months ago (2016-01-26 04:56:58 UTC) #16
Message was sent while issue was closed.
On 2016/01/26 at 04:23:59, tkent wrote:
>
https://codereview.chromium.org/1611953002/diff/1/third_party/WebKit/Source/c...
> File third_party/WebKit/Source/core/editing/EditingUtilities.cpp (right):
> 
>
https://codereview.chromium.org/1611953002/diff/1/third_party/WebKit/Source/c...
> third_party/WebKit/Source/core/editing/EditingUtilities.cpp:231:
ContainerNode* node = highestRoot->parentNode();
> On 2016/01/21 at 13:19:38, tkent wrote:
> > Not related to this CL, but I wonder why we need to scan ancestors of
rootEditableElement.
> 
> I realized this function could return a Document if BODY is missing.  Is this
intentional?

Because of its name, no |Element|, and return value |ContanerNode*|, it seems
|highestEditableRoot()| can return |Document|.

BTW, if we don't treat BODY as special, we can return |Document*| when
designMode is 'on'.

Powered by Google App Engine
This is Rietveld 408576698