summaryrefslogtreecommitdiffstats
path: root/clang/lib/Rewrite/HTMLRewrite.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-04-17 21:28:41 +0000
committerChris Lattner <sabre@nondot.org>2008-04-17 21:28:41 +0000
commitf219126107ed9c60b627cd8653d3758632ffd44c (patch)
treec7b2a5985b31bd8b475fcff381405faf5fea39c1 /clang/lib/Rewrite/HTMLRewrite.cpp
parent4704baa555ceafe04ec1560467bcdcc940365e74 (diff)
downloadbcm5719-llvm-f219126107ed9c60b627cd8653d3758632ffd44c.tar.gz
bcm5719-llvm-f219126107ed9c60b627cd8653d3758632ffd44c.zip
Make sure popup is on top over other spans. wrap long line.
llvm-svn: 49870
Diffstat (limited to 'clang/lib/Rewrite/HTMLRewrite.cpp')
-rw-r--r--clang/lib/Rewrite/HTMLRewrite.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Rewrite/HTMLRewrite.cpp b/clang/lib/Rewrite/HTMLRewrite.cpp
index 1041d612dd6..afacdeeeed6 100644
--- a/clang/lib/Rewrite/HTMLRewrite.cpp
+++ b/clang/lib/Rewrite/HTMLRewrite.cpp
@@ -120,7 +120,8 @@ void html::EscapeText(Rewriter& R, unsigned FileID,
if (!ReplaceTabs)
break;
if (EscapeSpaces)
- RB.ReplaceText(FilePos, 1, "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", 6*8);
+ RB.ReplaceText(FilePos, 1, "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
+ "&nbsp;&nbsp;&nbsp;", 6*8);
else
RB.ReplaceText(FilePos, 1, " ", 8);
break;
@@ -269,7 +270,7 @@ void html::AddHeaderFooterInternalBuiltinCSS(Rewriter& R, unsigned FileID) {
" .macro:hover .expansion { display: block; border: 2px solid #FF0000; "
"padding: 2px; background-color:#FFF0F0;"
" -webkit-border-radius:5px; -webkit-box-shadow:1px 1px 7px #000; "
- "position: absolute; top: -1em; left:10em } \n"
+ "position: absolute; top: -1em; left:10em; z-index: 1 } \n"
" .macro { color: #FF0000; background-color:#FFC0C0;"
// Macros are position: relative to provide base for expansions.
" position: relative }\n"
OpenPOWER on IntegriCloud