317 Commits

Author SHA1 Message Date
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
uriber%gmail.com
41ff9bdb2d Bug 336590: Caret can not be placed after space at the end of a wrapped line in textarea, using the mouse. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@196314 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-11 16:28:01 +00:00
darin%meer.net
42edf059cf landing patch for bug 326273 "Implement nsIThreadManager" (Mac portions by Mark Mentovai) with reviews from bienvenu, bsmedberg, bzbarsky, josh, roc, and ssieb
git-svn-id: svn://10.0.0.236/trunk@196254 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-10 17:30:15 +00:00
uriber%gmail.com
b9a63a6472 Fixed reversed order of parameters for call to nsPrevNextBidiLevels::SetData(). bug=336617 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@196104 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-06 12:56:45 +00:00
cvshook%sicking.cc
cec9ea1123 Bug 335911: Change nsIContent::IsContentOfType to nsINode::IsNodeOfType. r/sr=bz
git-svn-id: svn://10.0.0.236/trunk@196009 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-05 06:52:21 +00:00
roc+%cs.cmu.edu
d3935bd295 Bug 336186. Fix use of uninitialized rv. patch by Marc Liddell, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@195936 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-03 21:39:55 +00:00
bzbarsky%mit.edu
35553cc59b Make nsIDocumentEncoder::init scriptable. Bug 330517, patch by jpl24
<jlurz24@gmail.com>, r=bzbarsky, sr=sicking


git-svn-id: svn://10.0.0.236/trunk@195756 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-01 05:25:52 +00:00
mrbkap%gmail.com
64f5c8e34a Update the caret position after reflows to avoid turds. bug 334649, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@195632 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-28 04:33:41 +00:00
roc+%cs.cmu.edu
b8d4b34078 Fixing Windows bustage
git-svn-id: svn://10.0.0.236/trunk@195414 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-26 02:45:18 +00:00
roc+%cs.cmu.edu
02b50c231a Bug 330305. Rename nsSelection to nsFrameSelection, and deCOMtaminate it, removing nsIFrameSelection. patch by Marc Liddell, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@195412 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-26 02:01:07 +00:00
mrbkap%gmail.com
1f0253c287 Don't cache the result of GetPointFromOffset if it failed, since subsequent queries for that offset will return the bogus offset. bug 334608, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@195295 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-24 21:18:44 +00:00
uriber%gmail.com
59333a3f4e Set the hint to HINTRIGHT when setting selection programatically. bug=334256 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@194699 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-19 20:21:25 +00:00
gavin%gavinsharp.com
2fa2f35e06 Bug 317269: fix comment, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@194542 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-17 22:06:25 +00:00
martijn.martijn%gmail.com
062315c85d Backing out the patch for bug 333136, since it causes regressions
git-svn-id: svn://10.0.0.236/trunk@194533 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-17 20:56:25 +00:00
sharparrow1%yahoo.com
1c6d65819c Bug 328395: deal with an nsTypedSelection existing after its presentation is destroyed so it doesn't crash. r=bzbarsky, sr=roc
git-svn-id: svn://10.0.0.236/trunk@194369 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-14 00:28:22 +00:00
martijn.martijn%gmail.com
af6f3b8e45 Bug 333136 - scrollSelectionIntoView should try to scroll the complete selection into view, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@194315 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-13 15:40:52 +00:00
uriber%gmail.com
f7fdeca918 Implemented bidi.edit.caret_movement_style pref, default is "visual, but logical during selection". bug=330175 r=smontagu sr=roc
git-svn-id: svn://10.0.0.236/trunk@193942 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-08 14:45:48 +00:00
uriber%gmail.com
fab151668b For left/right arrows, don't flip the hint in PeekOffset(); instead figure it afterwards in MoveCaret(). bug=331444 r=smontagu sr=roc
git-svn-id: svn://10.0.0.236/trunk@193140 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-28 18:33:37 +00:00
uriber%gmail.com
1b5030c427 Bug 331440: Remove eSelectDir from nsSelectionAmount enum, and all references to it. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@192855 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-23 18:36:44 +00:00
uriber%gmail.com
1cfa63d599 Simplified bidi code in GetFrameFromDirection; changed bidi semantics of eDirPrevious, eDirNext. bug=330815 r=smontagu sr=roc
git-svn-id: svn://10.0.0.236/trunk@192843 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-23 08:30:30 +00:00
uriber%gmail.com
60d1fa7f53 In nsTextEditRules::CheckBidiLevelForDeletion(), use nsSelection::GetPrevNextBidiLevels to determine bidi levels. bug=330460 r=smontagu sr=roc
git-svn-id: svn://10.0.0.236/trunk@192841 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-23 08:20:29 +00:00
dbaron%dbaron.org
2ec4e93072 Fix clamping of scrollable area in light of ability to scroll to the left. b=330732 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@192821 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-23 00:13:07 +00:00
sharparrow1%yahoo.com
bf9ca61396 Bug 329031 - home/end/ctrl+home/ctrl+end offset calculation cleanup. r=uriber, sr=roc.
git-svn-id: svn://10.0.0.236/trunk@192249 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-13 01:13:25 +00:00
uriber%gmail.com
7ef51a976c Bug 328655: Pressing "Home" or "End" on a blank line in a textarea in a bidi page moves the caret to the top of the textarea. r=smontagu sr=roc
git-svn-id: svn://10.0.0.236/trunk@191508 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-01 19:34:00 +00:00
sharparrow1%yahoo.com
46b919e4f9 Bug 320326: deCOMtaminate GetContentAndOffsetsFromPoint, plus some slight behavior changes. r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@191302 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-27 05:57:37 +00:00
cbiesinger%web.de
6322c04952 bug 183156 remove *UCS2* functions, replacing them with *UTF16* ones
r+sr=darin


git-svn-id: svn://10.0.0.236/trunk@188844 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-03 14:18:39 +00:00
dbaron%dbaron.org
0b82618f71 Don't store or use a widget in the delayed caret data; it's not important, and it might have been destroyed. b=307989 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@186150 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-16 04:58:33 +00:00