Commit Graph

490 Commits

Author SHA1 Message Date
Neil Deakin
7276ffca3a Bug 788404, return unconditionally from attempts to insert from drop to prevent mutliple copies of text from appearing in contenteditable areas, r=ehsan 2012-09-07 15:57:10 -04:00
Randell Jesup
eedf93a21d Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Ehsan Akhgari
0fd9123eac 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
0923bf00ef Bug 780618 - Move all error codes to nsError.h; r=ehsan 2012-07-27 17:03:27 +03:00
Aryeh Gregor
30201a72e9 Bug 751554 part 5 - Rename OperationID to EditAction; r=ehsan 2012-08-12 21:28:26 +03:00
Aryeh Gregor
07e11d5e7d Bug 751554 part 4 - Make nsEditor::OperationID an enum class; r=ehsan 2012-08-01 15:22:07 +03:00
Aryeh Gregor
13b54b385e Bug 751554 part 3 - Fix OperationID type errors; r=ehsan 2012-08-01 15:20:59 +03:00
Ms2ger
c7a5b33778 Bug 716822 - Move attributes and methods on nsIDOMNSEvent to nsIDOMEvent; r=smaug 2012-08-04 09:44:00 +02:00
Mike Hommey
6173fa297f Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Ed Morley
bba173e66e Revert inbound to 3d5d1daa2505 to stop OS X M5 failures (backout not clean/could have been a bad merge) on a CLOSED TREE 2012-08-04 18:05:15 +01:00
Ms2ger
babf67cce2 Bug 716822 - Move attributes and methods on nsIDOMNSEvent to nsIDOMEvent; r=smaug 2012-08-04 09:44:00 +02:00
Aryeh Gregor
903f6c9c84 Bug 777292 - Convert incorrect conversions to nsresult and fix named constants; r=ehsan 2012-07-27 16:59:29 +03:00
Aryeh Gregor
e806eeab4f Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Aryeh Gregor
a9370a8066 Bug 776323 part 2 - Clean up nsSelectionState::SaveSelection; r=ehsan 2012-07-23 13:27:22 +03:00
Aryeh Gregor
a80cb9b3a2 Bug 776323 part 1 - Fix crash due to silly logic error in nsSelectionState::SaveSelection; r=ehsan 2012-07-23 13:27:22 +03:00
Masayuki Nakano
d628388400 Bug 751749 part.3 Editor should handle Win key as a modifier key r=ehsan 2012-07-19 10:28:17 +09:00
Aryeh Gregor
5733f277d8 Bug 773262 - Re-add SetMaxTransactionCount call incorrectly removed by bug 765595 part 2; r=ehsan 2012-07-15 09:11:47 +03:00
Aryeh Gregor
b0041eadcc Bug 772807 - Clean up editor/ includes with include-what-you-use; r=ehsan 2012-07-13 09:33:42 +03:00
Aryeh Gregor
0f9c1ead04 Bug 771994 - Make nsRangeStore refcounted; r=ehsan 2012-07-13 09:31:15 +03:00
Sankha Narayan Guria
47ed501a26 Bug 770812 - Remove nsIEditorSupport; r=ehsan 2012-07-11 18:06:02 -04:00
Aryeh Gregor
11df0cc2ad Bug 772282 - Hold on to nodes when we delete them in nsEditor::MoveNode; r=ehsan 2012-07-11 10:51:13 +03:00
Aryeh Gregor
bbf508b17b Bug 771983 - Re-add non-debug null check to nsEditor::GetNodeLocation; r=ehsan 2012-07-10 09:53:59 +03:00
Aryeh Gregor
a33c083752 Bug 771435 - Fix nsEditor::DoTransaction to use transaction interfaces sanely; r=ehsan 2012-07-09 11:41:47 +03:00
Aryeh Gregor
552206e532 Bug 771749 - Fix dangling pointer in nsEditor::RemoveContainer; r=ehsan 2012-07-09 11:41:47 +03:00
Ryan VanderMeulen
959e0d6234 Merge m-c to inbound. 2012-07-09 20:53:11 -04:00
Olli Pettay
bf724401ab Bug 771961, fix a regression from Bug 756750, r=ehsan 2012-07-09 23:52:31 +03:00
Luqman Aden
f04474c3b4 Bug 770814 - Make nsEditor::GetNodeLocation return already_AddRefed<nsIDOMNode> instead of having it as an out param; r=ehsan 2012-07-08 20:45:12 -04:00
Nathan Froyd
a7eb97f896 Bug 370750 - consolidate mochitest files installation; r=glandium
With assistance on the patch from Ms2ger, Waldo, and Mossop.
2012-07-03 16:49:02 -04:00
Aryeh Gregor
195ee54544 Bug 765595 part 4 - Make nsEditor::DoAfter*Transaction infallible; r=ehsan 2012-07-05 10:45:09 +03:00
Aryeh Gregor
c91fcaf3b7 Bug 765595 part 3 - Make PeekUndoStack/PeekRedoStack infallible; r=ehsan 2012-06-19 16:23:36 +03:00
Aryeh Gregor
09a0d8a8a6 Bug 765595 part 2 - De-COMtaminate nsEditor::mTxnMgr; r=ehsan 2012-06-19 16:23:36 +03:00
Aryeh Gregor
8bc8a569ed Bug 765595 part 1 - Clean up nsEditor::DoTransaction; r=ehsan 2012-06-19 16:23:36 +03:00
Aryeh Gregor
e89f0d1d6d Bug 766025 - Remove incorrect assert in DeleteTextTxn::Init; r=ehsan 2012-06-19 16:21:48 +03:00
Aryeh Gregor
05ec8ced0c Bug 768765 - Fix assert in nsEditor::DeleteSelectionAndPrepareToCreateNode; r=ehsan 2012-07-02 16:31:49 +03:00
Aryeh Gregor
41444ebe91 Bug 769967 part 4 - Rename DeleteElementTxn to DeleteNodeTxn; r=ehsan
--HG--
rename : editor/libeditor/base/DeleteElementTxn.cpp => editor/libeditor/base/DeleteNodeTxn.cpp
rename : editor/libeditor/base/DeleteElementTxn.h => editor/libeditor/base/DeleteNodeTxn.h
2012-06-19 16:23:36 +03:00
Aryeh Gregor
9e45933575 Bug 769967 part 3 - Clean up DeleteElementTxn and nsEditor::DeleteNode; r=ehsan 2012-06-19 16:23:36 +03:00
Aryeh Gregor
ddc08396b9 Bug 769967 part 2 - Clean up nsEditor::GetNodeLocation; r=ehsan 2012-07-02 15:07:57 +03:00
Aryeh Gregor
e44ac36034 Bug 769967 part 1 - Clean up nsEditor::GetChildOffset; r=ehsan 2012-07-02 14:42:19 +03:00
Aryeh Gregor
596a599bd8 Bug 768748 part 1 - Clean up nsHTMLEditor::IsNext/PrevCharWhitespace; r=ehsan 2012-07-01 14:07:16 +03:00
Ed Morley
bb3f6c2bad Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-07-02 10:03:16 +01:00
Ms2ger
6529faea6d Bug 770013 - Cleanup NodeIsBlockStatic/IsBlockNode a bit; r=ehsan 2012-07-01 21:53:16 +02:00
David Zbarsky
ae718ee1c0 Bug 763350 - Clean up some includes in content/ and dom/ r=smaug 2012-07-01 16:45:59 -07:00
Aryeh Gregor
3e9c8587b9 Bug 766845 part 3 - Fix assertion in DeleteRangeTxn; r=ehsan,surkov 2012-06-25 14:44:40 +03:00
Aryeh Gregor
9ef585c26d Bug 766845 part 1 - Clean up DeleteRangeTxn; r=ehsan 2012-06-25 13:22:49 +03:00
Jonathan Watt
6380335603 Bug 767388 - Kill NS_DEBUG. r=bz.
--HG--
extra : rebase_source : d045208a26345712dbb4628c973c616cd9504f28
2012-06-25 20:59:42 +01:00
Aryeh Gregor
8de5177c67 Bug 766360 - Rewrite nsEditor::DeleteSelectionAndPrepareToCreateNode; r=ehsan 2012-06-21 15:54:26 +03:00
Aryeh Gregor
daea0d4fbf Bug 760052 - execCommand() should abort and return false for disabled commands; r=ehsan 2012-06-21 15:05:24 +03:00
Aryeh Gregor
f4aa9bb43b Back out 66b3801292a0 for test failures 2012-06-24 10:30:13 +03:00
Aryeh Gregor
718762dae4 Bug 766360 - Rewrite nsEditor::DeleteSelectionAndPrepareToCreateNode; r=ehsan 2012-06-21 15:54:26 +03:00
Aryeh Gregor
e8463207f1 Bug 766305 - WSFragment should use PRInt32 for offsets, not PRInt16; r=ehsan 2012-06-24 09:54:42 +03:00