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

Issue 2833043002: [DMC #1.93] Make DocumentMarkerController::AddMarker() take a pointer instead of a const ref (Closed)

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

Description

Make DocumentMarkerController::AddMarker() take a pointer instead of a const ref Right now this method can take a const reference despite DMC possibly later needing to edit the marker because the current implementation always copies the marker (to construct a RenderedDocumentMarker). However, this is not guaranteed by the API, and will be changed in the future once we no longer construct RenderedDocumentMarkers for all MarkerTypes. So this method needs to be changed to take a non-const pointer (could use a ref but I think doing so is discouraged by the style guide). Also, the methods that call AddMarker() need to pass pointers to heap-allocated objects. BUG=707867 Review-Url: https://codereview.chromium.org/2833043002 Cr-Commit-Position: refs/heads/master@{#466596} Committed: https://chromium.googlesource.com/chromium/src/+/9ad9f6860b4d6a4ec7f7f975b2c99672e02d5d49

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Remove dep #

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

Messages

Total messages: 17 (13 generated)
rlanday
3 years, 8 months ago (2017-04-21 08:15:29 UTC) #3
yosin_UTC9
lgtm
3 years, 8 months ago (2017-04-24 04:05:45 UTC) #11
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/2833043002/40001
3 years, 8 months ago (2017-04-24 06:00:58 UTC) #14
commit-bot: I haz the power
3 years, 8 months ago (2017-04-24 08:31:00 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/9ad9f6860b4d6a4ec7f7f975b2c9...

Powered by Google App Engine
This is Rietveld 408576698