nsEditor::CreateTxnForDeleteInsertionPoint() shouldn't
use count-1 when calculating isLast, in the non-text case.
r=jfrancis@netscape.comsr=sfraser@netscape.com
git-svn-id: svn://10.0.0.236/trunk@102646 18797224-902f-48f8-a5cc-f745e15eee43
Prevent GetPriorNode() and GetNextNode() from traversing above root
node when aCurrentNode is the rootNode.
r=brade@netscape.comsr=sfraser@netscape.coma=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@101968 18797224-902f-48f8-a5cc-f745e15eee43
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
git-svn-id: svn://10.0.0.236/trunk@101631 18797224-902f-48f8-a5cc-f745e15eee43
90550: Need to rewrite URLs for publishing and for save as
91388: Link checker, Work in progress (doesn't work yet)
r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@100531 18797224-902f-48f8-a5cc-f745e15eee43
Modified nsHTMLEditor::GetInlinePropertyBase() to bail out of iterator
loop if current node is the body.
r=brade@netscape.comsr=sfraser@netscape.com
git-svn-id: svn://10.0.0.236/trunk@100224 18797224-902f-48f8-a5cc-f745e15eee43
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
git-svn-id: svn://10.0.0.236/trunk@99847 18797224-902f-48f8-a5cc-f745e15eee43
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
git-svn-id: svn://10.0.0.236/trunk@99516 18797224-902f-48f8-a5cc-f745e15eee43
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
git-svn-id: svn://10.0.0.236/trunk@99185 18797224-902f-48f8-a5cc-f745e15eee43
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 :-)
git-svn-id: svn://10.0.0.236/trunk@98363 18797224-902f-48f8-a5cc-f745e15eee43
This fixes many crashes caused by illegal uses of the nsStdURL.
This also allows a plugable protocol to provide their own url parser.
git-svn-id: svn://10.0.0.236/trunk@97696 18797224-902f-48f8-a5cc-f745e15eee43
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
git-svn-id: svn://10.0.0.236/trunk@97532 18797224-902f-48f8-a5cc-f745e15eee43
Changes allow us to have a finer control over which parts of the tree are built with PIC. Part of the static build branch landing.
Bug #46775 r=mcafee a=leaf
git-svn-id: svn://10.0.0.236/trunk@97363 18797224-902f-48f8-a5cc-f745e15eee43