Bug #282278 --> Don't spell check message headers when forwarding as inline

r=glazman
sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@170729 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scott%scott-macgregor.org
2005-03-15 21:04:21 +00:00
parent f191e99fb1
commit 93cd847564
3 changed files with 10 additions and 1 deletions

View File

@@ -48,6 +48,7 @@ nsComposeTxtSrvFilter::nsComposeTxtSrvFilter() :
mBlockQuoteAtom = do_GetAtom("blockquote");
mPreAtom = do_GetAtom("pre");
mSpanAtom = do_GetAtom("span");
mTableAtom = do_GetAtom("table");
mMozQuoteAtom = do_GetAtom("_moz_quote");
mClassAtom = do_GetAtom("class");
mTypeAtom = do_GetAtom("type");
@@ -94,6 +95,13 @@ nsComposeTxtSrvFilter::Skip(nsIDOMNode* aNode, PRBool *_retval)
tag == mSelectAreaAtom ||
tag == mMapAtom) {
*_retval = PR_TRUE;
} else if (tag == mTableAtom) {
if (mIsForMail) {
nsAutoString className;
if (NS_SUCCEEDED(content->GetAttr(kNameSpaceID_None, mClassAtom, className))) {
*_retval = className.EqualsLiteral("moz-email-headers-table");
}
}
}
}

View File

@@ -69,6 +69,7 @@ protected:
nsCOMPtr<nsIAtom> mPreAtom; // mail plain text quotes are wrapped in pre tags
nsCOMPtr<nsIAtom> mSpanAtom; //or they may be wrapped in span tags (editor.quotesPreformatted).
nsCOMPtr<nsIAtom> mMozQuoteAtom; // _moz_quote_
nsCOMPtr<nsIAtom> mTableAtom;
nsCOMPtr<nsIAtom> mClassAtom;
nsCOMPtr<nsIAtom> mTypeAtom;
nsCOMPtr<nsIAtom> mScriptAtom;

View File

@@ -86,7 +86,7 @@
// Header strings...
//
#define HEADER_NNTP_POSTING_HOST "NNTP-Posting-Host"
#define MIME_HEADER_TABLE "<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0>"
#define MIME_HEADER_TABLE "<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 class=\"moz-email-headers-table\">"
#define HEADER_START_JUNK "<TR><TH VALIGN=BASELINE ALIGN=RIGHT NOWRAP>"
#define HEADER_MIDDLE_JUNK ": </TH><TD>"
#define HEADER_END_JUNK "</TD></TR>"