Based on patch By: ffffffff Comments By: vladislavbelov Reviewed By: Angen Differential Revision: D285 This was SVN commit r25873.