4271 Commits

Author SHA1 Message Date
bzbarsky%mit.edu
1aeb3f0f20 Trim whitespace that comes right before a <br> when trimming whitespace. Bug
132561 relanding, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@195017 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-21 01:31:35 +00:00
dbaron%dbaron.org
55b4246403 Missed review comment. b=302536
git-svn-id: svn://10.0.0.236/trunk@194993 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 21:04:18 +00:00
dbaron%dbaron.org
bb49723daa Fix crash relating to uninitialized floats in cursor structure, and make imagemap images use the cursor style of the areas when in them (instead of the cursor style from the image) and the cursor style of the image when not in the areas (instead of a hardcoded default). b=302536 r=biesi sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@194992 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 21:02:10 +00:00
bzbarsky%mit.edu
9241b52e99 Treat terminal newlines in preformatted text like we treat <br> when inserting
frames into a block.  Bug 310087, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@194984 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 19:00:33 +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
jwatt%jwatt.org
a00535b6a7 Fixing bug 333733. Could leak attr in nsFrameUtil::Tag::ReadAttrs. r+sr=dbaron@mozilla.com
git-svn-id: svn://10.0.0.236/trunk@194742 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 00:13:34 +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
vladimir%pobox.com
e68c508dc4 b=333177, update canvas internal interfaces, optimize canvas, and fix some implementation bugs; r=stuart
git-svn-id: svn://10.0.0.236/trunk@194628 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-18 21:23:15 +00:00
mrbkap%gmail.com
b8eef2bbb9 Draw the caret in the normal path of frame painting instead of doing it directly to the current view. bug 287813, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@194553 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-17 23:16:46 +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
dbaron%dbaron.org
0abb1d10ac Back out checkins for bug 333829, for now at least.
git-svn-id: svn://10.0.0.236/trunk@194496 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-17 03:19:22 +00:00
bzbarsky%mit.edu
c0fedf14ea Don't mess with empty float cache lists. Bug 334105, r+sr+branch181=dbaron
git-svn-id: svn://10.0.0.236/trunk@194490 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-17 01:47:41 +00:00
dbaron%dbaron.org
168d2ef516 Clamp curpos to between its min and max to fix resizing regression. b=333829 Patch from Hideo Saito <saito@densan.co.jp>. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@194481 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-16 20:05:30 +00:00
dbaron%dbaron.org
53af910084 Set curpos after maxpos to fix restoration of horizontal scrollbar in RTL scrolled all the way to the left. b=333829 Patch from Hideo Saito <saito@densan.co.jp>. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@194472 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-16 06:34:45 +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
sharparrow1%yahoo.com
7964cbc37f Bug 333590: fix input field scrolling. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@194202 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-12 01:55:25 +00:00
bzbarsky%mit.edu
6dc3270ec7 Make line boxes have the right width when justifying. Bug 309761, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@194200 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-12 01:07:01 +00:00
sharparrow1%yahoo.com
c9ccbbfad1 Bug 332927: missed a file
git-svn-id: svn://10.0.0.236/trunk@194090 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-11 02:20:24 +00:00
sharparrow1%yahoo.com
b1c51e04df Bug 332927: Cleanup iframe/frame printing code (and a couple other misc. cleanups)
git-svn-id: svn://10.0.0.236/trunk@194085 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-11 01:48:48 +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
roc+%cs.cmu.edu
cbc5855a71 Bug 282173. Remove BuildFloatList. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@193974 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-09 22:56:27 +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
dbaron%dbaron.org
c17b6b4c3d Fix state restoration for RTL cases. b=331607 Patch from Hideo Saito <saito@densan.co.jp>. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@193832 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-07 19:51:46 +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
bzbarsky%mit.edu
84ef11c140 Make sure to not rely on how scrollframes handle frame offsets (esp. since it's
changed) when positioning fixed-pos frames.  Bug 331729, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@193567 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-04 22:36:01 +00:00
pavlov%pavlov.net
2e3d9319de add type info to thebes. bug 332743. r=vlad
git-svn-id: svn://10.0.0.236/trunk@193561 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-04 21:54:22 +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
38dfc5e1f2 Reorder FinishAndStoreOverflow and SyncFrameViewAfterReflow so it does what I intended. b=331458 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@193244 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-30 04:26:36 +00:00
sharparrow1%yahoo.com
4faf77261e Bug 331415: some printing code cleanup. r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@193231 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-30 00:27:42 +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
dbaron%dbaron.org
39a926c190 Fix two regressions related to sizing of canvas frames. b=331458 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@193023 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-26 22:12:54 +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
roc+%cs.cmu.edu
cbf12a16e3 Bug 328946. Mark reflowed block as non-dirty earlier, so we don't get a spurious assertion. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@193020 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-26 21:02:19 +00:00
dbaron%dbaron.org
e92900026b Always use the UI direction for the scrollbar side, which is what we used to do in the most common case, but make it a pref. b=330863 r=smontagu sr=roc
git-svn-id: svn://10.0.0.236/trunk@193001 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-26 00:48:03 +00:00
Olli.Pettay%helsinki.fi
ed6f59a4d7 Bug 330710, Replace obsolete preventBubble/preventCapture with stopPropagation, r=neil, r=mconnor, sr=jst
git-svn-id: svn://10.0.0.236/trunk@192998 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-25 22:03:49 +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
cvshook%sicking.cc
a3aecc875b Bug 329974: Share textdata for common textnode values. r/sr=jst
git-svn-id: svn://10.0.0.236/trunk@192902 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-24 03:29:52 +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
6997cf4a86 It is no longer correct to assume 0 as a default value for curpos, due to translations of curpos when scrolling left of the viewport. b=331049 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@192832 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-23 03:45:41 +00:00