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

Issue 1477213003: More switching to standard type traits (Closed)

Created:
5 years ago by Mikhail
Modified:
4 years, 11 months ago
Reviewers:
Nico
CC:
chromium-reviews, oilpan-reviews, Mads Ager (chromium), scheduler-bugs_chromium.org, blink-reviews-css, eae+blinkwatch, haraken, blink-reviews-dom_chromium.org, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews, blink-reviews-wtf_chromium.org, kouhei+heap_chromium.org, rwlbuis, Jeffrey Yasskin
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

more switching to standard type traits The patch changes removes WTF type trais and changes the client code as following: WTF::EnableIf -> std::enable_if WTF::IsSameType -> std::is_same WTF::IsConvertibleTo.. -> std::is_convertible WTF::IsPolymorphic -> std::is_polymorphic BUG=554293 Committed: https://crrev.com/1ccd19c09376043faf412a31b251c319e6f73e2f Cr-Commit-Position: refs/heads/master@{#367242}

Patch Set 1 : #

Patch Set 2 : Use std::is_base_of #

Total comments: 3

Patch Set 3 : Fixed arg order in is_base_of trait #

Patch Set 4 : rebased #

Patch Set 5 : MSVC bug workaroung #

Patch Set 6 : attempt to fix win_compile_dbg #

Patch Set 7 : Use std::is_convertible in threading traits #

Patch Set 8 : Use std::is_convertible in threading traits #

Total comments: 1

Patch Set 9 : Use WTF::IsBaseOf #

Patch Set 10 : rebased #

Patch Set 11 : Excluded WTF::IsSubclass from the patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -119 lines) Patch
M third_party/WebKit/Source/core/css/CSSPrimitiveValue.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableSection.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/CrossThreadCopier.h View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/CrossThreadCopier.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/TraceEvent.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/ContiguousContainerTest.cpp View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/GCInfo.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/heap/HeapAllocator.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/TraceTraits.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/Visitor.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/CheckedArithmetic.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/Deque.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/HashTable.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/wtf/LeakAnnotations.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/TypeTraits.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +1 line, -51 lines 0 comments Download
M third_party/WebKit/Source/wtf/TypeTraits.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +0 lines, -35 lines 0 comments Download
M third_party/WebKit/Source/wtf/Vector.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/StringHash.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 29 (14 generated)
Mikhail
PTAL
5 years ago (2015-12-09 08:43:27 UTC) #10
Timothy Loh
On 2015/12/09 08:43:27, Mikhail wrote: > PTAL Is there a reason to prefer is_convertible over ...
5 years ago (2015-12-09 08:48:50 UTC) #11
Mikhail
On 2015/12/09 08:48:50, Timothy Loh wrote: > On 2015/12/09 08:43:27, Mikhail wrote: > > PTAL ...
5 years ago (2015-12-09 12:04:44 UTC) #12
Nico
Nice! Just one question: https://codereview.chromium.org/1477213003/diff/120001/third_party/WebKit/Source/platform/TraceEvent.h File third_party/WebKit/Source/platform/TraceEvent.h (right): https://codereview.chromium.org/1477213003/diff/120001/third_party/WebKit/Source/platform/TraceEvent.h#newcode386 third_party/WebKit/Source/platform/TraceEvent.h:386: template<typename T> struct ConvertableToTraceFormatTraits<PassRefPtr<T>> { ...
5 years ago (2015-12-09 15:09:39 UTC) #13
Mikhail
https://codereview.chromium.org/1477213003/diff/120001/third_party/WebKit/Source/wtf/LeakAnnotations.h File third_party/WebKit/Source/wtf/LeakAnnotations.h (right): https://codereview.chromium.org/1477213003/diff/120001/third_party/WebKit/Source/wtf/LeakAnnotations.h#newcode104 third_party/WebKit/Source/wtf/LeakAnnotations.h:104: template<typename V> static YesType checkHasRegisterAsStaticReferenceMethod(V* p, typename std::enable_if<std::is_base_of<V, typename ...
5 years ago (2015-12-10 11:38:15 UTC) #14
sof
On 2015/12/10 11:38:15, Mikhail wrote: > https://codereview.chromium.org/1477213003/diff/120001/third_party/WebKit/Source/wtf/LeakAnnotations.h > File third_party/WebKit/Source/wtf/LeakAnnotations.h (right): > > https://codereview.chromium.org/1477213003/diff/120001/third_party/WebKit/Source/wtf/LeakAnnotations.h#newcode104 > ...
5 years ago (2015-12-10 11:42:20 UTC) #15
Nico
The win_compile_dbg bot complains: e:\b\depot_tools\win_toolchain\vs2013_files\vc\include\type_traits(1348) : error C2139: 'blink::FileList' : an undefined class is not ...
5 years ago (2015-12-10 19:46:38 UTC) #16
Yuta Kitamura
On 2015/12/10 19:46:38, Nico wrote: > The win_compile_dbg bot complains: > > e:\b\depot_tools\win_toolchain\vs2013_files\vc\include\type_traits(1348) : error ...
5 years ago (2015-12-11 03:10:34 UTC) #17
Mikhail
On 2015/12/10 19:46:38, Nico (office move Wed Thu Fri) wrote: > The win_compile_dbg bot complains: ...
5 years ago (2015-12-17 10:26:14 UTC) #18
Nico
On 2015/12/11 03:10:34, Yuta Kitamura wrote: > On 2015/12/10 19:46:38, Nico wrote: > > The ...
5 years ago (2015-12-18 13:54:20 UTC) #19
Nico
https://codereview.chromium.org/1477213003/diff/240001/third_party/WebKit/Source/platform/heap/ThreadingTraits.h File third_party/WebKit/Source/platform/heap/ThreadingTraits.h (right): https://codereview.chromium.org/1477213003/diff/240001/third_party/WebKit/Source/platform/heap/ThreadingTraits.h#newcode39 third_party/WebKit/Source/platform/heap/ThreadingTraits.h:39: || std::is_convertible<typename std::remove_const<T>::type*, NodeList*>::value> struct DefaultThreadingTrait; Now that I ...
5 years ago (2015-12-18 14:14:14 UTC) #20
Mikhail
On 2015/12/18 14:14:14, Nico wrote: > > This builds, and the static_assert doesn't fail! This ...
4 years, 12 months ago (2015-12-28 15:16:58 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1477213003/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1477213003/300001
4 years, 11 months ago (2015-12-31 12:13:10 UTC) #25
commit-bot: I haz the power
Committed patchset #11 (id:300001)
4 years, 11 months ago (2015-12-31 13:39:31 UTC) #27
commit-bot: I haz the power
4 years, 11 months ago (2015-12-31 13:40:48 UTC) #29
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/1ccd19c09376043faf412a31b251c319e6f73e2f
Cr-Commit-Position: refs/heads/master@{#367242}

Powered by Google App Engine
This is Rietveld 408576698