Commit Graph

229 Commits

Author SHA1 Message Date
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
Mats Palmgren
38b217c872 Bug 806755 - Don't call scroll methods on the pres shell after the Selection was disconnected. r=roc 2012-11-04 07:41:42 +01:00
Robert O'Callahan
9814ab968b Bug 805697. There is no point in checking for the existence of a caret in the presshell --- it will always have one, and it wouldn't matter if it didn't. r=mats
--HG--
extra : rebase_source : 1ab91d2d60db433da09acead53853bfec351f574
2012-10-29 17:31:45 +13:00
Robert O'Callahan
c78fa977de Bug 805697. Remove StCaretHider since it's not needed anymore. r=mats
--HG--
extra : rebase_source : c2c8652585958ddaeb9e01ed1fe47a391339c2ec
2012-10-29 17:31:26 +13:00
David Zbarsky
e584460f90 Backout bug 779684 for topcrash 2012-10-15 14:35:50 -04:00
Masayuki Nakano
3df6480630 Bug 795785 part.2 Scroll editor when caret is moved even if it's specified overflow: hidden; r=smaug 2012-10-08 03:45:51 +09:00
Masayuki Nakano
5ac763afdd Bug 795785 part.1 Editor should scroll the selection into view after edit even when the editor is specified overflow: hidden; r=ehsan,smaug, sr=smaug 2012-10-08 03:45:51 +09:00
Robert O'Callahan
f374e17a88 Bug 791616. Part 3: Don't scroll vertically to get the caret into view if that's not a perceived scrollable direction. r=mats 2012-09-24 16:38:16 +12:00
Robert O'Callahan
6d1e576d39 Back out bug 791616 due to test failure. 2012-09-24 21:55:16 +12:00
Robert O'Callahan
23238905de Bug 791616. Part 3: Don't scroll vertically to get the caret into view if that's not a perceived scrollable direction. r=mats
--HG--
extra : rebase_source : 4efe1d3bfcb871b3474abb1a9029e5bafe175d9c
2012-09-24 16:38:16 +12:00
Koosha Khajeh Moogahi
e98cd6bf45 Bug 788242: Implement and make use of void versions of NS_ENSURE_* macros; r=ehsan,bsmedberg 2012-09-14 14:30:31 +04:30
Graeme McCutcheon
fe52ce1abe Bug 766181 - Require Selection::AddItem's aOutIndex param. r=roc 2012-09-17 14:54:01 +01:00
Aryeh Gregor
5cb11391e0 Bug 782594 - Use NS_FAILED instead of boolean test (content/, js/xpconnect/, layout/); r=bz 2012-08-07 17:58:47 +03:00
Randell Jesup
29ac5c0b8c Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04: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
3304e571cb Bug 782252 - Cast NS_ENUMERATOR_FALSE to nsresult; r=ehsan 2012-08-07 17:54:44 +03:00
Aryeh Gregor
982100775b Bug 780618 - Move all error codes to nsError.h; r=ehsan 2012-07-27 17:03:27 +03:00
Jan Varga
c89ae3e144 Bug 779684 - Move FrameIteratorFlags to nsFrameIterator class. r=roc 2012-08-06 20:27:04 -04:00
David Zbarsky
d505b382d4 Bug 779684: Create a stack-based nsFrameIterator class out of nsIFrameTraversal and nsIFrameEnumerator r=roc
--HG--
rename : layout/base/nsFrameTraversal.cpp => layout/base/nsFrameIterator.cpp
rename : layout/base/nsFrameTraversal.h => layout/base/nsFrameIterator.h
2012-08-05 23:00:55 -04:00
Adam Dane [:hobophobe]
dcec45c0c1 Bug 769791 - Optimize adding ranges to the end of mRanges in nsSelection. r=smaug 2012-07-24 15:25:36 -05:00
Ehsan Akhgari
c80897316e Merge the nullptr conversion from mozilla-central into mozilla-inbound 2012-07-30 10:28:15 -04:00
Aryeh Gregor
57c0ad57fb Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Aryeh Gregor
91391164b5 Bug 777292 - Cast NS_ENUMERATOR_FALSE to nsresult and complain in comments; r=ehsan 2012-07-27 17:03:25 +03:00
Aryeh Gregor
58769bb9d6 Bug 777292 - Don't use |= on nsresult; r=ehsan 2012-07-27 17:03:08 +03:00
Mats Palmgren
932b41757b Bug 777578 - Make mLimiter and mAncestorLimiter strong refs. r=smaug 2012-07-26 23:44:10 +02:00
Olli Pettay
c992398490 Bug 765163 - Implement code generator for simple DOM events, r=jst,khuey 2012-07-20 19:42:08 +03:00
Aryeh Gregor
25b5f685b9 Bug 771873 part 1 - Check for reversed indices in Selection::GetIndicesForInterval; r=ehsan 2012-07-12 18:56:30 +03:00
Aryeh Gregor
bdf27a7d52 Bug 770580 part 2 - Fix crash due to removed null check in Selection::selectFrames; r=ehsan 2012-07-06 09:39:01 +03:00
Aryeh Gregor
9f14a61880 Bug 770580 part 1 - Clarify Selection::selectFrames parameter; r=ehsan 2012-07-06 09:39:01 +03:00
Phil Ringnalda
0f85240fe2 Back out ea9410c65673 (bug 769791) for mochitest-chrome bustage 2012-07-03 21:36:45 -07:00
Adam Dane [:hobophobe]
45587019f8 Bug 769791 - Optimize nsSelection::GetIndicesForInterval for adding ranges to the end. r=smaug 2012-07-03 18:19:42 -05:00
David Zbarsky
cd3c58ee76 Bug 763350 - Clean up some includes in content/ and dom/ r=smaug 2012-07-01 16:45:59 -07:00
Aryeh Gregor
70c8246910 Bug 767169 part 1 - Partial cleanup of Selection::selectFrames; r=ehsan 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
3de4f67d50 Bug 762183 part 2 - Publicize nsSelectionIterator; r=ehsan 2012-06-12 17:15:23 +03:00
Aryeh Gregor
8e7de01930 Bug 762862 - Rename nsTypedSelection to mozilla::Selection; r=ehsan
--HG--
rename : layout/generic/nsTypedSelection.h => layout/generic/Selection.h
2012-06-08 17:20:55 +03:00
Jignesh Kakadiya
2f9b3165ba Bug 751785 - Make Selection.toString() API use DOMString instead of wstring 2012-06-09 15:15:12 -07:00
Mats Palmgren
7767f7cbe3 Bug 758589 - Make Selection.toString() return early (with empty result string) if the shell is destroyed. r=smaug 2012-05-30 15:03:19 +02:00
Phil Ringnalda
9703d8bdf4 Back out 6d605438199c (bug 758589) for bug 759243 2012-05-28 22:44:57 -07:00
Mats Palmgren
ced5a49a99 Bug 758589 - Make Selection.toString() return early (with empty result string) if the shell is destroyed. r=smaug 2012-05-29 02:50:42 +02:00
Robert O'Callahan
b8c7a8981b Bug 757807. Don't store an nsMouseEvent in nsFrameSelection, it's unnecessary and leaky. r=smaug 2012-05-24 22:36:08 +12:00
Gervase Markham
87620f5676 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Ms2ger
3b577015ad Bug 755200 - Simplify SetSelectionAroundHeadChildren; r=ehsan 2012-05-18 10:29:39 +02:00
Ms2ger
79e49f2965 Bug 750053 - Part a: Add nsISelection::Collapsed(); r=smaug 2012-05-18 10:29:39 +02:00
Trevor Saunders
8df11e79ab bug 693933 - make nsFrameSelection::GetSelection() return nsTypedSelection* r=smaug 2012-04-06 17:54:38 -04:00
Robert O'Callahan
1b61f2c022 Bug 681192. Part 7: nsTypedSelection should be scrolling a 0,0 size into view to get a particular coordinate into view, not 1,1. r=matspal
When asked to scroll a 1,1 appunit rectangle into view, ScrollFrameRectIntoView will now actually
succeed!
For example if the window is 6000 appunits high and we ask to scroll a 1x1 rect at 0,6000 into view,
before bug 681192 was fixed we'd actually fail to do so. We'd compute a desired scroll destination of 0,1,
and ScrollTo would round that to 0,0 and we wouldn't scroll at all.
Now, we compute a desired scroll destination of 0,1 but also an allowed scroll range for y of
"1 to <someting large>", so ScrollFrameRectIntoView will scroll down by a full pixel to 0,60. This is correct ---
it gets the subpixel area into view, which the previous code didn't --- but it's not really what DoAutoScroll
wants, at least the way test_mousecapture.xul is written. test_mousecapture.xul expects DoAutoScroll to scroll
windowheight+N into view by scrolling down by exactly N pixels, so the desired point is exactly at the bottom
edge of the window rect. Using a zero-sized rect achieves this.

--HG--
extra : rebase_source : 5d3d8cc4417c35dc88ad296a4f13e01d2c1c9233
2012-05-10 17:24:19 +12:00
Mats Palmgren
04f80a03f0 Bug 735641 - No way to deselect image of image document after select all (Ctrl+A). r=bz 2012-05-04 02:14:01 +02:00
Mats Palmgren
5daf287b9f Bug 748961 - Flush styles to ensure frames are created. r=smaug,Ms2ger 2012-05-04 02:14:01 +02:00
Masayuki Nakano
e089b336f8 Bug 630811 part.2 Replace nsInputEvent::isShift, nsInputEvent::isControl, nsInputEvent::isAlt and nsInputEvent::isMeta r=smaug 2012-04-25 12:00:02 +09:00
Ehsan Akhgari
cbd5bcd53c Bug 726592 - Uninitialised value use in nsTextFrame::GetChildFrameContainingOffset; r=roc
--HG--
extra : rebase_source : 3e5d2fafc028edb2940bef07302161670692d5a1
2012-03-26 09:09:38 -07:00