Chromium Code Reviews| Index: webkit/glue/webcursor_mac.mm |
| =================================================================== |
| --- webkit/glue/webcursor_mac.mm (revision 20280) |
| +++ webkit/glue/webcursor_mac.mm (working copy) |
| @@ -49,6 +49,8 @@ |
| NSCursor* CreateCustomCursor(const std::vector<char>& custom_data, |
| const gfx::Size& custom_size, |
| const gfx::Point& hotspot) { |
| + DCHECK(!custom_data.empty()); |
|
pink (ping after 24hrs)
2009/07/09 21:30:31
is it worth being over-protective (since this take
darin (slow to review)
2009/07/09 21:35:45
we should only reach here if webkit tries to send
|
| + |
| scoped_cftyperef<CGImageRef> cg_image( |
| CreateCGImageFromCustomData(custom_data, custom_size)); |