Bug #1001455 patch from mozilla,Remove some gradients to save memory

[bug number  ] 1001455
[root cause  ] Remove some gradients to save memory
[changes     ]
[side effects]
[self test   ] pass
[reviewers   ]