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

Issue 2798143003: Avoid duplicate functions/code in core/editing: DirectionalSelection (Closed)

Created:
3 years, 8 months ago by Daniel Bratell
Modified:
3 years, 8 months ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid duplicate functions/code in core/editing: DirectionalSelection While experimenting with unity builds I encountered a few duplicate symbols and functions in core/editing. This patch renames, moves and unifies them. shouldAlwaysUseDirectionalSelection is a common helper function and since it's not identicallty implemented everywhere it cannot be merged. Instead make the one in SelectionModifier a member function to move it out of global scope. BUG=708949 R=yosin@chromium.org Review-Url: https://codereview.chromium.org/2798143003 Cr-Commit-Position: refs/heads/master@{#462427} Committed: https://chromium.googlesource.com/chromium/src/+/0736e37b73d70fc56a93eeac32fff4a56c946c2d

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M third_party/WebKit/Source/core/editing/SelectionModifier.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/SelectionModifier.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (5 generated)
Daniel Bratell
Please take a look.
3 years, 8 months ago (2017-04-06 07:45:00 UTC) #2
yosin_UTC9
lgtm
3 years, 8 months ago (2017-04-06 09:57:56 UTC) #5
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/2798143003/1
3 years, 8 months ago (2017-04-06 09:58:14 UTC) #6
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 11:33:49 UTC) #9
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/0736e37b73d70fc56a93eeac32ff...

Powered by Google App Engine
This is Rietveld 408576698