mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 06:05:44 +00:00
6a3429ddc2
* Added some code to restore selection after RemoveTextProperty. * Made a tiny change to the way the editor holds onto the transaction manager, so client (like the ender text control) can turn undo on and off effectively * Fixed a bug in IsNodeInline that was causing GetBlockParent to return the wrong parent node (and who knows what other mischief) where atom compares were being done on strings of different case, for <B>, "b" vs. "B". The DOM method nsIDOMElement::GetTagName forced the returned tag name to upper case. I don't know how long that has been true, but I assume it's a fairly recent change (or something on our side related to it changed recently) or this method never would have worked. I also found a few cases of nsString::Equals that I changed to EqualsIgnoreCase * Made some general improvements to the interaction between editors and rules, so that the aCancel out param is always intialized, and all rules with Will... are matched with a Did... call. Added Will/DidSetTextProperty() and Will/DidRemoveTextProperty(). This helps enable plain text mode. Added a skeleton for max length support in text editor. * fixed some warnings. |
||
---|---|---|
.. | ||
nsEditProperty.cpp | ||
nsEditProperty.h | ||
nsHTMLEditor.cpp | ||
nsHTMLEditor.h | ||
nsHTMLEditRules.cpp | ||
nsHTMLEditRules.h | ||
TextEditorTest.cpp | ||
TextEditorTest.h | ||
TypeInState.h |