     else
       secondPassChildren = pendingChildren
 
-    # log layoutElement1:
-    #   element: element.inspectedName
-    #   parentSize: parentSize
-    #   firstPassSize: firstPassSize
-    #   firstPassChildren: firstPassChildren && (c.inspectedName for c in firstPassChildren)
-    #   secondPassChildren: secondPassChildren && (c.inspectedName for c in secondPassChildren)
-    # Layout firstPassChildren, compute childrenSize and secondPassSize
     #####################################
     # Children First-Pass
     #####################################

          child._setLocationFromLayout point l.x + offsetX, l.y + offsetY

  CoreLayout.layoutElement = layoutElement = (element, parentSize, skipLocation) =>
    # console.error """
    #   layoutElement-start: #{element.inspectedName}
    #     parentSize:                 #{parentSize}
    #   """
    # Don't layout more than we need to
    # key = element.getObjectId() #element.inspectedName - inspectedName is really slow. getObjectId is OK
    # unless skipLocation
    #   if @_elementsLayedOut[key]
    #     console.error "double layout of #{key}"
    #   else
    #     @_elementsLayedOut[key] = element

    return element.getPendingCurrentSize() unless (
      element.__layoutPropertiesChanged ||

      secondPassSize = element._layoutSize parentSize, childrenSize
      secondPassSizeForChildren = element._sizeForChildren secondPassSize

      # finalize layout except location as needed
      if secondPassSizeLayoutChildren
        for child in secondPassSizeLayoutChildren
