RenderBox should add a void toRenderBox method to catch unnecessary casts much like David Hyatt has added for other RenderFoo classes.
Created attachment 27217 [details] Add void toRenderBox casting method Adds the check and also fixes four cases of unnecessary toRenderBox casts.
Comment on attachment 27217 [details] Add void toRenderBox casting method > +// This will catch anyone doing an unnecessary cast. > +void toRenderBox(const RenderBox* o); We should leave out the "o" here. r=me
Fixed with r40452.