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

Issue 2867693003: Changed PassRefPtr templated copy constructor to move constructor. (Closed)

Created:
3 years, 7 months ago by Bugs Nash
Modified:
3 years, 7 months ago
Reviewers:
haraken, Yuta Kitamura
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, kinuko+watch, rwlbuis, sof
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Changed PassRefPtr templated copy constructor to move constructor. Changed argument in PassRefPtr constructor that takes a PassRefPtr with a different inner type from a const lvalue to an rvalue, making the constructor a move constructor instead of a copy constructor and forbidding PassRefPtr copies when the inner type is different. Added move wraps to call sites to ensure they pass rvalues. Part of making PassRefPtr move only, in preparation for the removal of PassRefPtr. BUG=640449 Review-Url: https://codereview.chromium.org/2867693003 Cr-Commit-Position: refs/heads/master@{#470219} Committed: https://chromium.googlesource.com/chromium/src/+/9a44821bd6c02f83896fe03e842f9982703c6b15

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -4 lines) Patch
M third_party/WebKit/Source/core/dom/DOMTypedArray.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/wtf/PassRefPtr.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/MHTMLTest.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (8 generated)
Bugs Nash
Please note that there is no equivalent move constructor for RefPtr with different inner types. ...
3 years, 7 months ago (2017-05-08 05:32:54 UTC) #4
haraken
On 2017/05/08 05:32:54, Bugs Nash wrote: > Please note that there is no equivalent move ...
3 years, 7 months ago (2017-05-08 05:51:06 UTC) #5
Yuta Kitamura
LGTM, this is exciting!
3 years, 7 months ago (2017-05-08 05:55:21 UTC) #6
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/2867693003/1
3 years, 7 months ago (2017-05-09 04:25:42 UTC) #10
commit-bot: I haz the power
3 years, 7 months ago (2017-05-09 04:43:41 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/9a44821bd6c02f83896fe03e842f...

Powered by Google App Engine
This is Rietveld 408576698