Commit Graph

116 Commits

Author SHA1 Message Date
Robert O'Callahan
f86452b02b Bug 865537. Part 1: Add nsRange::SetEnableGravitationOnElementRemoval to suppress 'gravitation' behavior on node removal. r=smaug
--HG--
extra : rebase_source : 3823c3a0400c80b6f22021f22195f73febd5d85e
2013-06-07 16:26:28 +12:00
Andrea Marchesini
88446b2e01 Bug 868999 - Range should be constructable. r=Ms2ger 2013-05-21 14:33:28 -04:00
Aryeh Gregor
e78504c9a9 Bug 859817 - Remove implicit conversions from raw pointer to already_AddRefed; r=Ms2ger 2013-04-22 14:15:59 +03:00
Boris Zbarsky
f75142b01d Bug 864727 part 5. Make all the WrapObject methods take a handle for the scope object. r=ms2ger 2013-04-25 12:29:54 -04:00
Scott Johnson
89125218e7 Bug 803719: Add a getClientRect API to CaretPosition and use it to maintain position for reflow-on-zoom feature. [r=kats,tn] 2013-04-16 16:12:03 -05:00
Scott Johnson
89cb36fde6 Backed out changeset 6d29c583d5c0 due to incorrect commit message. 2013-04-16 16:10:20 -05:00
Scott Johnson
c84bf8d036 Bug 803719: Add a toDOMRange API to CaretPosition and use it to maintain position for reflow-on-zoom feature. [r=kats,tn] 2013-04-16 16:08:38 -05:00
Ms2ger
90d72aaffd Bug 861098 - Remove more classinfo; r=bz 2013-04-13 09:08:49 +02:00
Joshua Cranmer
ce365a42ff Bug 856108 - Port static analyses to clang, part 2a: use MOZ_STACK_CLASS in content. r=bz 2013-04-11 22:20:09 -05:00
Aryeh Gregor
635f3e0133 Bug 857102 part 5 - Make NS_NewDocumentFragment etc. infallible; r=bz 2013-04-10 17:15:54 +03:00
matekm
b83d2641b1 Bug 784739 - Switch from NULL to nullptr in content/; r=ehsan
--HG--
extra : rebase_source : cfdb682506acc14ec811e21ae42f067950e1ff0c
2013-04-02 21:14:24 -04:00
Ms2ger
5dd8d9d4d2 Bug 850817 - Move ClientRect to Paris bindings; r=bz
--HG--
rename : dom/interfaces/base/nsIDOMClientRect.idl => dom/webidl/ClientRect.webidl
2013-03-17 08:55:17 +01:00
Ms2ger
8a852eb95d Bug 851025 - Remove nsLayoutUtils::RectListBuilder::mRv; r=bz 2013-03-17 08:55:16 +01:00
Trevor Saunders
2bffe03733 bug 825341 - convert range to webidl r=bz, smaug 2013-02-07 07:09:41 -05:00
Phil Ringnalda
31d866ff72 Back out fee79a593fd3 and 2c8930343985 (bug 825341) for having probably needed-clobber 2013-03-11 20:10:18 -07:00
Trevor Saunders
0dea2ce880 bug 825341 - fix rebase of WrapObject landing on a CLOSED TREE 2013-03-11 21:26:17 -04:00
Trevor Saunders
39ae246957 bug 825341 - convert range to webidl r=bz, smaug 2013-02-07 07:09:41 -05:00
L. David Baron
b11867eb47 Bug 846096: Bail out of nsRange::ParentChainChanged if the nodes aren't in a connected subtree. r=smaug 2013-03-04 08:37:48 -08:00
Trevor Saunders
b98e34aed0 bug 822289 - remove NS_IMPL_CYCLE_COLLECTION_CLASS and friends r=mccr8 2013-01-12 07:40:33 -05:00
Olli Pettay
2f2c2e5296 Bug 813919, fix an assertion in DOM Range, r=mats 2012-11-23 17:37:31 +02:00
Mats Palmgren
d8c8edaeec Bug 804784 - Crash with range, normalize. r=smaug 2012-11-20 21:14:15 +01:00
Mats Palmgren
02f2e08262 Bug 803924 - Crash with range, splitText. r=smaug 2012-11-20 21:14:15 +01:00
Benoit Jacob
5a8b82a1cb Bug 807437 - Eliminate redundant Traverse/Unlink CC macros - part 1: automatic changes - r=mccr8 2012-11-15 02:32:40 -05:00
Jacek Szpot
bea8356b2c Bug 792180 - Replace NS_{UN,}LIKELY with MOZ_{UN,}LIKELY; r=ehsan 2012-10-26 15:32:10 +02:00
Peter Van der Beken
a69ce442c1 Fix for bug 773780 (Add API for new DOM bindings for Node). r=bz.
--HG--
extra : rebase_source : 5dd51c4ad5274da9235c8c341b0531f234e95a91
2012-10-09 14:31:24 +02:00
Ehsan Akhgari
8c296bbcd4 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
982100775b Bug 780618 - Move all error codes to nsError.h; r=ehsan 2012-07-27 17:03:27 +03:00
Ms2ger
22b67e1f96 Bug 714279 - range.compareBoundaryPoints should throw NOT_SUPPORTED_ERR when called with an invalid 'how' argument; r=smaug 2012-08-04 09:44:00 +02:00
Ed Morley
4eb11bee72 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
596febcbe1 Bug 714279 - range.compareBoundaryPoints should throw NOT_SUPPORTED_ERR when called with an invalid 'how' argument; r=smaug 2012-08-04 09:44:00 +02:00
Aryeh Gregor
57c0ad57fb Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Ms2ger
8e6fe375ab Bug 579638 - Reinstate Range.intersectsNode; r=smaug 2012-07-18 12:36:08 +02:00
Aryeh Gregor
8bff3f0c9b Bug 771639 - Handle null current node in nsRange.cpp's ValidateCurrentNode; r=smaug 2012-07-09 11:41:47 +03:00
Aryeh Gregor
985f7ec5bd Bug 766426 - Avoid assertion with extractContents() and mutation events; r=smaug 2012-06-28 14:29:56 +03:00
Aryeh Gregor
03a80fe6da Bug 766845 part 2 - Make CloneRange() return already_AddRefed<nsRange>; r=smaug 2012-06-25 14:44:11 +03:00
Aryeh Gregor
5e33b7294c Bug 765799 - Uninitialized variable use in nsRange::InsertNode; r=smaug 2012-06-19 16:17:37 +03:00
Ryan VanderMeulen
b74e4a29db Revert c39d36167b99 due to a horribly munged backout. 2012-06-10 19:44:50 -04:00
Ryan VanderMeulen
061d4c2616 Backout the bug 754202 backout due to orange. 2012-06-10 19:37:47 -04:00
Aryeh Gregor
f138398d88 Bug 757771 part 1 - Make NS_NewContentIterator and friends infallible; r=bz 2012-06-04 20:42:00 +03:00
Gervase Markham
87620f5676 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Aryeh Gregor
874f428261 Bug 702948 - Make Range.detach() a no-op; r=smaug 2012-04-25 15:03:48 +03:00
Aryeh Gregor
9c718775c7 Bug 702948 - Add telemetry to count how many ranges are detached; r=smaug 2012-04-17 17:36:22 +03:00
Aryeh Gregor
85ddf715d5 Bug 433662 part 2 - Make Range.insertNode insert the node into the range even when the range is collapsed 2012-04-01 08:02:21 -04:00
Aryeh Gregor
29b0885276 Bug 433662 part 1 - Clean up nsRange::InsertNode; r=smaug 2012-04-01 07:50:31 -04:00
Daniel Holbert
0c83157d0b Bug 742565: Cast known-to-be-nonnegative integer val to unsigned, to fix build warnings in nsRange.cpp. r=smaug 2012-04-10 00:45:59 -07:00
Aryeh Gregor
2487a022be Bug 719533 - Range.extractContents() shouldn't modify the DOM if the range contains a doctype; r=smaug 2012-04-01 07:45:35 -04:00
Ms2ger
63c2adf6c9 Bug 738608 - Introduce nsINode::Length(); r=smaug 2012-03-29 23:09:04 +02:00
Aryeh Gregor
6f53ae344d Bug 366944 - Range.surroundContents should throw InvalidNodeTypeError early; r=smaug 2012-03-21 14:06:50 -04:00
Aryeh Gregor
7da09c4a2f Bug 737612 - Range.insertNode() on a detached text node should throw standard exception type; r=smaug 2012-03-20 16:32:01 -04:00
Aryeh Gregor
3153795fe4 Bug 737565 - Range.comparePoint() should throw exceptions per spec; r=smaug 2012-03-20 15:54:38 -04:00