Fixing --enable-plaintext-editor-only bustage (bug 209548). Patch by brade, r/sr=me.
git-svn-id: svn://10.0.0.236/trunk@144909 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
52f875a6dc
commit
5cc40c9cbe
@ -52,20 +52,24 @@
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// IsBody: true if node an html body node
|
||||
//
|
||||
// Would use NodeIsType and the corresponding atom, but
|
||||
// the atom list isn't generationed in a plaintext-only
|
||||
// configured build.
|
||||
PRBool
|
||||
nsTextEditUtils::IsBody(nsIDOMNode *node)
|
||||
{
|
||||
return nsEditor::NodeIsType(node, nsEditProperty::body);
|
||||
return nsEditor::NodeIsTypeString(node, NS_LITERAL_STRING("body"));
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// IsBreak: true if node an html break node
|
||||
//
|
||||
// See previous comment regarding NodeisType
|
||||
PRBool
|
||||
nsTextEditUtils::IsBreak(nsIDOMNode *node)
|
||||
{
|
||||
return nsEditor::NodeIsType(node, nsEditProperty::br);
|
||||
return nsEditor::NodeIsTypeString(node, NS_LITERAL_STRING("br"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user