[cfe-commits] r56408 - /cfe/trunk/utils/scan-build
Ted Kremenek
kremenek at apple.com
Sun Sep 21 13:10:48 PDT 2008
Author: kremenek
Date: Sun Sep 21 15:10:46 2008
New Revision: 56408
URL: http://llvm.org/viewvc/llvm-project?rev=56408&view=rev
Log:
Add webkit styles using Javascript (detect for AppleWebKit)
Modified:
cfe/trunk/utils/scan-build
Modified: cfe/trunk/utils/scan-build
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/scan-build?rev=56408&r1=56407&r2=56408&view=diff
==============================================================================
--- cfe/trunk/utils/scan-build (original)
+++ cfe/trunk/utils/scan-build Sun Sep 21 15:10:46 2008
@@ -469,10 +469,21 @@
td.DESC { white-space:pre }
td.Q { text-align:right }
td { text-align:left }
- td.View a { white-space: nowrap; -webkit-appearance:square-button; padding-left:1em; padding-right:1em; padding-top:0.5ex; padding-bottom:0.5ex; text-decoration:none; color:black }
tbody.scrollContent { overflow:auto }
}
</style>
+<script language='javascript' type="text/javascript">
+if (document.styleSheets && RegExp(" AppleWebKit/").test(navigator.userAgent))
+{
+ var sheet = document.styleSheets[0];
+ if (sheet) {
+ var rules = sheet.cssRules;
+ if (rules) {
+ sheet.insertRule("td.View a { white-space: nowrap; -webkit-appearance:square-button; padding-left:1em; padding-right:1em; padding-top:0.5ex; padding-bottom:0.5ex; text-decoration:none; color:black }", rules.length);
+ }
+ }
+}
+</script>
<script src="sorttable.js"></script>
<script language='javascript' type="text/javascript">
function SetDisplay(RowClass, DisplayVal)
More information about the cfe-commits
mailing list