293 Commits

Author SHA1 Message Date
jwalden%mit.edu
dda6ff3c99 Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros.
git-svn-id: svn://10.0.0.236/trunk@229504 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-08 07:08:56 +00:00
peterv%propagandism.org
9e04fca5dd Fix for bug 237964 (Allow editable areas in browser (contentEditable)). r/sr=sicking.
git-svn-id: svn://10.0.0.236/trunk@228918 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-28 02:48:22 +00:00
peterv%propagandism.org
857e346b36 Backing out to fix orange.
git-svn-id: svn://10.0.0.236/trunk@228906 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-27 23:21:09 +00:00
peterv%propagandism.org
4161532453 Fix for bug 237964 (Allow editable areas in browser (contentEditable)). r/sr=sicking.
git-svn-id: svn://10.0.0.236/trunk@228893 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-27 22:29:54 +00:00
mrbkap%gmail.com
1d33ba9743 Don't depend on undefined behavior (sign extension on right shift). bug 385259, r=mats.palmgren sr=jst
git-svn-id: svn://10.0.0.236/trunk@228721 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-25 21:53:21 +00:00
bzbarsky%mit.edu
116d69628c Rename nsIFrame::GetPresContext to nsIFrame::PresContext. Bug 376042, patch by
Taras Glek <tglek@mozilla.com>, rs=roc.


git-svn-id: svn://10.0.0.236/trunk@222659 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-30 21:11:47 +00:00
Olli.Pettay%helsinki.fi
b1dd2d9bf8 Bug 375093, Crash [@ nsTypedSelection::ScrollIntoView] when right-clicking paste in input which then gets destroyed oninput, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@222273 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-23 17:32:34 +00:00
Olli.Pettay%helsinki.fi
e4da0cdd24 Bug 374937, Crashes [@ nsTypedSelection::GetFrameSelection], r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@222220 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-23 00:06:38 +00:00
Olli.Pettay%helsinki.fi
27faae2f65 Bug 373586 , r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@222032 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-19 10:23:29 +00:00
Olli.Pettay%helsinki.fi
a01e4e1bd7 Backout bug 373586
git-svn-id: svn://10.0.0.236/trunk@222029 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-19 08:13:01 +00:00
Olli.Pettay%helsinki.fi
e39d41de6e Bug 373586 , r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@222026 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-19 06:30:41 +00:00
uriber%gmail.com
406711070e Always initialize numChildren, now that it's always checked. bug=368893 r=nian.liu sr=roc
git-svn-id: svn://10.0.0.236/trunk@219478 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-04 21:24:49 +00:00
mats.palmgren%bredband.net
d5c6c5d749 Collapse() might have destroyed 'frame'. b=368697 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@219207 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-30 22:28:06 +00:00
uriber%gmail.com
7627d11f46 The correct version of the patch for bug 363198, this time.
git-svn-id: svn://10.0.0.236/trunk@219190 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-30 19:36:55 +00:00
uriber%gmail.com
512057cadc GetFrameForNodeOffset: if aNode has no children and the offset is 0, return the frame corresponding to aNode rather than failing. patch by Nian Liu <nian.liu@sun.com>. bug=363198 r=uriber sr=roc.
git-svn-id: svn://10.0.0.236/trunk@219189 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-30 19:29:55 +00:00
cvshook%sicking.cc
ccd1d6884d Kill remainders of ns(XBL|HTML|XUL|Layout)Atoms. r/sr=jst b=368128
git-svn-id: svn://10.0.0.236/trunk@219151 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-30 00:06:41 +00:00
timeless%mozdev.org
c778d21502 Bug 355300 There should be only one nsGkAtoms creature
r=dbaron


git-svn-id: svn://10.0.0.236/trunk@217425 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-26 17:47:52 +00:00
gavin%gavinsharp.com
af54921f6e Bug 320468: SetDelayCaretOverExistingSelection is unused, patch by Adam Guthrie <ispiked@gmail.com>, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@217054 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-16 14:40:44 +00:00
uriber%gmail.com
9d04f04293 Null-check GetContentOffsetsFromPoint's output, to avoid crashes later. bug=361229 r=roc sr=sicking
git-svn-id: svn://10.0.0.236/trunk@215672 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-22 17:34:15 +00:00
mats.palmgren%bredband.net
e5aaecc35e Right arrow key (to collapse selection to right) does not scroll textbox to show caret. b=352759 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@215034 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-09 16:37:10 +00:00
cvshook%sicking.cc
5b1363f0be Kill nsGeneratedContentIterator and related classes and code since it's not used. r/sr=dbaron b=357957
git-svn-id: svn://10.0.0.236/trunk@214128 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-25 20:24:00 +00:00
cvshook%sicking.cc
7a22e1ec80 Bug 357445: Some cleanup of range code. r/sr=jst
git-svn-id: svn://10.0.0.236/trunk@213947 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-21 01:30:54 +00:00
flamingice%sourmilk.net
5356b2670d Bug 351575, Dereference before null check in |nsTypedSelection::GetRangesForInterval|, patch by Adam Guthrie <ispiked@gmail.com>, r=brettw, sr=bryner
git-svn-id: svn://10.0.0.236/trunk@212234 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-24 06:04:00 +00:00
Olli.Pettay%helsinki.fi
f4d5b8a9f7 Bug 349931, crashes during drag-and-drop, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@211914 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-18 08:47:06 +00:00
uriber%gmail.com
78cfa593e6 Refactor nsIFrame::PeekOfset to use iteration instead of recursion, plus some more related refactoring. bug=300131 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@209768 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-11 20:43:01 +00:00
uriber%gmail.com
fcf4d1b5af Backing out bug 300131 until I figure out how to deal with the bustage.
git-svn-id: svn://10.0.0.236/trunk@209689 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-11 08:03:28 +00:00
uriber%gmail.com
09e8c4f558 Refactor nsIFrame::PeekOfset to use iteration instead of recursion, and some related refactoring. bug=300131 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@209685 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-11 06:39:56 +00:00
uriber%gmail.com
30f3ba7887 Allow users of nsFrameTraversal to specify what features they want the iterator to have, and make nsFrame::GetFrameFromDirection() specify "following OOFs". bug=334626 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@208806 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-30 13:38:16 +00:00
uriber%gmail.com
d9b988dfa9 Use the caret visual position as a base for visual movement, but the logical position as a base for logical movement. bug=350012 r=smontagu sr=roc
git-svn-id: svn://10.0.0.236/trunk@208799 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-30 09:26:39 +00:00
uriber%gmail.com
c4edf79a42 In GetPrevNextBidiLevels, treat the "before <br>" case as if we were end-of-line. bug=330461 r=smontagu sr=roc
git-svn-id: svn://10.0.0.236/trunk@207306 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-14 11:25:57 +00:00
brettw%gmail.com
1ba371c6b6 Bug 346729 r+sr=bryner Table cell selection is broken (get multiple copies on paste)
git-svn-id: svn://10.0.0.236/trunk@207081 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-10 19:56:43 +00:00
uriber%gmail.com
bf3c2a0692 Moved mCaretBidiLevel and its accessors from nsPresShell to nsFrameSelection. Also added sBidiKeyboard as a static service to nsContentUtils. bug=346891 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@206807 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-08 05:14:52 +00:00
uriber%gmail.com
7ac86afda7 Refactored nsSelection::GetPrevNextBidiLevels to use GetFrameFromDirection; moved GetFrameFromDirection from nsFrame to nsIFrame and made it nonvirtual. bug=333883 r=smontagu sr=roc
git-svn-id: svn://10.0.0.236/trunk@206713 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-07 10:54:56 +00:00
uriber%gmail.com
88493c286c Check for a null aNode in nsTypedSelection::ContainsNode and return immediately. bug=347036 r=brettw sr=bryner
git-svn-id: svn://10.0.0.236/trunk@206507 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-03 19:22:50 +00:00
uriber%gmail.com
17a6df652a Enable PeekOffset to find the visual beginning/end of a line, and use use it for bidi caret positioning. bug=302051 r=smontagu sr=roc
git-svn-id: svn://10.0.0.236/trunk@206472 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-03 06:24:11 +00:00
brettw%gmail.com
aa08b1de5b Bug 346185 r=uriber sr=bryner fixing one of two misspelled words in a line makes spellcheck underline disappear on both
git-svn-id: svn://10.0.0.236/trunk@206176 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-31 18:25:22 +00:00
brettw%gmail.com
a73024d124 Bug 345099 r+sr=bryner Fix includes from main patch on this bug
git-svn-id: svn://10.0.0.236/trunk@204988 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-27 21:46:34 +00:00
brettw%gmail.com
abe6b7bd0b Fix bustage from bug 345099
git-svn-id: svn://10.0.0.236/trunk@204960 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-27 18:39:18 +00:00
brettw%gmail.com
1c955ae960 Bug 345099 r=uriber sr=bryner Sort ranges in selection for faster comparison.
git-svn-id: svn://10.0.0.236/trunk@204945 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-27 17:57:15 +00:00
cvshook%sicking.cc
365266c686 Bug 344050: Kill nsITextContent and move the methods to nsIContent. r/sr=jst
git-svn-id: svn://10.0.0.236/trunk@203078 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-19 04:36:36 +00:00
uriber%gmail.com
635bd815f7 Fix bidi behavior of ctrl+backspace and ctrl+del. bug=344226 r=smontagu sr=roc
git-svn-id: svn://10.0.0.236/trunk@202304 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-18 07:28:38 +00:00
uriber%gmail.com
c9e0cfc251 Use GetFrameForNodeOffset instead of GetPrimaryFrameFor when extending selection for doubleclick-drag. bug=344384 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@202004 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-13 09:08:56 +00:00
uriber%gmail.com
cc251423d1 Clean up nsPeekOffsetStruct. bug=343763. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@201994 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-13 06:06:29 +00:00
uriber%gmail.com
8949cb7ef1 Bug 16203: double-click drag should do selection in "word-by-word" mode. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@201921 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-12 07:07:36 +00:00
martijn.martijn%gmail.com
ad03baad9d Bug 342422 - Using createRange() and then adding that range to the selection with addRange throws exception, r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@200611 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-22 19:07:33 +00:00
mark%moxienet.com
011cbdbc29 209989 After Find Again (Ctrl-G/F3), text highlighting color becomes green. Patch (tweak) by Peter Kasting <pkasting@google.com>. r=dbaron
git-svn-id: svn://10.0.0.236/trunk@200377 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-20 00:30:18 +00:00
mark%moxienet.com
358bd9fb6c 209989 After Find Again (Ctrl-G/F3), text highlighting color becomes green. Patch by Peter Kasting <pkasting@google.com>. r=mconnor sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@200173 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-17 01:05:26 +00:00
mrbkap%gmail.com
1b46c4ab62 Avoid a crash in nsAutoScrollTimer by keeping a reference to the content instead of the view. bug 322084, patch by jpl24 <jlurz24@gmail.com>, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@200087 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-16 01:54:31 +00:00
brettw%gmail.com
1a53ef8dd8 Bug 337871 r+sr=roc Screen jumps around with multiple textboxes and spellchecking
git-svn-id: svn://10.0.0.236/trunk@198685 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-30 21:59:56 +00:00
uriber%gmail.com
061a9992b0 Adjust the fix for bug 334256 so that it does not affect non-normal selections. bug=338315, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@198166 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-22 16:56:44 +00:00