3001 Commits

Author SHA1 Message Date
kin%netscape.com
4e48be6712 Fixes from kin@netscape.com and brade@netscape.com
for bug #86450: pasting plaintext into text area loses significant whitespace

    content/base/src/nsDocumentEncoder.cpp
        - Look for -moz-pre-wrap in the correct attribute ("style").

    editor/base/nsHTMLDataTransfer.cpp
    editor/base/nsPlaintextDataTransfer.cpp
        - Set the correct mime-type on the encoder and transfer data.
        - Pass correct init flags to encoder.

    layout/base/src/nsCopySupport.cpp
    layout/base/src/nsCopySupport.h:
        - Added IsPlainTextContext() method.
        - Modified HTMLCopy() to pass correct init flags and
          mime-type to the encoder during plaintext copy.

r=kin@netscape.com,brade@netscape.com sr=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@99185 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-13 13:38:10 +00:00
cmanske%netscape.com
dd394e9fb7 Finish fix for missing menulists in Table Properties dialog, b=89644, r=sfraser, sr=kin
git-svn-id: svn://10.0.0.236/trunk@99156 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-13 04:10:07 +00:00
cmanske%netscape.com
7074b3dbc6 Fixed color picker initialization bug 89973 (r=sfraser) and Last Picked button behavior bug (r=mjudge), sr=kin on both
git-svn-id: svn://10.0.0.236/trunk@99024 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-11 00:42:32 +00:00
cmanske%netscape.com
f6964353f4 Fixed not clearing font color ('defaul') bug 89700, r=akkana, sr=kin
git-svn-id: svn://10.0.0.236/trunk@99017 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-10 23:57:04 +00:00
cmanske%netscape.com
d6f3473514 Fixed missing menulists in Table Properties dialog bug 89644, r=89644, r=brade, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@98964 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-10 04:02:32 +00:00
akkana%netscape.com
2c63364b93 78727,86998: Fix a hang with rewrap introduced by the string API conversion. r=sspitzer, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@98935 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-10 00:40:11 +00:00
tao%netscape.com
6f79e660e5 86807: Some menu items are missing if you use incompatibly profle.
r=jbetak,sr=hyatt. Add locale version to all packages and their locale
providers.


git-svn-id: svn://10.0.0.236/trunk@98908 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-09 22:13:09 +00:00
timeless%mac.com
58b9229092 Bugzilla Bug 70857 [XUL Syntax] Replace <boxDerivedTag align="horizontal|vertical"> with
<boxDerivedTag orient="horizontal|vertical">
patch by andersma@luther.edu r=timeless sr=blake


git-svn-id: svn://10.0.0.236/trunk@98887 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-09 18:41:07 +00:00
cmanske%netscape.com
f258819a11 Fixed loss of HTML Source editing when closing window: b=86742, r=timeless, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@98830 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-06 20:03:41 +00:00
cmanske%netscape.com
93dceca3fa Fixed layout problem in Spell Check dialog: b=57398, r=hewitt, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@98829 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-06 19:46:42 +00:00
cmanske%netscape.com
aec08303fc Fix missing button in Image Properties dialog: b=89644, r=brade, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@98828 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-06 19:42:26 +00:00
cmanske%netscape.com
f170c01e23 Checking in fix for adding Help button to Table Properties dialog for brade, b=88377, r=cmanske, sr=sfraser. Includes fix for missing menulist in this dialog: b=89644, r=brade, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@98825 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-06 19:40:22 +00:00
timeless%mac.com
55814b1fbf Bug 70857 [XUL Syntax]
Smaller CSS/JS/XBL patch, should allow XUL changes to go in easier
by andersma@luther.edu r=timeless sr=blake


git-svn-id: svn://10.0.0.236/trunk@98768 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-06 02:01:52 +00:00
sfraser%netscape.com
c78eb600a2 Fixing bug 85504: Crash in GetSelectedElement if loading a bad frameset page -- fix frameset detection, and add null checks. r=akkana, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@98749 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-06 00:50:05 +00:00
cmanske%netscape.com
ec0bd39530 Fixed Join Table Cells bug 86009, r=mjudge, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@98727 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-05 22:35:22 +00:00
sfraser%netscape.com
c2ca6608c2 Fix wording of dialog shown when you edit a frameset or iframe page in composer. r=brade, sr=blake.
git-svn-id: svn://10.0.0.236/trunk@98508 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-03 01:05:22 +00:00
jaggernaut%netscape.com
51b17b5bf0 Bug 88413: Remove |GetUnicode()| from nsString (and replace it with |get()|). r=dbaron, rs=scc.
This removes all call-sites I can currently fix. Tomorrow I'll try to get someone to checkin my changes to security/ and I'll get some help with the Netscape side of things.

nsString::GetUnicode()'s final death-blow will be dealt soon. Please keep this in mind as you add new code :-)


git-svn-id: svn://10.0.0.236/trunk@98363 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-30 11:02:25 +00:00
sfraser%netscape.com
6900675b19 Fix for bug 87910 -- allow Edit Page to work a second time. r=dougt, sr=kin
git-svn-id: svn://10.0.0.236/trunk@98308 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-29 22:03:10 +00:00
brade%netscape.com
799f75a97d add help buttons to composer dialogs (bug #6685)
git-svn-id: svn://10.0.0.236/trunk@98181 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-28 13:48:52 +00:00
jfrancis%netscape.com
cce6bfcc93 bug fix 84744: insert br after user creates table if table is last node in block. r=brade; sr=kin; a=blizzard
git-svn-id: svn://10.0.0.236/trunk@97993 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-26 23:13:01 +00:00
waterson%netscape.com
fcabb547e0 Bug 87346. Fix txtsvc makefile to create component DLL. r=kin, a=asa
git-svn-id: svn://10.0.0.236/trunk@97810 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-23 05:45:43 +00:00
dougt%netscape.com
5c5c39e4be Landing url parsing branch. 73845. r=alecf@netscape.com, sr=darin@netscape.com, a=blizzard@rednat.com.
This fixes many crashes caused by illegal uses of the nsStdURL.
This also allows a plugable protocol to provide their own url parser.


git-svn-id: svn://10.0.0.236/trunk@97696 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-21 22:02:47 +00:00
waterson%netscape.com
18986ada3f Land STATIC_BUILD_20010612_BRANCH, which supports building mozilla with components statically linked into the executable, as well as 'meta modules' that combine components into uber-DLLs.
git-svn-id: svn://10.0.0.236/trunk@97613 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-20 20:21:49 +00:00
mjudge%netscape.com
b452f6b912 bad ifdef. left this out of previous checkin for middle mouse paste
git-svn-id: svn://10.0.0.236/trunk@97550 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-20 05:18:12 +00:00
dbaron%fas.harvard.edu
88810ef1eb Fix bad getters on nsIDocument and nsIScriptContext to use out params rather than return |AddRef|ed pointers. b=81289 r=jaggernaut sr=jst a=asa
git-svn-id: svn://10.0.0.236/trunk@97540 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-20 03:27:48 +00:00
jfrancis%netscape.com
1c6a1bb7cf fixes:
69320: making new block must put selection in block
74722: pasting into a pre block should not nest pre's
82421: ubercaret after ending list
67847: deletion can put caret incorrectly at start of doc


git-svn-id: svn://10.0.0.236/trunk@97532 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-20 02:05:37 +00:00
brade%netscape.com
af48215dd3 partial fix for 85963 (add alt tag for images inserted via d&d from OS)
git-svn-id: svn://10.0.0.236/trunk@97492 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-19 23:56:22 +00:00
cls%seawood.org
88aedd461b Replaced NO_SHARED_LIB & NO_STATIC_LIB with BUILD_SHARED_LIBS, BUILD_STATIC_LIBS, FORCE_STATIC_LIB & FORCE_SHARED_LIB. Added FORCE_USE_PIC.
Changes allow us to have a finer control over which parts of the tree are built with PIC.  Part of the static build branch landing.
Bug #46775 r=mcafee a=leaf


git-svn-id: svn://10.0.0.236/trunk@97363 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-18 22:10:38 +00:00
jfrancis%netscape.com
76fa344ce5 now with vitamin R for extra wholesome goodness!
(correcting snafu)


git-svn-id: svn://10.0.0.236/trunk@97359 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-18 21:43:20 +00:00
jfrancis%netscape.com
bd7c2eb18f this checkin includes diff for 61232. was supposed to be in previous checkin. r=sfraser; sr=kin; a=asa
git-svn-id: svn://10.0.0.236/trunk@97356 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-18 21:35:07 +00:00
jfrancis%netscape.com
978ab248f8 fixes for:
61232 - Caret comes back to previous line after creating paragraph
54520 - Extra break with list items
54539 - Disappearing numbered list with outdent
60867 - Composer adds extra break when round-tripping empty document through View Source
62347 - Selecting Body Text doesn't work inside other blocks that have embedding breaks


git-svn-id: svn://10.0.0.236/trunk@97351 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-18 21:15:43 +00:00
jfrancis%netscape.com
08caa9059f fix for:
57477: merge pastes list into target list
57989: Pasting list items into list can orphan last list item
66579: copy/paste of list item into another list items causes caret 

mostly a refactoring and improvement of nsHTMLEditor::InsertHTMLWithCharsetAndContext()


git-svn-id: svn://10.0.0.236/trunk@97252 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-15 22:29:07 +00:00
kin%netscape.com
3a9a2b59a4 Fix for bug #62577 - Sublist content disappears when unlisting.
mozilla/editor/base/nsHTMLEditRules.cpp
      - Moved list handling code in WillRemoveList() into a new recursive
        method RemoveListStructure() which WillRemoveList() now calls.

      - Modified WillOutdent() to call MoveNode() when a sublist is encountered.

      - Made ConvertListType() recursive so that all sublists are coverted.

  mozilla/editor/base/nsHTMLEditRules.cpp

      - Added RemoveListStructure() method.

r=jfrancis@netscape.com  sr=sfraser@netscape.com  a=asa@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@97214 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-15 13:57:01 +00:00
cmanske%netscape.com
c5df6bf32e Fixed Image dialog to use new 'removeEntry' method to remove image from cache before loading into preview window. b=78351, r=blake, sr=sfraser, a=asa-drivers
git-svn-id: svn://10.0.0.236/trunk@97199 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-15 03:34:24 +00:00
cmanske%netscape.com
9899a865e9 New Advanced Properties Editor UI. Fixes bugs 71743, 71973, 71027, 73167. Fix is shown on 71743, r=brade, sr=kin, a=asa-drivers
git-svn-id: svn://10.0.0.236/trunk@97019 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-13 01:04:39 +00:00
cmanske%netscape.com
79c507e3a2 Remove Cell Tab in Table Properties dialog when only a table is selected. b=85254, r=jfrancis, sr=kin, a=asa-drivers
git-svn-id: svn://10.0.0.236/trunk@97013 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-13 00:58:56 +00:00
cmanske%netscape.com
92f317ddd0 Fixed wrong attribute string in Insert Table dialog; part of fix to bug 77427, r=brade, sr=kin, a=asa-drivers
git-svn-id: svn://10.0.0.236/trunk@97011 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-13 00:17:12 +00:00
jfrancis%netscape.com
267670ce92 fixing build bustage. editor must link with gfx now.
git-svn-id: svn://10.0.0.236/trunk@96996 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-12 23:34:59 +00:00
jfrancis%netscape.com
95dc24ae05 fix for 82612: this is just asimple refactoring of a large routine so that we need less mem to do an optimized build.
r=kin; sr=sfraser; a=asa


git-svn-id: svn://10.0.0.236/trunk@96992 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-12 23:17:47 +00:00
jfrancis%netscape.com
533c057d2f fix for 54218: outdent was not enabled in many cases. Now we correctly examin parent heirarchy of selection for blockquotes. r=kin; sr=sfraser; a=asa
git-svn-id: svn://10.0.0.236/trunk@96986 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-12 23:03:12 +00:00
jfrancis%netscape.com
ef088d534d fix for 74122: distinquish between named anchors and links in deletion code. links are deleted if they become empty, but not anchors. r=brade; sr=kin; a=asa
git-svn-id: svn://10.0.0.236/trunk@96981 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-12 22:49:09 +00:00
jfrancis%netscape.com
078688a194 fix for 46209: I overhauled nsEditor::IsEditable() to better grok the state of content for editability. r=kin; sr=sfraser; a=asa
git-svn-id: svn://10.0.0.236/trunk@96980 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-12 22:35:28 +00:00
jfrancis%netscape.com
e1d5bae29a fix for 67847 take 2: forgot to add in requested reviewer changes in previous checkin
git-svn-id: svn://10.0.0.236/trunk@96976 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-12 22:27:53 +00:00
jfrancis%netscape.com
0ed7094afa fix for 67847: forward delete can make caret go to start of doc. r=kin; sr=sfraser; a=asa
git-svn-id: svn://10.0.0.236/trunk@96972 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-12 22:21:12 +00:00
kin%netscape.com
2ea1e201ca Fix for bug #83946 (Crash/freeze when backspacing over signature lines)
Fixed infinite loop in PriorVisibleNode() and NextVisibleNode() which would
happen when aNode was a node that could have children, but didn't have any,
and it's prior/next siblings weren't  eNormalWS.

r=jfrancis@netscape.com  sr=sfraser@netscape.com  a=asa@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@96964 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-12 20:46:57 +00:00
cmanske%netscape.com
659478e44b Don't set 'center' alignment for new hrule element, part of fix to bug 83335, r=sfraser, sr=kin, a=asa-drivers
git-svn-id: svn://10.0.0.236/trunk@96792 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-09 21:54:04 +00:00
cmanske%netscape.com
d930b72b5d Fixed test of empty cell in Composer table editing (b=84175, r=brade, sr=kin) and join cells should join with cell to right if only 1 cell selected (b=55991, r=mjudge, sr=kin), both a=asa-drivers
git-svn-id: svn://10.0.0.236/trunk@96754 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-08 23:15:15 +00:00
cmanske%netscape.com
36c001b82c Fixed setting of intial focus in Composer colorpicker dialog (part of fix to 64160, forgot to checkin before)r=kin, sr=hewitt, a=asa-drivers
git-svn-id: svn://10.0.0.236/trunk@96727 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-08 19:48:07 +00:00
cmanske%netscape.com
924e130f04 Fixed setting of attributes after using Advanced Edit in Table dialog, b=77427, r=sfraser, sr=kin, a=asa-drivers
git-svn-id: svn://10.0.0.236/trunk@96695 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-08 05:18:07 +00:00
cmanske%netscape.com
caa3540b27 Fixed extra separator at end of context menu, b=77596, r=sfraser, sr=kin, a=asa-drivers
git-svn-id: svn://10.0.0.236/trunk@96694 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-08 05:08:05 +00:00