matting (n.1)

"process of making mats," 1720, from mat (n.1). Meaning "coarse fabric for mats" is from 1748.

matting (n.2)

"ornamental border of a picture," 1864 from verbal derivative of mat (n.2).