mozilla/editor/base/nsEditor.cpp
mozilla/editor/base/nsEditor.h
- Added IsRootNode() method.
- Added calls to IsRootNode() in GetPriorNode() and GetNextNode()
to prevent traversing above the root node.
r=jfrancis@netscape.comsr=sfraser@netscape.coma=asa@mozilla.org
bug 83918 - Not able to start a list (number or bullets) when using Bold style
bug 62347 - Selecting "Body Text" doesn't change style if in <pre> text that has <br>
bug 86476 - ubercaret appears on multi-line text block
bug 87882 - pasting text from one bullet to another yields extra bullet
---------------
r=sfraser; sr=kin
bug #91288 (Aligning blank table cell in show all tags mode splits table)
Modified WillAlign to prevent unnecessary splitting:
- Don't execute emptyDiv special case code when start container of the
selection is a table cell element, but not a table cell or caption.
- Prevent processing of whitespace between list/table structure nodes.
- Prevent splitting when processing sub lists.
r=brade@netscape.comsr=attinasi@netscape.com
Modified nsHTMLEditRules::WillDeleteSelection() so that it uses
an nsAutoTxnsConserveSelection auto-variable to prevent the
call to nsWSRunObject::PrepareToDeleteRange() from changing
the selection.
r=brade@netscape.comsr=waterson@netscape.com
for bug #86450: pasting plaintext into text area loses significant whitespace
content/base/src/nsDocumentEncoder.cpp
- Look for -moz-pre-wrap in the correct attribute ("style").
editor/base/nsHTMLDataTransfer.cpp
editor/base/nsPlaintextDataTransfer.cpp
- Set the correct mime-type on the encoder and transfer data.
- Pass correct init flags to encoder.
layout/base/src/nsCopySupport.cpp
layout/base/src/nsCopySupport.h:
- Added IsPlainTextContext() method.
- Modified HTMLCopy() to pass correct init flags and
mime-type to the encoder during plaintext copy.
r=kin@netscape.com,brade@netscape.com sr=sfraser@netscape.com
This removes all call-sites I can currently fix. Tomorrow I'll try to get someone to checkin my changes to security/ and I'll get some help with the Netscape side of things.
nsString::GetUnicode()'s final death-blow will be dealt soon. Please keep this in mind as you add new code :-)
69320: making new block must put selection in block
74722: pasting into a pre block should not nest pre's
82421: ubercaret after ending list
67847: deletion can put caret incorrectly at start of doc
61232 - Caret comes back to previous line after creating paragraph
54520 - Extra break with list items
54539 - Disappearing numbered list with outdent
60867 - Composer adds extra break when round-tripping empty document through View Source
62347 - Selecting Body Text doesn't work inside other blocks that have embedding breaks
mozilla/editor/base/nsHTMLEditRules.cpp
- Moved list handling code in WillRemoveList() into a new recursive
method RemoveListStructure() which WillRemoveList() now calls.
- Modified WillOutdent() to call MoveNode() when a sublist is encountered.
- Made ConvertListType() recursive so that all sublists are coverted.
mozilla/editor/base/nsHTMLEditRules.cpp
- Added RemoveListStructure() method.
r=jfrancis@netscape.comsr=sfraser@netscape.coma=asa@mozilla.org