forked from OSchip/llvm-project
[clang-diff] Properly clear the selection in HTML diff
Reviewers: arphaman Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D37072 llvm-svn: 311575
This commit is contained in:
parent
f8774f1d73
commit
38df0fa640
|
@ -140,9 +140,9 @@ highlightStack = []
|
|||
function clearHighlight() {
|
||||
while (highlightStack.length) {
|
||||
var [l, r] = highlightStack.pop()
|
||||
document.getElementById(l).style.backgroundColor = 'white'
|
||||
document.getElementById(l).style.backgroundColor = 'inherit'
|
||||
if (r[1] != '-')
|
||||
document.getElementById(r).style.backgroundColor = 'white'
|
||||
document.getElementById(r).style.backgroundColor = 'inherit'
|
||||
}
|
||||
}
|
||||
function highlight(event) {
|
||||
|
|
Loading…
Reference in New Issue