Bug 212272: Switch some Substring users over to String(Begins|Ends)With. r=dwitte, sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@144817 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
#include "nsIDocumentObserver.h"
|
||||
#include "nsIContent.h"
|
||||
#include "nsHTMLEditUtils.h"
|
||||
#include "nsReadableUtils.h"
|
||||
|
||||
// Uncomment the following line if you want to disable
|
||||
// table deletion when the only column/row is removed
|
||||
@@ -167,7 +168,7 @@ nsHTMLEditor::DoInlineTableEditingAction(nsIDOMElement * aElement)
|
||||
nsresult res = aElement->GetAttribute(NS_LITERAL_STRING("_moz_anonclass"), anonclass);
|
||||
if (NS_FAILED(res)) return res;
|
||||
|
||||
if (!Substring(anonclass, 0, 8).Equals(NS_LITERAL_STRING("mozTable")))
|
||||
if (!StringBeginsWith(anonclass, NS_LITERAL_STRING("mozTable")))
|
||||
return NS_OK;
|
||||
|
||||
nsCOMPtr<nsIDOMNode> cellNode = do_QueryInterface(mInlineEditedCell);
|
||||
|
||||
Reference in New Issue
Block a user