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

Issue 2902393003: [DMC #17.5] Eliminate DocumentMarker and TextMatchMarker copy constructors (Closed)

Created:
3 years, 7 months ago by rlanday
Modified:
3 years, 6 months ago
Reviewers:
yosin_UTC9, Xiaocheng
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Eliminate DocumentMarker and TextMatchMarker copy constructors We decided DocumentMarkers shouldn't ever be copied. After https://codereview.chromium.org/2905753002, we no longer need to copy DocumentMarkers to create TextMatchMarkers, so we can remove the copy constructor. We can also remove the TextMatchMarker constructor that takes a DocumentMarker. We need to remove the copy constructor anyway because we're turning DocumentMarker into a polymorphic class hierarchy, and copying the base class will no longer produce correct behavior. BUG=707867 Review-Url: https://codereview.chromium.org/2902393003 Cr-Commit-Position: refs/heads/master@{#475824} Committed: https://chromium.googlesource.com/chromium/src/+/fa78f83615f6278ffe657bb6119d1b8339920b36

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add DISALLOW_COPY_AND_ASSIGN #

Patch Set 3 : Rebase #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -12 lines) Patch
M third_party/WebKit/Source/core/editing/markers/DocumentMarker.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp View 1 chunk +0 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/markers/TextMatchMarker.h View 1 2 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 19 (13 generated)
yosin_UTC9
https://codereview.chromium.org/2902393003/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarker.h File third_party/WebKit/Source/core/editing/markers/DocumentMarker.h (left): https://codereview.chromium.org/2902393003/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarker.h#oldcode145 third_party/WebKit/Source/core/editing/markers/DocumentMarker.h:145: DocumentMarker(const DocumentMarker&); Let's add DISALLOW_COPY_AND_ASSIGN(...)
3 years, 7 months ago (2017-05-26 04:41:30 UTC) #2
rlanday
On 2017/05/26 at 04:41:30, yosin wrote: > https://codereview.chromium.org/2902393003/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarker.h > File third_party/WebKit/Source/core/editing/markers/DocumentMarker.h (left): > > https://codereview.chromium.org/2902393003/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarker.h#oldcode145 ...
3 years, 6 months ago (2017-05-26 18:28:03 UTC) #4
Xiaocheng
lgtm
3 years, 6 months ago (2017-05-28 19:41:16 UTC) #12
yosin_UTC9
lgtm
3 years, 6 months ago (2017-05-29 04:58:48 UTC) #13
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/2902393003/60001
3 years, 6 months ago (2017-05-31 04:30:37 UTC) #16
commit-bot: I haz the power
3 years, 6 months ago (2017-05-31 06:13:46 UTC) #19
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/fa78f83615f6278ffe657bb6119d...

Powered by Google App Engine
This is Rietveld 408576698