summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2017-08-23 16:52:15 +0000
committerJohannes Altmanninger <aclopte@gmail.com>2017-08-23 16:52:15 +0000
commit38df0fa640a0fde7e198a2fe26bda6e562fb172d (patch)
treeb152fc53bc7bcf6ae58f69b5e29bc9817c601b47
parentf8774f1d735253f54531b585915a7529837d70ce (diff)
downloadbcm5719-llvm-38df0fa640a0fde7e198a2fe26bda6e562fb172d.tar.gz
bcm5719-llvm-38df0fa640a0fde7e198a2fe26bda6e562fb172d.zip
[clang-diff] Properly clear the selection in HTML diff
Reviewers: arphaman Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D37072 llvm-svn: 311575
-rw-r--r--clang/tools/clang-diff/ClangDiff.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/tools/clang-diff/ClangDiff.cpp b/clang/tools/clang-diff/ClangDiff.cpp
index 3b541a29e68..55cef911709 100644
--- a/clang/tools/clang-diff/ClangDiff.cpp
+++ b/clang/tools/clang-diff/ClangDiff.cpp
@@ -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) {
OpenPOWER on IntegriCloud