The code for border and outline rendering could be shared as the requirements of border rendering are a superset of outlines. Sharing this code would allow fixes and optimizations done for borders to flow through to outlines.