569 Commits

Author SHA1 Message Date
uriber%gmail.com
87f37e70fc When measuring text, make sure nsTextTransformer::GetNextWord looks only at the part of the text content covered by the current frame. bug=333769 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@195152 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-22 13:29:50 +00:00
dbaron%dbaron.org
0df78a3b3b Let the caret go outside of text frames (particularly when whitespace is trimmed). b=235223 r=mrbkap sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@194959 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 07:58:22 +00:00
uriber%gmail.com
890a674685 Bug 314519: Caret skips blank lines using right-arrow key in some cases of preformatted text. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@193983 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-10 06:49:50 +00:00
roc+%cs.cmu.edu
b6ebd9961d Bug 328926. Remove aPresContext parameter from nsIFrame::Destroy, nsIFrame::SetInitialChildList and nsIFrame::RemovedAsPrimaryFrame. patch by Marc Liddell, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@193976 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-10 00:16:29 +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
31609c1a43 Make wordSelectEatSpaceAfter take effect when moving forward relative to the paragraph direction, regardless of the text frame direction. bug=299535 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@193678 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-06 08:21:12 +00:00
dbaron%dbaron.org
9911a9b756 Remove uses of MOZ_DECL_CTOR_COUNTER, which is always defined to nothing. b=332745 rs=roc,bzbarsky
git-svn-id: svn://10.0.0.236/trunk@193572 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-05 00:00:44 +00:00
uriber%gmail.com
b4c4d45d77 Bug 299240: BiDi: Caret gets stuck (or moves cyclically) when using Ctrl+arrow and reaching a reverse-direction character/word followed by punctuation. r=smontagu sr=roc
git-svn-id: svn://10.0.0.236/trunk@193407 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-03 08:05:46 +00:00
sharparrow1%yahoo.com
6de1b08e94 Bug 244055: Page layout for editor. There is no UI yet, and caret display is buggy at the moment, but otherwise it works. Patch by Alexandre Trémon, r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@193366 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-01 01:19:28 +00:00
darin%meer.net
70deb5f58d fixes bug 328925 "Replace NS_WARN_IF_FALSE with NS_ASSERTION (where appropriate)" r=dbaron
git-svn-id: svn://10.0.0.236/trunk@193272 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-30 18:40:56 +00:00
dbaron%dbaron.org
b258ce85ca Single line comments to describe files (helpful in LXR)
git-svn-id: svn://10.0.0.236/trunk@193203 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-29 18:29:03 +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
rbs%maths.uq.edu.au
ea324b55a6 Re-checkin as it showed no impact on luna's TDHML bug 331661. Introduce a soft-break flag that means that a whitespace has been trimmed at the end of the line, and therefore its width has not been accounted for (this width can actually be large, e.g., if a large word-spacing is set). LineLayout should not be misled into placing something where the whitespace was trimmed. b=329987, r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@193030 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-27 07:04:29 +00:00
rbs%maths.uq.edu.au
f057f2eefe Backing out to investigate the DHTML jump on luna, bug 331661
git-svn-id: svn://10.0.0.236/trunk@193028 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-27 05:21:44 +00:00
roc+%cs.cmu.edu
140fbb3377 Bug 330934. Set a nsIFrame's stylecontext in its constructor, to ensure that there's always one available for GetPresContext() to use even if Init hasn't been called. Patch by Marc Liddell, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@193022 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-26 21:30:36 +00:00
rbs%maths.uq.edu.au
a824b2320f Introduce a soft-break flag that means that a whitespace has been trimmed at the end of the line, and therefore its width has not been accounted for (this width can actually be large, e.g., if a large word-spacing is set). LineLayout should not be misled into placing something where the whitespace was trimmed. b=329987, r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@192959 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-24 22:45:05 +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
pavlov%pavlov.net
b5c7a440ef backing out roc's patch for bug 328926 due to crash running tests on vc8 machines.
git-svn-id: svn://10.0.0.236/trunk@192407 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-15 06:43:36 +00:00
roc+%cs.cmu.edu
6e36f2c733 Bug 328926. Remove aPresContext parameter from Destroy and SetInitialChildList. patch by Marc Liddell, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@192399 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-15 03:14:02 +00:00
roc+%cs.cmu.edu
c469d694c3 Bug 330300. Move mFrame from nsDisplayItem subclasses up to nsDisplayItem itself, and make GetUnderlyingFrame an inline non-virtual function. Patch by Alfred Peng, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@192331 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-14 20:43:18 +00:00
roc+%cs.cmu.edu
38a9722e9f Bug 328926. Remove aPresContext from nsIFrame::Init and nsIFrame::DidSetStyleContext. r+sr=roc, patch by Marc Liddell
git-svn-id: svn://10.0.0.236/trunk@192085 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-09 18:55:21 +00:00
masayuki%d-toybox.com
5fd3fef77b Bug 164700 css word-spacing applies at   at paint time but not at layout (reflow) time r+sr=rbs
git-svn-id: svn://10.0.0.236/trunk@191955 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-08 03:30:57 +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
uriber%gmail.com
9abc8fa432 Bug 299065: Bidi resolution needs to split inlines in addition to text frames. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@190744 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-21 21:33:47 +00:00
sharparrow1%yahoo.com
c7989ee277 Bug 327868: nsIFrameSelection cleanup. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@190633 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-21 00:49:04 +00:00
smontagu%smontagu.org
0880a65986 Point Arabic lam alef pairs to lam-alef ligatures. Bug 308020, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@189789 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-12 09:43:18 +00:00
sharparrow1%yahoo.com
6e15d1b177 Bug 321433 - Don't enable selection for printing. r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@189285 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 02:52:40 +00:00
rbs%maths.uq.edu.au
09596f2194 CSS Letter-Spacing Heap Overflow, b=325403, r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@189278 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:58:35 +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
bzbarsky%mit.edu
fb8579f413 Fix leak bug 324969 -- make sure to call virtual destructors.
git-svn-id: svn://10.0.0.236/trunk@188434 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-29 18:48:58 +00:00
roc+%cs.cmu.edu
df8627e29b Bug 317375. Reorganize frame painting and mouse event targeting around frame display lists. Some review from dbaron, lots of testing help from Martijn, Julien and others
git-svn-id: svn://10.0.0.236/trunk@188202 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-26 02:29:17 +00:00
uriber%gmail.com
0b494c61e8 Bug 321487: Crash when moving caret backwards over text frame consisting of a single CR [nsTextFrame::PeekOffset]. r=rbs sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@186615 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-27 15:15:40 +00:00
uriber%gmail.com
0d12c6eeee Bug 319705: Crash when deleting comment line selected with triple click [@nsFontMetricsWin::ResolveForwards]. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@186575 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-25 14:27:14 +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
roc+%cs.cmu.edu
d915699909 Bug 319115. Move nsTextFrame interfaces around so nsTextFrame.h can go away. Preparation for forking nsTextFrame. patch by Stephen Blackheath, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@185720 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-06 00:32:52 +00:00
masayuki%d-toybox.com
826e231134 Bug 113161 Color/background-color of preedit string is always default(we should not use invert) / Bug 170951 IME should use OS system color for selection instead of inverting r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@185025 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-20 23:43:48 +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
roc+%cs.cmu.edu
c4e0410c6e Bug 313817. DeCOMtaminate more NS_New*Frame functions. r+sr=roc, patch by Marc Liddell
git-svn-id: svn://10.0.0.236/trunk@184129 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-04 02:38:33 +00:00
smontagu%smontagu.org
a38b2c61f4 Caret skips blank line using down-arrow key in preformatted text (e.g. View Source). Bug 298690, patch by Uri Bernstein <uriber@gmail.com>, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@183253 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-30 13:05:45 +00:00
bzbarsky%mit.edu
78bef58df3 Fix leaks caused by bug 307532. Patch by biesi, r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@183243 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-29 16:16:35 +00:00
masayuki%d-toybox.com
5ca778cfea Bug 307532 Selection colors should be saved in nsTextFrame::TextPaintStyle, not DrawSelectionIterator r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@183241 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-29 14:01:55 +00:00
masayuki%d-toybox.com
1cc8b073e7 Bug 313174 IME composition string isn't rendered as selection text r=sergei_d, sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@183078 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-26 20:16:01 +00:00
rbs%maths.uq.edu.au
b467153801 Disable parts of the patch for bug 307875 to fix the caret & IME regressions in bug 310227 and bug 310318, r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@181394 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-01 05:17:20 +00:00
rbs%maths.uq.edu.au
c74965ca95 Avoing crashing due to outdated text pointers by never poking at dirty text frames, b=307875, r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@181024 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-27 02:47:17 +00:00
mozilla.mano%sent.com
ffaf2b5c34 Bug 307934 - regression: In RTL text, can't move caret using arrow keys past point where text wraps. patch from Uri Bernstein <uriber@gmail.com>, r=eyalroz@technion.ac.il, sr=roc.
git-svn-id: svn://10.0.0.236/trunk@180501 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-18 14:29:09 +00:00
Olli.Pettay%helsinki.fi
10968377cc Bug 306895, Triple click should select lines, not paragraphs, in white-space: -moz-pre-wrap;, p=uriber@gmail.com, r/sr=roc
git-svn-id: svn://10.0.0.236/trunk@180495 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-18 12:41:40 +00:00
mats.palmgren%bredband.net
21ea3993f5 Don't apply selection colors when printing. b=90434 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@180241 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-14 21:32:28 +00:00
mats.palmgren%bredband.net
c062e88c33 Fix buffer overflow on 'clusterBuffer' and improve error handling in FillClusterBuffer(). b=307537 r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@180004 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-12 01:05:58 +00:00
peterv%propagandism.org
b64b04886f Fix for bug 306363 (Clean up nsContentUtils service getters). r/sr=bz.
git-svn-id: svn://10.0.0.236/trunk@179982 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-11 10:08:43 +00:00