From: Johannes Altmanninger Date: Wed, 23 Aug 2017 16:52:15 +0000 (+0000) Subject: [clang-diff] Properly clear the selection in HTML diff X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=82576d34831de0b570dc4ad7a85bb26866fb882f;p=clang [clang-diff] Properly clear the selection in HTML diff 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 --- diff --git a/tools/clang-diff/ClangDiff.cpp b/tools/clang-diff/ClangDiff.cpp index 3b541a29e6..55cef91170 100644 --- a/tools/clang-diff/ClangDiff.cpp +++ b/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) {