134 Commits

Author SHA1 Message Date
disttsc%bart.nl
f69c0e7cd8 bug 73339: Remove NS_ConvertToString (just another name for NS_ConvertASCIItoUCS2) from the tree. r=jst, sr=scc
git-svn-id: svn://10.0.0.236/trunk@90514 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 11:17:17 +00:00
blakeross%telocity.com
36a188b7cb Backing out to fix bustage.
git-svn-id: svn://10.0.0.236/trunk@90031 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 22:37:59 +00:00
mjudge%netscape.com
0d731312ff removal of #ifdefs foor 68396 r=cmanske all depricated code just a clean up
git-svn-id: svn://10.0.0.236/trunk@90025 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 21:30:08 +00:00
erik%netscape.com
44e2c24154 bug 71339; author=simon@softel.co.il; r=rods; sr=erik; changes from IBM
bidi project (Hebrew, Arabic, etc); in ifdef IBMBIDI for now


git-svn-id: svn://10.0.0.236/trunk@89836 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 23:20:21 +00:00
rods%netscape.com
793e57b78c Display frame reflow counts (turned via config file define)
Bug 71514 r=kmclusk sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@89416 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 01:47:22 +00:00
disttsc%bart.nl
af75904cf7 Change implicit conversion from
|NS_ConvertUTF8toUCS2|
|NS_ConvertASCIItoUCS2|
|NS_ConvertUCS2toUTF8|
|nsLiteral[C]String|
|nsPromiseFlat[C]String|

to explicit |get()|.

Add |get()| to |nsString|, remove implicit conversion operators where
possible, add NS_WARNING where not (yet!).

Bug=53057, r=alecf, sr=scc


git-svn-id: svn://10.0.0.236/trunk@88957 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 12:33:57 +00:00
disttsc%bart.nl
abd8de21e5 Change implicit conversion from
|NS_ConvertUTF8toUCS2|
|NS_ConvertASCIItoUCS2|
|NS_ConvertUCS2toUTF8|
|ns[C]LiteralString|
|ns[C]PromiseFlatString|

to explicit |get()|.

Add |get()| to |nsString|, remove implicit conversion operators where possible, add NS_WARNING where not (yet!).

Bug=53057, r=alecf, sr=scc


git-svn-id: svn://10.0.0.236/trunk@88947 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 08:05:05 +00:00
rods%netscape.com
77b173f072 factoring of code for Submit/Reset in control frames
Bug 65747 r=pollmann sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@87745 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-23 01:01:08 +00:00
pollmann%netscape.com
b264a9f1ba Bug 69365: Fix mail reply-all by reverting pres-state optimizations r=ducarroz@netscape.com, sr=jst@netscape.com,vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@87628 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-22 03:16:34 +00:00
heikki%netscape.com
26d94ba9b0 Splitting layout into two libraries, layout and content. r=jst@netscape.com, sr=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@87383 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-19 21:50:04 +00:00
blakeross%telocity.com
82b2fb8487 Scroll the page if single-line textfields have focus instead of doing nothing when scrolling with the mousewheel (62431). r=bryner,akkana sr=alecf
git-svn-id: svn://10.0.0.236/trunk@86843 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-12 21:53:34 +00:00
pierre%netscape.com
8944a57fe0 Reinstate my changes that were backed out 10 days ago. #43457 split nsStyleSpacing into 4 smaller structures: nsStyleBorder, nsStylePadding, nsStyleMargin, nsStyleOutline. r=attinasi,sr=buster.
git-svn-id: svn://10.0.0.236/trunk@86533 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-07 09:57:26 +00:00
pollmann%netscape.com
07a6277aa1 Bug 62713: Only save form input values in SH if changed plus cleanups (error handling, NS_LITERAL_STRING), r=jst@netscape.com, sr=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@86279 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-06 01:59:59 +00:00
kin%netscape.com
e8d448c157 Fix for bug #65857: Trailing whitespaces confuse form field value
Modified SetTextControlFrameState() to use GetTextControlFrameState() when
comparing the current value.
r=akkana@netscape.com sr=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@85863 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-31 21:00:43 +00:00
jfrancis%netscape.com
7cde2dddd5 bug 66290: embedding work: refactor editor to allow smaller plaintext only library. Embedding clients may be interested inthis library if they want to embed a browser but not composer/mail-compose. Reduces library footprint for plaintext-only library by over 50% on all three platforms. r=fm; sr=kin
git-svn-id: svn://10.0.0.236/trunk@85666 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-28 20:13:07 +00:00
rods%netscape.com
b23e7af50b This checkin enables mozilla to support the printing of selection, the printing of page ranges, and
the printing of headers and footers.
Printing of selection is implemented by the frames figuring out if they are in the selection and painting
if they or not they they don't paint. This also only allows the printing of the first page of
selections, alothough it is well documented where this is implemeted so it can be removed.
Bugs 63426, 31218, 61075 r=dcone,kmcclusk,erik,buster sr=waterson


git-svn-id: svn://10.0.0.236/trunk@85624 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-27 14:09:34 +00:00
mcafee%netscape.com
644a6ffc68 Backing out pierre's change from 1/20 for performance reasons (66263). r=attinasi, a=granrose, phil
git-svn-id: svn://10.0.0.236/trunk@85463 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-25 02:58:12 +00:00
pierre%netscape.com
148e913722 #43457 split nsStyleSpacing into 4 smaller structures: nsStyleBorder, nsStylePadding, nsStyleMargin, nsStyleOutline. Review=attinasi. Pending Approval: buster.
git-svn-id: svn://10.0.0.236/trunk@85210 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-20 22:46:54 +00:00
akkana%netscape.com
13ae4ba935 33088: restructure editor output routines. r=kin,buster,adamlock sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@84590 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-08 21:01:29 +00:00
mkaply%us.ibm.com
7e139ad912 #50998
r=rods, a/sr=buster
OS/2 has support for GetAveCharWidth so enable it


git-svn-id: svn://10.0.0.236/trunk@84278 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-02 23:26:25 +00:00
cmanske%netscape.com
2df58f216c Reinstating table selection work for bug 57863 and fixed textfield.value bug 63376. r=kin, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@83912 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-20 22:13:54 +00:00
leaf%mozilla.org
758c5a8f89 backing out regression-causing changes to reopen tree
git-svn-id: svn://10.0.0.236/trunk@83903 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-20 18:09:53 +00:00
cmanske%netscape.com
dafb7a83b7 Convert IDL defines from short to long so enums are PRInt32 on all platforms (fixing build bustage)
git-svn-id: svn://10.0.0.236/trunk@83887 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-20 03:15:16 +00:00
cmanske%netscape.com
b590b1872c Changed param from PRUint32 to PRInt16 for implementor of nsFrameSelection::HandleTableSelection (part of table selection work, bug 57863) r=jfrancis, sr=kin
git-svn-id: svn://10.0.0.236/trunk@83881 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-20 01:38:20 +00:00
bryner%uiuc.edu
aae64e984b Mousewheel bugs 29244, 50339, 42313, 33733, and 57598. r=rods,pavlov. sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@83448 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-09 07:28:19 +00:00
rods%netscape.com
55b184cf6c when in standard mode, the text field/area was sizing one char too big
r=25657, r=kmcclusk, sr=waterson


git-svn-id: svn://10.0.0.236/trunk@83297 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-06 03:20:39 +00:00
akkana%netscape.com
0eff955ec3 Split plaintext methods off into nsIPlaintextEditor API. sr=sfraser, r=jfrancis
git-svn-id: svn://10.0.0.236/trunk@82714 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-17 00:25:31 +00:00
warren%netscape.com
a8b9664a8c Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc.
git-svn-id: svn://10.0.0.236/trunk@81967 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-28 22:17:53 +00:00
warren%netscape.com
c6b67eceeb Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@81885 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 22:43:51 +00:00
mjudge%netscape.com
33abd5ded1 bug fix for 48064. rtm++ r=simon a=brendan. pdt=ok. fixes check for valid frame after callonchange. (callonchange may actually destroy the frame underneath us.) also we need to update the focusedvalue when enter/submit is hit. this will save 2 onchange from being fired. one from enter, second from blur.
git-svn-id: svn://10.0.0.236/trunk@81684 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 22:08:44 +00:00
sfraser%netscape.com
8379325c00 Fix for 52808 -- standardized nsEditorShell creation and destruction across components, to fix editor observer notification timing. r=kin,ducarroz,jelwell, sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@80787 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 01:45:46 +00:00
waterson%netscape.com
1e7a248bab Bug 53969. Move anonymous content storage to pres shell; remove obsolete methods from nsIAnonymousContentCreator. r=dbaron, a=hyatt
git-svn-id: svn://10.0.0.236/trunk@80717 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-09 03:08:41 +00:00
mjudge%netscape.com
c28fcc88a1 r=sfrasier a=pdt fixed submitting not sending an on-change event before submit event.
git-svn-id: svn://10.0.0.236/trunk@79790 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-22 00:43:16 +00:00
heikki%netscape.com
82a70c8b59 Fixed bug 52526, the cause was that image load event was bubbling even though the specs say it should not. Previously we were not even sending the load event on image load. I also fixed bug 50478 by fixing the logic in GetBubbles and GetCancelable of the DOMEvent. This helps in testing the first bug. I also fixed several cases where we had wrong combination of event class and event struct type. a=waterson, r=joki,rods.
git-svn-id: svn://10.0.0.236/trunk@79545 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-19 21:47:04 +00:00
kin%netscape.com
a2daff930d Fix for bug #46396: select after input confuses session history
- Remove temporary call to SetInitialValue() in CreateAnonymousContent().
      - Move all calls to SetInitialValue() out from under the 'if' statement
        they were under. This will make sure that it gets called at least
        once since there are times when GetPrefSize() and Reflow() are not
        called during the initial reflow.

r=mjudge@netscape.com


git-svn-id: svn://10.0.0.236/trunk@79192 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 22:39:19 +00:00
mjudge%netscape.com
2fc6190bef small but pervasive change to make nsIDOMSelection an xpidl interface. also broke it into 2 interfaces, nsISelection and nsISelectionPrivate. moved nsIDOMSelectionListener also to xpidl. these new idl files live in layout/base/public. r=sfraser, r=anthonyd bug 48575
git-svn-id: svn://10.0.0.236/trunk@79118 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 11:45:01 +00:00
rayw%netscape.com
d9228441a4 Bug 37275, Changing value of all progids, and changing everywhere a progid
is mentioned to mention a contractid, including in identifiers.

r=warren


git-svn-id: svn://10.0.0.236/trunk@79036 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 23:57:52 +00:00
kin%netscape.com
ab2cde5355 49339 "Saving File" dialog doesn't initially show complete filename
Replaced call to ScrollSelectionIntoView() in SetTextControlFrameState()
with a call to nsIScrollableView::ScrollTo() that resets the scroll position
of the text widget to (0,0) when the value is replaced.
r=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@78914 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-12 22:14:06 +00:00
heikki%netscape.com
648ff744fc Forgot to check that we fire the select event with Select All. Also fix event.target. Part of bug 46085. r=mjudge.
git-svn-id: svn://10.0.0.236/trunk@78900 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-12 20:54:41 +00:00
mjudge%netscape.com
6f627f4eb5 36130 beta3 bug. 1 line change to scroll selection
into view when value is set on text field/area.


git-svn-id: svn://10.0.0.236/trunk@78854 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-12 06:35:54 +00:00
rods%netscape.com
2c4b4f2915 fixed twips rounding error in calculation
b=52135 r=buster


git-svn-id: svn://10.0.0.236/trunk@78767 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-11 21:22:43 +00:00
kin%netscape.com
9b8fc58349 Added call temporary call to SetInitialValue() in CreateAnonymousContent() to fix
the problem where we can't retrieve the password value from the password
dialog. Breaks logging into IMAP.
r=blizzard@mozilla.org a=leaf@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@78516 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-08 14:55:49 +00:00
pollmann%netscape.com
f972f867ca Bug 51124: Tabbing into text control now again scrolls it into view if offscreen, also adding additional bulletproofing per code review; r=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@78494 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-08 05:53:28 +00:00
heikki%netscape.com
6f651fdbf2 Got delayed with changed files, here is the second patch... Fixed bug 22710, load and error events were not firing for images. I also changed the select event firing to use nsEvent instead of nsGUIEvent. r=joki.
git-svn-id: svn://10.0.0.236/trunk@78420 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-07 21:03:26 +00:00
kin%netscape.com
a78dd6b7d3 Fix for bug #46396: select after input confuses session history
Moved code that set initial value of text control via the editor from
CreateAnonymousContent() to a new method called SetInitialValue().
SetInitialValue() is now called during the frame's first reflow.
Added mUseEditor to indicate when it is safe to use the editor
to get and set values.
r=mjudge@netscape.com


git-svn-id: svn://10.0.0.236/trunk@78409 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-07 19:11:23 +00:00
akkana%netscape.com
383539d22b 50821: don't force a bogus 3.2 doctype, and eliminate OutputNoDoctype flag. r=cmanske
git-svn-id: svn://10.0.0.236/trunk@78401 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-07 18:40:14 +00:00
sfraser%netscape.com
fb865adb8e Fix bugs 45881 and 46850 -- general caret cruft. Ensure that caret is clipped to the scrolling view, and fix things so that the caret is properly hidden on scrolling. r=beard
git-svn-id: svn://10.0.0.236/trunk@78343 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-07 05:26:25 +00:00
dbaron%fas.harvard.edu
e52da02292 Change uses of CSS properties not part of the CSS2 spec to use -moz- prefix. b=3935
Fix some CSS errors found with CSS parser error reporting, with Ben's approval.


git-svn-id: svn://10.0.0.236/trunk@78230 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-06 02:17:26 +00:00
buster%netscape.com
be5d5e02df bug 40596 (input type=text form controls with width:auto are not rendering correctly in table cells)
r=rods


git-svn-id: svn://10.0.0.236/trunk@78169 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-05 21:22:55 +00:00
rods%netscape.com
72efd65ccb Changed resizing code to use ave char width for calculating the width of a text field in strict/standard mode
I had to put in an ifdef _WIN32 because no other platform implements the call in nsIFontMetrics
I will have to address this ifdef in the next release (Bug 50998), which means I will probably implement
GetAveCharWidth for all platforms that don't have a native call
Bug 44656  r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@78138 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-05 13:43:13 +00:00