Added invalidate method.
Removed unnecessary wrap.
Updated variable names.
Preallocating variables for child measured width and height.
Merge branch 'object_allocation_optimization_part_2'