3 Commits

Author SHA1 Message Date
Viktar Donich
59ae69dd9c Fix lint error
Change-Id: If0b10e4427a7a6d4dfb5fe056d9d6131fbbdda41
2016-07-13 10:01:14 -07:00
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