]> granicus.if.org Git - clang/commitdiff
[clang-diff] Properly clear the selection in HTML diff
authorJohannes Altmanninger <aclopte@gmail.com>
Wed, 23 Aug 2017 16:52:15 +0000 (16:52 +0000)
committerJohannes Altmanninger <aclopte@gmail.com>
Wed, 23 Aug 2017 16:52:15 +0000 (16:52 +0000)
Reviewers: arphaman

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D37072

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@311575 91177308-0d34-0410-b5e6-96231b3b80d8

tools/clang-diff/ClangDiff.cpp

index 3b541a29e68ce7f0f39978bb8444a306385bd65c..55cef911709be1d04f5721f7dfeee0a5499a34cf 100644 (file)
@@ -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) {