1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "virtual_and_trace_after_dispatch.h"
9 static B
* toB(A
* a
) { return static_cast<B
*>(a
); }
11 void A::trace(Visitor
* visitor
)
15 toB(this)->traceAfterDispatch(visitor
);
20 void A::traceAfterDispatch(Visitor
* visitor
)
24 void B::traceAfterDispatch(Visitor
* visitor
)
27 A::traceAfterDispatch(visitor
);