diff --git a/mozilla/editor/base/nsEditor.cpp b/mozilla/editor/base/nsEditor.cpp index 4d130e51afc..0d3f719a333 100644 --- a/mozilla/editor/base/nsEditor.cpp +++ b/mozilla/editor/base/nsEditor.cpp @@ -2826,6 +2826,13 @@ nsEditor::IsEditable(nsIDOMNode *aNode) return PR_FALSE; } } + + // this next block testing for char data is ifdef'd out + // because it's unclear what whitespace constitutes "not editable" + // it's just an optimization, which makes the assumption that + // scanning the text is faster than asking layout if the text has a frame + // the last block will do this for all content, including text +#ifdef BUSTER_PERFORMANCE // it's not the bogus node, so see if it is an irrelevant text node if (PR_TRUE==IsTextNode(aNode)) { @@ -2844,13 +2851,15 @@ nsEditor::IsEditable(nsIDOMNode *aNode) PRUint32 i; for (i=0; i