Commit Graph

48 Commits

Author SHA1 Message Date
Aryeh Gregor
bcd9c426d2 Bug 1004522 part 3 - Clean up nsWSRunObject::PrepareToDeleteRange; r=ehsan 2014-05-02 15:15:26 +03:00
Aryeh Gregor
dba23e2229 Bug 1004522 part 2 - Clean up nsWSRunObject::DeleteWSForward; r=ehsan 2014-05-02 15:15:26 +03:00
Aryeh Gregor
f3ede06db7 Bug 1004522 part 1 - Clean up nsWSRunObject::PrepareToJoinBlocks; r=ehsan 2014-05-02 15:15:26 +03:00
Neil Rashbrook
8d54e5cbb7 Bug 1003894 Followup to switch from Text to nsIContent so that we can safely use do_QueryInterface r=ehsan 2014-05-10 21:16:03 +01:00
Aryeh Gregor
d0d76be020 Bug 1003894 part 5 - Clean up nsWSRunObject::ScrubBlockBoundary; r=ehsan 2014-05-02 14:11:26 +03:00
Aryeh Gregor
3e74b928c2 Bug 1003894 part 4 - Clean up nsWSRunObject::DeleteWSBackward; r=ehsan 2014-05-02 14:11:26 +03:00
Aryeh Gregor
1c724e9858 Bug 1003894 part 3 - Clean up nsWSRunObject::InsertBreak; r=ehsan 2014-05-02 14:11:26 +03:00
Aryeh Gregor
e17badd36f Bug 1003894 part 2 - Clean up nsWSRunObject::CheckTrailingNBSPOfRun; r=ehsan 2014-05-02 14:11:26 +03:00
Aryeh Gregor
558e69bc33 Bug 1003894 part 1 - Change WSPoint.mTextNode to Text; r=ehsan 2014-05-02 14:11:26 +03:00
Aryeh Gregor
e4533f6658 Bug 1003808 part 10 - Clean up nsWSRunObject::GetPrevious/NextWSNode; r=ehsan 2014-05-02 14:11:26 +03:00
Aryeh Gregor
171d2401f1 Bug 1003808 part 9 - Clean up nsWSRunObject::GetRuns; r=ehsan 2014-05-02 14:11:26 +03:00
Aryeh Gregor
ad717818ac Bug 1003808 part 8 - Use some more nsINode in nsWSRunObject; r=ehsan 2014-05-02 14:11:26 +03:00
Aryeh Gregor
8ae50792a2 Bug 1003808 part 7 - Convert WSFragment members to nsINode; r=ehsan 2014-05-02 14:11:26 +03:00
Aryeh Gregor
f23adf22a3 Bug 1003808 part 6 - Convert nsWSRunObject members to nsINode; r=ehsan 2014-05-02 14:11:26 +03:00
Aryeh Gregor
780bdf4c9b Bug 950386 - Move mozilla::Selection to mozilla::dom::Selection; r=ehsan 2014-04-10 19:09:40 +03:00
Ehsan Akhgari
1b83407ce9 Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
This patch was automatically generated by the following script:

#!/bin/bash
# Command to convert PRUnichar to char16_t

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*modules/libmar*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name prtypes.h \
       ! -name Char16.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Joshua Cranmer
5c31b481cd Bug 856108 - Port static analyses to clang, part 2c: use MOZ_STACK_CLASS in editor. r=ehsan 2013-04-11 22:20:27 -05:00
Saurabh Anand
6de7befa37 Bug 818817 - Fix some compiler warnings, r=Ms2ger 2012-12-09 22:53:19 +05:30
Ehsan Akhgari
db466de1ae Bug 791907 - Remove prtypes.h #includes in editor/; r=jrmuizel
--HG--
extra : rebase_source : 93c2e11edeaa2f7275302a2c7499aa09c330da14
2012-09-17 22:58:51 -04:00
Ehsan Akhgari
e368dc9c85 Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Aryeh Gregor
d0ad5a7d0c Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Aryeh Gregor
4431987355 Bug 772332 part 1 - Make nsWSRunObject's type enum type-safe; r=ehsan 2012-07-13 09:33:43 +03:00
Aryeh Gregor
dde10d9130 Bug 772807 - Clean up editor/ includes with include-what-you-use; r=ehsan 2012-07-13 09:33:42 +03:00
Aryeh Gregor
a080ba2162 Bug 766305 - WSFragment should use PRInt32 for offsets, not PRInt16; r=ehsan 2012-06-24 09:54:42 +03:00
Aryeh Gregor
101bf90613 Bug 760143 - Get rid of useless nsresult in editor/; r=ehsan 2012-06-01 14:03:17 +03:00
Gervase Markham
82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Michael Wu
d2b70213ac Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Ehsan Akhgari
72e52f9e41 Bug 682650 - Use an unsigned 32-bit integer as the container of offsets inside text nodes; r=roc
(I bet that there are text nodes on the web which have more than 65535 characters on the Web!)
2011-09-08 11:35:33 -04:00
timeless@mozdev.org
5312a1b79d Bug 566552 Spell offset with an s especially nsHTMLEditor::AddPositioningOffet
r=glazou
2010-05-24 14:20:59 +02:00
Mats Palmgren
c67994d479 The white-space bounding parent is the closest block within the editable subtree, or if there is none, the (inline) editable subtree root. b=455992 r+sr=peterv 2009-02-21 05:28:09 +01:00
Benjamin Smedberg
8503b6428b Bug 442756 - Add stack annotations to editor classes, r=glazou sr=jst 2008-07-01 14:23:21 -04:00
cvshook%sicking.cc
3a9a287253 Bug 344050: Kill nsITextContent and move the methods to nsIContent. r/sr=jst 2006-07-19 04:36:36 +00:00
gerv%gerv.net
31625ba2b1 Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-04-18 14:21:17 +00:00
kaie%netscape.com
5de9edf86e b=207183 Smiley gets deleted, editor tries to manipulate whitespace in the -moz-user-select:all block
r=jfrancis sr=kin
2003-06-11 12:02:49 +00:00
bzbarsky%mit.edu
fe11056d5d Clean up some array stuff in editor; switch to nsCOMArray in a bunch of
places.  Bug 175564, r=jfrancis, sr=kin
2002-11-12 19:40:11 +00:00
jfrancis%netscape.com
0d49c95048 fix for 161106: rewrite of deletion in editor. fixes various deletion probs. r=glazman; sr=kin 2002-08-29 07:49:31 +00:00
jfrancis%netscape.com
890f83aea5 fix for 112167: pasting list items cal leave selection between items. Also allows you to type after pasted link without being in link. sr=kin r=fm 2002-05-14 00:05:37 +00:00
dbaron%fas.harvard.edu
0ba01241e6 Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa 2002-03-23 22:08:20 +00:00
jfrancis%netscape.com
f9413bd619 fixes:
117418: warnings in nsWSRunObject.cpp
98286: splitting paragraphs broken
101041: block transformations could grab too much beyon selection
82813: whitespace handling code needs to do right thing with preformatted text
99545 &
103677: new blocks not always pre-populated with br
41336: better handling of mailcites when splitting or deleting them or portions of them

partial fix for:
46474: creating new blocks kills style settings

r=fm, sr=kin
2002-02-19 11:52:50 +00:00
jfrancis%netscape.com
d5f3c6a9c2 fixes:
* 113691 : Composer freezes when removing multiple ol or ul tags.
    * 113290 : Freezes when deleting some formatted text.
    * 112144 : Attempt to reply to mail freezes entire Mozilla.
    * 103685 : Caret disappears after deleting a blockquote w/ paragraph style.
    * 121282 : Pressing enter causes caret to jump from end of <p> to the<h1>.
    * 117418 : rewrote some code in nsWSRunObject.cpp: fixed warnings in GetWSNodes().
    * 114911 : can't join two lists using delete key.
    * 120000 : Indent list inside table causes table to split.
r=fm;sr=kin
2002-02-07 03:56:20 +00:00
brade%netscape.com
f2c8087638 remove DEAD_CODE (bug 115115) 2002-01-14 20:35:08 +00:00
jfrancis%netscape.com
6d283d24b3 fixes bug 99523 and cast of hangers on: this patch allows the editor to backspace/forward-delete across block boundaries (other than table elements), rearranging the document content in some sensible way in response. r=fm;sr=kin 2001-12-09 09:24:33 +00:00
gerv%gerv.net
eecb4c06ee License changes, take 2. Bug 98089. mozilla/editor/. 2001-09-25 22:53:13 +00:00
gerv%gerv.net
1856815ff1 Oops. 2001-09-20 00:02:59 +00:00
scc%mozilla.org
102170b2a0 bug #98089: ripped new license 2001-09-19 20:09:47 +00:00
jfrancis%netscape.com
56ac4a4d19 bug 65557 and cast of thousands: making the editor behave more intelligently wrt html whitespace rules. Improved ws handling for: insert text, insert break, join blocks, split block, delete Yet to be tackled is html copy & paste. r=fm; sr=kin 2001-05-11 12:43:22 +00:00
jfrancis%netscape.com
b5c74bb9ad more ws work - not yet part of build 2001-05-10 11:55:49 +00:00
jfrancis%netscape.com
4df485ccd2 groundwork for 65557. not yet part of build. 2001-04-28 12:04:45 +00:00