Bug 463577 - inline forwarded messages show too much html composition chrome, initial patch by David Ascher <david.ascher@gmail.com>, r=mkmelin
authorPhil Ringnalda <philringnalda@gmail.com>
Sun, 01 Feb 2009 13:47:54 -0800
changeset 1818 a358c7f1104b400df564268671282e4bc5babb7d
parent 1817 c550e59d094e01591ec133724e4c256a72676545
child 1819 ed3645cc1d06b81083d136a090cf3384312181d2
push idunknown
push userunknown
push dateunknown
reviewersmkmelin
bugs463577
Bug 463577 - inline forwarded messages show too much html composition chrome, initial patch by David Ascher <david.ascher@gmail.com>, r=mkmelin
mail/base/content/composerOverlay.css
mail/base/jar.mn
mail/components/compose/content/MsgComposeCommands.js
new file mode 100644
--- /dev/null
+++ b/mail/base/content/composerOverlay.css
@@ -0,0 +1,47 @@
+/* ***** BEGIN LICENSE BLOCK *****
+ * Version: MPL 1.1/GPL 2.0/LGPL 2.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is mozilla.org code.
+ *
+ * The Initial Developer of the Original Code is
+ * David Ascher <dascher@mozillamessaging.com>.
+ * Portions created by the Initial Developer are Copyright (C) 2009
+ * the Initial Developer. All Rights Reserved.
+ *
+ * Contributor(s):
+ *   Phil Ringnalda <philringnalda@gmail.com
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 2 or later (the "GPL"), or
+ * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+ * in which case the provisions of the GPL or the LGPL are applicable instead
+ * of those above. If you wish to allow use of your version of this file only
+ * under the terms of either the GPL or the LGPL, and not to allow others to
+ * use your version of this file under the terms of the MPL, indicate your
+ * decision by deleting the provisions above and replace them with the notice
+ * and other provisions required by the GPL or the LGPL. If you do not delete
+ * the provisions above, a recipient may use your version of this file under
+ * the terms of any one of the MPL, the GPL or the LGPL.
+ *
+ * ***** END LICENSE BLOCK ***** */
+
+.moz-email-headers-table,
+.moz-email-headers-table > tbody > tr > th,
+.moz-email-headers-table > tbody > tr > td {
+  border: 1px solid transparent !important;
+}
+
+table.moz-email-headers-table:hover,
+table.moz-email-headers-table:hover > tbody > tr > th,
+table.moz-email-headers-table:hover > tbody > tr > td {
+  border: 1px solid lightgrey !important;
+}
--- a/mail/base/jar.mn
+++ b/mail/base/jar.mn
@@ -54,16 +54,17 @@ messenger.jar:
 *   content/messenger/credits.xhtml                 (content/credits.xhtml)
     content/messenger/messenger.css                 (content/messenger.css)
 *   content/messenger/search.xml                    (content/search.xml)
 *   content/messenger/tabmail.xml                   (content/tabmail.xml)
 *   content/messenger/newmailalert.xul              (content/newmailalert.xul)
     content/messenger/newmailalert.js               (content/newmailalert.js)
 *   content/messenger/viewSourceOverlay.xul         (content/viewSourceOverlay.xul)
 *   content/messenger/configEditorOverlay.xul       (content/configEditorOverlay.xul)
+    content/messenger/composerOverlay.css           (content/composerOverlay.css)
     content/messenger/msgSynchronize.xul            (/mailnews/base/resources/content/msgSynchronize.xul)
     content/messenger/msgSynchronize.js             (/mailnews/base/resources/content/msgSynchronize.js)
     content/messenger/folderProps.xul               (/mailnews/base/resources/content/folderProps.xul)
     content/messenger/retention.js                  (/mailnews/base/resources/content/retention.js)
     content/messenger/folderProps.js                (/mailnews/base/resources/content/folderProps.js)
     content/messenger/folderWidgets.xml             (/mailnews/base/resources/content/folderWidgets.xml)
     content/messenger/threadPane.js                 (/mailnews/base/resources/content/threadPane.js)
     content/messenger/shareglue.js                  (/mailnews/base/resources/content/shareglue.js)
--- a/mail/components/compose/content/MsgComposeCommands.js
+++ b/mail/components/compose/content/MsgComposeCommands.js
@@ -3486,16 +3486,18 @@ function AutoSave()
   }
 
   gAutoSaveTimeout = setTimeout(AutoSave, gAutoSaveInterval);
 }
 
 function InitEditor()
 {
   var editor = GetCurrentEditor();
+  editor.QueryInterface(nsIEditorStyleSheets);
+  editor.addOverrideStyleSheet("chrome://messenger/content/composerOverlay.css");
   gMsgCompose.initEditor(editor, window.content);
   
   InlineSpellCheckerUI.init(editor);
   enableInlineSpellCheck(getPref("mail.spellcheck.inline"));
   document.getElementById('menu_inlineSpellCheck').setAttribute('disabled', !InlineSpellCheckerUI.canSpellCheck);
 }
 
 function enableInlineSpellCheck(aEnableInlineSpellCheck)