Support border for link annotations

This fixes https://bugzilla.mozilla.org/show_bug.cgi?id=852505.

This depends on PR #2988.