293 Commits

Author SHA1 Message Date
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
roc+%cs.cmu.edu
66e8f6e1aa Bug 316281. Rework GetContentAndOffsetsFromPoint. r=uriber,sr=roc,patch by Eli Friedman
git-svn-id: svn://10.0.0.236/trunk@185773 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-07 23:08:39 +00:00
timeless%mozdev.org
a05383ef1b Bug 106386 Correct misspellings in source code
patch by mats.palmgren@bredband.net r=dbaron sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@185018 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-20 22:05:24 +00:00
smontagu%smontagu.org
0dc23ace40 Bug 313602: Bidi: Caret appears incorrectly when using up/down arrows to move into a blank line surrounded by reverse-direction text. Patch by Uri Bernstein <uriber@gmail.com, r=smontagu, sr=roc
git-svn-id: svn://10.0.0.236/trunk@184754 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-16 09:40:52 +00:00
smontagu%smontagu.org
1500b61ab0 Bug 305798: Bidi: After deleting last character of reverse-direction text, arrow keys move caret incorrectly. Patch by Uri Bernstein <uriber@gmail.com, r=smontagu, sr=roc
git-svn-id: svn://10.0.0.236/trunk@184752 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-16 09:37:01 +00:00
dbaron%dbaron.org
ea56e835a3 Make PL_InitEvent callers stop doing potentially dangerous casting of function pointers. b=305278 r=dougt sr=darin
git-svn-id: svn://10.0.0.236/trunk@184589 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-14 20:09:51 +00:00
mats.palmgren%bredband.net
1478c862f7 Restore Mac-specific caret movement when there is a selection. b=299417 r=uriber sr=roc
git-svn-id: svn://10.0.0.236/trunk@182351 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-17 00:51:46 +00:00
mozilla.mano%sent.com
a9be5655a9 Bug 312620 - Bidi: Caret doesn't move correctly when arrowing where line wraps, if the wrapped line starts with a single reverse-direction character. patch from uriber@gmail.com, r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@182346 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-16 23:26:22 +00:00
mozilla.mano%sent.com
08f7d01df1 Bug 308017 - Bidi: up/down-arrow sometimes behave incorrectly after switching keyboard layout. patch from Uri Bernstein <uriber@gmail.com>, r=smontagu, sr=roc.
git-svn-id: svn://10.0.0.236/trunk@180499 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-18 14:18:28 +00:00
mrbkap%gmail.com
1886a2ba22 bug 299622: BiDi: Pressing End in a blank line moves the caret back, to the end of the previous line. Patch by Uri Bernstein <uriber@gmail.com>. r=smontagu sr=roc
git-svn-id: svn://10.0.0.236/trunk@178799 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-24 17:46:45 +00:00
mrbkap%gmail.com
210f1d6d3a bug 303399: Bidi: Problems with caret positioning on blank lines. Patch by Uri Bernstein <uriber@gmail.com>. r=mrbkap sr=roc
git-svn-id: svn://10.0.0.236/trunk@178798 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-24 17:44:28 +00:00
bzbarsky%mit.edu
d1afb179ba Make nsIPresShell::GetPrimaryFrameFor return nsIFrame* instead of using an out
param.  Bug 303779, patch by Bastiaan Jacques <b.jacques@planet.nl>, r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@178642 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-22 22:24:29 +00:00
roc+%cs.cmu.edu
4a089a3fff Bug 305239. Fix regression in text entry. r+sr=roc, patch by Uri Bernstein
git-svn-id: svn://10.0.0.236/trunk@178581 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-22 01:32:03 +00:00
roc+%cs.cmu.edu
a4c1d29439 Bug 16311. Instead of using geometric scanning to find the ends of lines, just look at the frame hierarchy. patch by uriber, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@178168 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-18 17:04:51 +00:00
mozilla.mano%sent.com
65281ba197 Bug 301033 - Bidi: Caret placed in wrong position when arrowing over a single reverse-direction character. patch from Uri Bernstein <uriber@gmail.com>, r+sr=roc, a=asa.
git-svn-id: svn://10.0.0.236/trunk@177316 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-08 07:35:48 +00:00
rbs%maths.uq.edu.au
71eb574482 Avoing crashing due to outdated text pointers by flushing pending reflows before finding out where to scroll the selection, b=252970, r+sr=bzbarsky, a=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@176866 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-30 02:43:17 +00:00
cbiesinger%web.de
28b8f98269 254278 assign to |result| in the loop, to terminate at the right place
r+sr=bz a=asa


git-svn-id: svn://10.0.0.236/trunk@176093 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-14 15:48:11 +00:00
jst%mozilla.jstenback.com
ebed1ee784 Fixing bug 289940. Make chrome event handlers only receive trusted events by default. r=jonas@sicking.cc, sr=peterv@propagandism.org, a=chofmann@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@172848 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-28 23:48:28 +00:00
timeless%mozdev.org
7352c62e9a Bug 217599 Minor tweaks to nsSelection
r=akk sr=rbs


git-svn-id: svn://10.0.0.236/trunk@171203 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-25 07:35:17 +00:00
bryner%brianryner.com
8ed5dd41fb Remove nsIAutoCopy and fold the functionality into nsSelection.cpp (bug 231343). r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@168595 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-31 23:47:26 +00:00
scott%scott-macgregor.org
48f07cde0c Bug #278312 --> layout and selection changes to support inline spell checking for Thunderbird
Includes changes to draw spell check selection as a red dotted line instead of a solid underline.

r/sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@168554 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-31 17:57:35 +00:00
mats.palmgren%bredband.net
9c8e99db31 Move caret normally even if it collapses a selection. b=207623 r=aaronleventhal sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@168330 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-25 22:38:37 +00:00
bmlk%gmx.de
e547c59f49 remove unused prescontext argument from GetOffsetFromView bug 276015 r/sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@167037 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-26 19:48:54 +00:00
dbaron%dbaron.org
7a4b3c8ec0 Make page up and page down leave at most two lines in common between pages. b=175380 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@165753 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-24 22:05:36 +00:00
timeless%mozdev.org
d046585f1b Bug 106386 Correct misspellings in source code
patch by ajvincent@gmail.com r=dbradley rs=brendan


git-svn-id: svn://10.0.0.236/trunk@165193 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-10 07:27:11 +00:00