зеркало из https://github.com/mozilla/gecko-dev.git
Bug #282278 --> Don't spell check message headers when forwarding as inline
r=glazman sr=bienvenu
This commit is contained in:
Родитель
2cdb3a8449
Коммит
58a5b2b931
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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>"
|
||||
|
|
Загрузка…
Ссылка в новой задаче