зеркало из https://github.com/mozilla/gecko-dev.git
7bc9bfc2b0
1. IsEditable is much less hacky. It basically says: 1. if the node is a special bogus text node, it's not editable 2. if the node is a text node with only newlines, then it's not editable 3. if the node has no frame associated with it, then it is not editable 4. otherwise, it is editable. As part of this, I had to make IsEditable non-static. This had some cascading effects on static methods that called IsEditable, which likewise had to be made non-static. 2. SetTextProperties now works when the endpoints are leaf nodes (like images), not just text. Charlie, you should put this through some stress cases. |
||
---|---|---|
.. | ||
TextEditorTest.cpp | ||
TextEditorTest.h | ||
TypeInState.h | ||
nsEditProperty.cpp | ||
nsEditProperty.h | ||
nsHTMLEditRules.cpp | ||
nsHTMLEditRules.h | ||
nsHTMLEditor.cpp | ||
nsHTMLEditor.h |