code: function mergeSize(size, result) {
              if (size) {
                  if (size.hasOwnProperty("scale")) {
                      result.scale = size.scale;
                  }
  
                  if (size.hasOwnProperty("width")) {
                      result.width = size.width;
                  }
  
                  if (size.hasOwnProperty("widthUnit")) {
                      result.widthUnit = size.widthUnit;
                  }
  
                  if (size.hasOwnProperty("height")) {
                      result.height = size.height;
                  }
  
                  if (size.hasOwnProperty("heightUnit")) {
                      result.heightUnit = size.heightUnit;
                  }
              }
          }
docs: /*
  Merge a size object into a results object, taking care to only copy defined values.