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

Issue 1309903003: Introduce composed tree version of enclosingNodeOfType() (Closed)

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

Description

Introduce composed tree version of enclosingNodeOfType() This patch introduces composed tree version of |enclosingNodeOfType()| as a preparation of introducing composed tree version of |enclosingBlock()| for templatizing |VisiblePosition| class. This patch is a preparation of making selection to handle granularity for web component, http://crrev.com/1277863002 BUG=513568 TEST=webkit_unit_tests --gtest_fitler=EditingUtilitiesTest.enclosingNodeOfType Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201201

Patch Set 1 : 2015-08-26T13:10:19 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -9 lines) Patch
M Source/core/editing/EditingUtilities.h View 2 chunks +3 lines, -2 lines 3 comments Download
M Source/core/editing/EditingUtilities.cpp View 2 chunks +18 lines, -7 lines 0 comments Download
M Source/core/editing/EditingUtilitiesTest.cpp View 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
yosin_UTC9
PTAL
5 years, 3 months ago (2015-08-26 04:32:31 UTC) #2
hajimehoshi
lgtm https://codereview.chromium.org/1309903003/diff/1/Source/core/editing/EditingUtilities.h File Source/core/editing/EditingUtilities.h (right): https://codereview.chromium.org/1309903003/diff/1/Source/core/editing/EditingUtilities.h#newcode132 Source/core/editing/EditingUtilities.h:132: CORE_EXPORT bool isBlock(const Node*); Is this a global ...
5 years, 3 months ago (2015-08-26 04:50:53 UTC) #3
yosin_UTC9
Thanks for reviewing! https://codereview.chromium.org/1309903003/diff/1/Source/core/editing/EditingUtilities.h File Source/core/editing/EditingUtilities.h (right): https://codereview.chromium.org/1309903003/diff/1/Source/core/editing/EditingUtilities.h#newcode132 Source/core/editing/EditingUtilities.h:132: CORE_EXPORT bool isBlock(const Node*); On 2015/08/26 ...
5 years, 3 months ago (2015-08-26 04:53:13 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1309903003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1309903003/1
5 years, 3 months ago (2015-08-26 04:53:25 UTC) #6
hajimehoshi
https://codereview.chromium.org/1309903003/diff/1/Source/core/editing/EditingUtilities.h File Source/core/editing/EditingUtilities.h (right): https://codereview.chromium.org/1309903003/diff/1/Source/core/editing/EditingUtilities.h#newcode132 Source/core/editing/EditingUtilities.h:132: CORE_EXPORT bool isBlock(const Node*); On 2015/08/26 04:53:13, Yosi_UTC9 wrote: ...
5 years, 3 months ago (2015-08-26 04:55:28 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://src.chromium.org/viewvc/blink?view=rev&revision=201201
5 years, 3 months ago (2015-08-26 05:38:02 UTC) #8
yosin_UTC9
5 years, 3 months ago (2015-08-26 05:58:50 UTC) #9
Message was sent while issue was closed.
On 2015/08/26 04:55:28, hajimehoshi wrote:
>
https://codereview.chromium.org/1309903003/diff/1/Source/core/editing/Editing...
> File Source/core/editing/EditingUtilities.h (right):
> 
>
https://codereview.chromium.org/1309903003/diff/1/Source/core/editing/Editing...
> Source/core/editing/EditingUtilities.h:132: CORE_EXPORT bool isBlock(const
> Node*);
> On 2015/08/26 04:53:13, Yosi_UTC9 wrote:
> > On 2015/08/26 04:50:53, hajimehoshi wrote:
> > > Is this a global function? I guess the name isBlock is too general. How
> about
> > > renaming in another CL?
> > 
> > Good catch. I'll rename it to another name, e.g. isBlockElement(Node*).
> > Still short?
> 
> isBlockElement would be much better (as long as an element named 'block'
doesn't
> exist).

As discussed with layout/css expert, it is better to call
isEnclosingBlock(Node*).
The definition of isBlock() isn't clear both layout and CSS points of views.

Powered by Google App Engine
This is Rietveld 408576698