2 Commits

Author SHA1 Message Date
Wyatt Allen
dd0adf26aa Adds general annotation function to gr-annotation
Adds the `annotateElement` function to the gr-annotation library, which
applies an annotation to an element's text at the specified range as
deeply as possible.

Change-Id: I5e38a9718fc00df860e8b12a16e551ccc1b57722
2016-07-12 18:39:35 +00:00
Wyatt Allen
32e3e23449 Creates gr-annotation library housing DOM-splitting and annotation tools
The gr-diff-highlight library contained a number of generic DOM
manipulation methods that are of use elsewhere, including the variants
of `_splitNode` and `_wrapInHighlight`. This change moves these
functions into their own library called gr-annotation.js.

Change-Id: I0daf3193ef460b76e9348d6286d50a824b6a5986
2016-07-12 10:46:54 -07:00