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

Issue 1320573003: Rename isBlock() to isEnclosingBlock() in EditingUtilities (Closed)

Created:
5 years, 3 months ago by yosin_UTC9
Modified:
5 years, 3 months ago
Reviewers:
yoichio, hajimehoshi
CC:
blink-reviews, blink-reviews-style_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Rename isBlock() to isEnclosingBlock() in EditingUtilities This patch renames |isBlock(Node*)| to |isEnclosingBlock(Node*)| to make meaning of function cleaner for improving readability. This is follow up patch of http://crrev.com/1309903003, which introduces |enclosingNodeOfType()|, which uses |isBlock()|. This patch is a preparation of making selection to handle granularity for web component, http://crrev.com/1277863002 BUG=513568 TEST=n/a; No behavior changes Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201261

Patch Set 1 : 2015-08-26T15:16:19 #

Total comments: 2

Patch Set 2 : 2015-08-26T16:34:56 Follow review commands: s/0/nullptr/ #

Patch Set 3 : 2015-08-26T21:48:03 Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -28 lines) Patch
M Source/core/editing/EditingUtilities.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/EditingUtilities.cpp View 1 2 2 chunks +3 lines, -5 lines 0 comments Download
M Source/core/editing/EditingUtilitiesTest.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/editing/VisibleSelection.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/editing/VisibleUnits.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/editing/commands/ApplyStyleCommand.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/editing/commands/CompositeEditCommand.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M Source/core/editing/commands/DeleteSelectionCommand.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/editing/commands/FormatBlockCommand.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/commands/InsertListCommand.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/commands/ReplaceSelectionCommand.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/editing/serializers/StyledMarkupSerializer.cpp View 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 21 (10 generated)
yosin_UTC9
PTAL
5 years, 3 months ago (2015-08-26 07:16:45 UTC) #2
hajimehoshi
lgtm https://codereview.chromium.org/1320573003/diff/1/Source/core/editing/EditingUtilities.cpp File Source/core/editing/EditingUtilities.cpp (right): https://codereview.chromium.org/1320573003/diff/1/Source/core/editing/EditingUtilities.cpp#newcode644 Source/core/editing/EditingUtilities.cpp:644: return enclosingNode && enclosingNode->isElementNode() ? toElement(enclosingNode) : 0; ...
5 years, 3 months ago (2015-08-26 07:21:48 UTC) #3
yosin_UTC9
Thanks! https://codereview.chromium.org/1320573003/diff/1/Source/core/editing/EditingUtilities.cpp File Source/core/editing/EditingUtilities.cpp (right): https://codereview.chromium.org/1320573003/diff/1/Source/core/editing/EditingUtilities.cpp#newcode644 Source/core/editing/EditingUtilities.cpp:644: return enclosingNode && enclosingNode->isElementNode() ? toElement(enclosingNode) : 0; ...
5 years, 3 months ago (2015-08-26 07:35:54 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1320573003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1320573003/20001
5 years, 3 months ago (2015-08-26 07:36:06 UTC) #7
commit-bot: I haz the power
Failed to apply patch for Source/core/editing/EditingUtilities.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
5 years, 3 months ago (2015-08-26 09:35:13 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1320573003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1320573003/20001
5 years, 3 months ago (2015-08-26 09:47:54 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/92933)
5 years, 3 months ago (2015-08-26 09:53:10 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1320573003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1320573003/40001
5 years, 3 months ago (2015-08-26 12:49:20 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/103738)
5 years, 3 months ago (2015-08-26 16:29:54 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1320573003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1320573003/40001
5 years, 3 months ago (2015-08-26 22:52:41 UTC) #20
commit-bot: I haz the power
5 years, 3 months ago (2015-08-26 23:51:46 UTC) #21
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=201261

Powered by Google App Engine
This is Rietveld 408576698