matting (n.1) Look up matting at Dictionary.com
"process of making mats," 1720, from mat (n.1). Meaning "coarse fabric for mats" is from 1748.
matting (n.2) Look up matting at Dictionary.com
"ornamental border of a picture," 1864 from verbal derivative of mat (n.2).