react-native/React
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
..
Base Bytecode Exposure Logging 2016-11-14 07:58:31 -08:00
CSSLayout Autogenerate enum defenitions for all languages 2016-11-15 08:44:30 -08:00
Executors Another fix 2016-11-15 14:58:36 -08:00
Modules Fixing a missing colon 2016-11-15 11:17:49 -08:00
Profiler Apple TV support 1: existing Objective C code should compile for tvOS 2016-09-27 06:28:33 -07:00
React.xcodeproj Fix missing reference to RCTLog 2016-11-14 14:14:06 -08:00
Views fix view clipping to operate on ui hierachy 2016-11-15 17:13:48 -08:00