DescriptionOilpan: fix build after r180084.
Address type conversion subtlety over RawPtr<>s. We have at hand:
Handle<Value> toV8(PassRefPtrWillBeRawPtr<NodeList>, ...);
template<NodeType>class StaticNodeTypeList : public NodeList {
public:
static PassRefPtrWillBeRawPtr<StaticNodeTypeList> adopt(..);
...
}
typedef StaticNodeTypeList<Element> StaticElementList;
and the call
toV8(StaticElementList::adopt(namedItems), ....);
For the toV8() call to be successfully resolved, the adopt() result
must be convertible to PassRefPtrWillBeRawPtr<NodeList>. For the non-Oilpan
case, we do have the
PassRefPtr(const PassRefPtr<U>, EnsurePtrConvertibleArgDecl(U, T))
constructor at hand, which will convert the PassRefPtr<StaticElementList>
into PassRefPtr<NodeList>. We do not have the corresponding type-convertible
constructor over RawPtr<>, as providing that runs into problems when
using RawPtr<> as part of the PassOwnPtrWillBeRawPtr transition type.
Address/step-around-the-issue by being explicit about the conversion.
TBR=haraken,oilpan-reviews
BUG=
NOTRY=true
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180096
Patch Set 1 #
Messages
Total messages: 6 (0 generated)
|