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

Issue 1493913004: Remove IsPointerConvertible trait and hacks and just use std::is_base_of. (Closed)

Created:
5 years ago by kouhei (in TOK)
Modified:
5 years ago
CC:
chromium-reviews, devtools-reviews_chromium.org, caseq+blink_chromium.org, jsbell+idb_chromium.org, pfeldman+blink_chromium.org, blink-reviews-css, sof, eae+blinkwatch, lushnikov+blink_chromium.org, blink-reviews-dom_chromium.org, dglazkov+blink, apavlov+blink_chromium.org, cmumford, darktears, blink-reviews, dgrogan, sergeyv+blink_chromium.org, kozyatinskiy+blink_chromium.org, blink-reviews-wtf_chromium.org, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove IsPointerConvertible trait and hacks and just use std::is_base_of. - SelectorChecker.cpp: Avoid ambiguity comparing a pointer and a reference. - LayoutTreeBuilderTraversal.h, IDBAny.h: Avoid upcasting incomplete type InsertionPoint, DOMStringList. - CodeGenerator.py: Force upcast of incomplete type JSONValue. BUG=None Committed: https://crrev.com/5c6deb1da6747324ac926f219b97a7fafdca481e Cr-Commit-Position: refs/heads/master@{#363441}

Patch Set 1 #

Total comments: 12

Patch Set 2 : speculative win compile fix #

Patch Set 3 : MSVC workaround #

Patch Set 4 : fix #if cond #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -55 lines) Patch
M third_party/WebKit/Source/core/css/SelectorChecker.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/LayoutTreeBuilderTraversal.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/CodeGeneratorInspector.py View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBAny.h View 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/JSONValues.h View 1 chunk +0 lines, -26 lines 0 comments Download
M third_party/WebKit/Source/wtf/TypeTraits.h View 1 2 3 3 chunks +27 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/wtf/TypeTraits.cpp View 2 chunks +0 lines, -8 lines 0 comments Download

Messages

Total messages: 29 (11 generated)
kouhei (in TOK)
5 years ago (2015-12-03 06:35:46 UTC) #2
haraken
LGTM, but yutak@ and esprehn@ should confirm this.
5 years ago (2015-12-03 06:36:54 UTC) #4
Yuta Kitamura
I think the change is fine modulo my std::convertible vs std::is_base_of comments, because the functionality ...
5 years ago (2015-12-03 06:51:50 UTC) #5
Mikhail
https://codereview.chromium.org/1493913004/diff/1/third_party/WebKit/Source/platform/JSONValues.h File third_party/WebKit/Source/platform/JSONValues.h (left): https://codereview.chromium.org/1493913004/diff/1/third_party/WebKit/Source/platform/JSONValues.h#oldcode75 third_party/WebKit/Source/platform/JSONValues.h:75: Simple removal of this will lead to a compilation ...
5 years ago (2015-12-03 08:45:36 UTC) #7
kouhei (in TOK)
On 2015/12/03 08:45:36, Mikhail wrote: > https://codereview.chromium.org/1493913004/diff/1/third_party/WebKit/Source/platform/JSONValues.h > File third_party/WebKit/Source/platform/JSONValues.h (left): > > https://codereview.chromium.org/1493913004/diff/1/third_party/WebKit/Source/platform/JSONValues.h#oldcode75 > ...
5 years ago (2015-12-03 09:19:34 UTC) #8
Mikhail
On 2015/12/03 09:19:34, kouhei wrote: > On 2015/12/03 08:45:36, Mikhail wrote: > > > https://codereview.chromium.org/1493913004/diff/1/third_party/WebKit/Source/platform/JSONValues.h ...
5 years ago (2015-12-03 09:25:27 UTC) #9
kouhei (in TOK)
Thanks for your review! https://codereview.chromium.org/1493913004/diff/1/third_party/WebKit/Source/core/css/SelectorChecker.cpp File third_party/WebKit/Source/core/css/SelectorChecker.cpp (right): https://codereview.chromium.org/1493913004/diff/1/third_party/WebKit/Source/core/css/SelectorChecker.cpp#newcode967 third_party/WebKit/Source/core/css/SelectorChecker.cpp:967: if (context.scope == &element.document()) On ...
5 years ago (2015-12-04 02:18:58 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1493913004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1493913004/1
5 years ago (2015-12-04 02:23:16 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/144020)
5 years ago (2015-12-04 03:18:46 UTC) #15
Yuta Kitamura
LGTM modulo MSVC compile failures. https://codereview.chromium.org/1493913004/diff/1/third_party/WebKit/Source/wtf/TypeTraits.h File third_party/WebKit/Source/wtf/TypeTraits.h (right): https://codereview.chromium.org/1493913004/diff/1/third_party/WebKit/Source/wtf/TypeTraits.h#newcode182 third_party/WebKit/Source/wtf/TypeTraits.h:182: typename std::enable_if<std::is_base_of<To, From>::value>::type* = ...
5 years ago (2015-12-04 04:07:57 UTC) #16
kouhei (in TOK)
yutak: PTAL for win workaround added in TypeTraits.h
5 years ago (2015-12-07 04:24:40 UTC) #17
Yuta Kitamura
still LGTM
5 years ago (2015-12-07 10:27:47 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1493913004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1493913004/60001
5 years ago (2015-12-07 10:40:37 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years ago (2015-12-07 10:47:03 UTC) #23
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/5c6deb1da6747324ac926f219b97a7fafdca481e Cr-Commit-Position: refs/heads/master@{#363441}
5 years ago (2015-12-07 10:48:45 UTC) #25
Mostyn Bramley-Moore
This seems to have broken GCC builds- I now get lots of errors like the ...
5 years ago (2015-12-08 23:45:05 UTC) #26
sof
Seems like it would be worthwhile to revert until addressed?
5 years ago (2015-12-09 08:45:06 UTC) #28
kouhei (in TOK)
5 years ago (2015-12-09 08:52:27 UTC) #29
Message was sent while issue was closed.
On 2015/12/09 08:45:06, sof wrote:
> Seems like it would be worthwhile to revert until addressed?

GCC before 4.9.0 seems to have the same bug. I'll add the cond to the workaround
#if shortly.

Powered by Google App Engine
This is Rietveld 408576698