Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(3)

Issue 1191193002: Hide canonicalPosition in VisiblePosition from header file (Closed)

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

Description

Hide canonicalPosition in VisiblePosition from header file This patch makes static member function |VisiblePosition::canonicalPosition| to static function in "VisiblePosition.cpp" for code health by limiting visibility. Since following patch make |canonicalPosition()| to be a template funciton to make |VisiblePosition| to work with both DOM tree position and composed tree position for selection for web component, we don't want to have template declaration, which is implementation details and redundant information for clients of |VisiblePostion|, in private section of header file. a preparation of converting |canonicalPosition| to a template function to make |VisibilePosition| to work with both a position in DOM tree and composed tree. This patch is result of collaboration work with hajimehoshi@chromium.org for selection of web components. After this patch, we are going to implement another strategies for the composed tree. We've already prepared that at http://crrev.com/1106433002. BUG=275851 TEST=n/a; No behavior changes. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197430

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -2 lines) Patch
M Source/core/editing/VisiblePosition.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/editing/VisiblePosition.cpp View 2 chunks +3 lines, -1 line 1 comment Download

Messages

Total messages: 7 (2 generated)
yosin_UTC9
PTAL
4 years, 10 months ago (2015-06-19 03:49:17 UTC) #2
tkent
https://codereview.chromium.org/1191193002/diff/1/Source/core/editing/VisiblePosition.cpp File Source/core/editing/VisiblePosition.cpp (right): https://codereview.chromium.org/1191193002/diff/1/Source/core/editing/VisiblePosition.cpp#newcode61 Source/core/editing/VisiblePosition.cpp:61: static Position canonicalPosition(const Position& passedPosition); Usually we don't add ...
4 years, 10 months ago (2015-06-19 03:53:58 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1191193002/1
4 years, 10 months ago (2015-06-19 04:18:19 UTC) #5
yosin_UTC9
On 2015/06/19 03:53:58, tkent wrote: > https://codereview.chromium.org/1191193002/diff/1/Source/core/editing/VisiblePosition.cpp > File Source/core/editing/VisiblePosition.cpp (right): > > https://codereview.chromium.org/1191193002/diff/1/Source/core/editing/VisiblePosition.cpp#newcode61 > ...
4 years, 10 months ago (2015-06-19 04:18:29 UTC) #6
commit-bot: I haz the power
4 years, 10 months ago (2015-06-19 04:22:32 UTC) #7
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197430

Powered by Google App Engine
This is Rietveld 408576698