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

Issue 2090973002: Reland: WTF: Simplify RefPtr::operator bool. (Closed)

Created:
4 years, 6 months ago by jbroman
Modified:
4 years, 5 months ago
Reviewers:
Nico
CC:
blink-reviews, blink-reviews-wtf_chromium.org, chromium-reviews, Mikhail
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland: WTF: Simplify RefPtr::operator bool. The problematic case in String::find on ARM should now be gone, and so this should be both simpler and equally fast. Comparing to nullptr is used to coerce to boolean to work around bug 621177 (even though this is usually not the preferred way to do this in Blink). BUG=607208, 621177 Committed: https://crrev.com/4db41c4c92314447a07a2255d97c344547f97ce7 Cr-Commit-Position: refs/heads/master@{#401897}

Patch Set 1 : previously landed as r400315 #

Patch Set 2 : Use !! #

Total comments: 2

Patch Set 3 : != nullptr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -8 lines) Patch
M third_party/WebKit/Source/wtf/PassRefPtr.h View 1 2 1 chunk +1 line, -4 lines 0 comments Download
M third_party/WebKit/Source/wtf/RefPtr.h View 1 2 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 14 (6 generated)
jbroman
Here we go again. There was an issue on the GYP (but not GN, like ...
4 years, 6 months ago (2016-06-23 15:09:33 UTC) #2
Nico
lgtm :-( :-( on content including RefPtr, :-( on trybots being gn-only https://codereview.chromium.org/2090973002/diff/20001/third_party/WebKit/Source/wtf/PassRefPtr.h File third_party/WebKit/Source/wtf/PassRefPtr.h ...
4 years, 6 months ago (2016-06-23 16:02:06 UTC) #3
jbroman
https://codereview.chromium.org/2090973002/diff/20001/third_party/WebKit/Source/wtf/PassRefPtr.h File third_party/WebKit/Source/wtf/PassRefPtr.h (right): https://codereview.chromium.org/2090973002/diff/20001/third_party/WebKit/Source/wtf/PassRefPtr.h#newcode85 third_party/WebKit/Source/wtf/PassRefPtr.h:85: explicit operator bool() const { return !!m_ptr; } On ...
4 years, 6 months ago (2016-06-23 16:05:44 UTC) #4
Nico
!= nullptr
4 years, 6 months ago (2016-06-23 16:07:15 UTC) #5
jbroman
Done, though it requires bypassing check-webkit-style, which doesn't like comparison to true, false and null.
4 years, 6 months ago (2016-06-23 17:14:19 UTC) #8
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/2090973002/40001
4 years, 5 months ago (2016-06-24 14:59:55 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-06-24 17:41:05 UTC) #12
commit-bot: I haz the power
4 years, 5 months ago (2016-06-24 17:44:12 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4db41c4c92314447a07a2255d97c344547f97ce7
Cr-Commit-Position: refs/heads/master@{#401897}

Powered by Google App Engine
This is Rietveld 408576698