Martin Kralik 26e373c903 fix view clipping to operate on ui hierachy
Summary:
There was a bug in the view clipping logic.
Clipping works on uiview hierarchy, but I've been using `reactSuperview` to get clipping rect for my parent.
This is incorrect in a case where these two hierarchies don't match and there are some views between a view and its `reactSuperview`.

So we should really use normal `superview`. A minor complication is that `superview` is `nil` if we are clipped.
We could remember what our last `superview` was, but that's extra data we have to manage. Instead I use one clever trick to avoid doing so.
(Let me know if it makes sense based on my inline documentation.)

Reviewed By: mmmulani

Differential Revision: D4182647

fbshipit-source-id: 779cbcec0bd08eb270c3727c9c5cb9c080c4a2a4
2016-11-15 17:13:48 -08:00
..
2016-01-07 12:03:17 -08:00
2016-08-10 13:13:34 -07:00
2016-07-12 05:59:12 -07:00
2016-09-08 17:58:50 -07:00
2016-09-08 17:58:50 -07:00
2015-06-03 09:49:35 -08:00
2016-07-20 08:58:59 -07:00
2015-03-26 02:42:24 -08:00
2016-10-27 06:58:52 -07:00