r311575 - [clang-diff] Properly clear the selection in HTML diff
Johannes Altmanninger via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 23 09:52:15 PDT 2017
Author: krobelus
Date: Wed Aug 23 09:52:15 2017
New Revision: 311575
URL: http://llvm.org/viewvc/llvm-project?rev=311575&view=rev
Log:
[clang-diff] Properly clear the selection in HTML diff
Reviewers: arphaman
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D37072
Modified:
cfe/trunk/tools/clang-diff/ClangDiff.cpp
Modified: cfe/trunk/tools/clang-diff/ClangDiff.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-diff/ClangDiff.cpp?rev=311575&r1=311574&r2=311575&view=diff
==============================================================================
--- cfe/trunk/tools/clang-diff/ClangDiff.cpp (original)
+++ cfe/trunk/tools/clang-diff/ClangDiff.cpp Wed Aug 23 09:52:15 2017
@@ -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) {
More information about the cfe-commits
mailing list