Commit Graph

318 Commits

Author SHA1 Message Date
cmanske%netscape.com
28fc5354ea Tweaked return key handling to pay attention to m_bUseCurrentTextFormat value when adjusting text format 1998-07-27 16:34:48 +00:00
cmanske%netscape.com
0a41929fcc Added check for null pointer in lo_ValidEditableElement 1998-07-27 16:14:29 +00:00
cmanske%netscape.com
5745def7d6 Implemented smart detection of character format (to be used for next text type) depending on last arrow key usage 1998-07-27 15:45:27 +00:00
cmanske%netscape.com
3a9ef55473 Fixed Composer bug 227527 - Implemented autodelete of single space in table cell when new text is typed. 1998-07-27 04:17:18 +00:00
cmanske%netscape.com
ab8bf13420 Added detection of element clicked on to determine text format to use 1998-07-27 02:01:51 +00:00
cmanske%netscape.com
ecd25f62b4 Lots of Composer bug fixes and continued work on table and list editing 1998-07-27 01:09:58 +00:00
kin%netscape.com
b6f70ddf26 Fix for 5.0SF1 in bug #300901: Lose <br> inside a cell in a table
Modified lo_LayoutTag() to set hard linebreaks for NSDTs.
Reviewed by toshok and nisheeth.
1998-07-24 23:59:46 +00:00
kin%netscape.com
e017a96635 Fix for bug #300809: Composer adds and deletes tags; bad image display;
HTML does not validate
Modified CEditContainerElement::PrintEnd() to fix problem where we were
not closing all CENTER tags.
1998-07-24 23:04:39 +00:00
brade%netscape.com
7f15e6bcfa make editor call API change 1998-07-24 04:15:11 +00:00
brade%netscape.com
560c5a173c remove warnings on Macintosh; clean up internal API calls 1998-07-24 04:14:39 +00:00
brade%netscape.com
8e2eface0f remove warnings on Macintosh; clean up internal API calls (if'd out for now) 1998-07-24 04:12:58 +00:00
brade%netscape.com
c7d5cb1433 fix warnings (only for Macintosh) 1998-07-24 03:58:28 +00:00
brade%netscape.com
73849c8195 fix warning on Macintosh 1998-07-24 01:56:47 +00:00
akkana%netscape.com
fde82a1240 244341: infinite loop/hang in text layout. Reviewed by Nisheeth.
Thanks to Matthew Dillon <dillon@backplane.com> for the fix!
1998-07-24 00:39:30 +00:00
ramiro%netscape.com
12d1c7fd78 C++ comment begone from c code. thank you. 1998-07-23 18:22:43 +00:00
hyatt%netscape.com
d3d979d411 Landing SHACK changes from RDF branch. 1998-07-23 17:44:04 +00:00
cmanske%netscape.com
64b11d6784 Fixed bugs 174178, 188530, 299735. Implemented new drag cell and table behavior 1998-07-23 04:18:49 +00:00
cmanske%netscape.com
753cb8807b Fixed problem with clearing is_new_document flag in edit buffer when reusing existing new-doc buffer 1998-07-21 23:36:03 +00:00
cmanske%netscape.com
3ccf46e63f Fixed bad XP_BOOL usage. Submitted by Kazushi Marukawa (jam@pobox.com) 1998-07-21 22:57:04 +00:00
cmanske%netscape.com
a2778a753d Added flag to signal editor when laying out images in Composer 1998-07-21 04:13:04 +00:00
cmanske%netscape.com
b2e7b71d98 Fixed problem with loading images in Composer 1998-07-21 02:38:18 +00:00
cmanske%netscape.com
988822a48f Fixed SF1 bug 148158 as well as problems with loading images into an editor document 1998-07-21 01:59:47 +00:00
dfm%netscape.com
0b7890852b Landed privacy features from PRIVACY_BRANCH_070898; Transaction Receipts
and Privacy Policies are still switched off, so mozilla/privacy doesn't
build by default.
1998-07-20 18:40:09 +00:00
pinkerton%netscape.com
19b70478ff turn on Hyatt's hack for chrome images on mac. Still off on X. 1998-07-20 16:09:34 +00:00
kin%netscape.com
dff21bbf04 Fix for 5.0 SF1in bug #301716: Table WIDTH parameter lost when loaded in
composer

Changed the type of the m_iWidth field of the CEditTableElement class from
XP_Bool to int32.

Reviewed by mjudge.
1998-07-16 22:19:46 +00:00
kin%netscape.com
0b6a300c6b Fix for 5.0 SF1in bug #300809: Composer adds and deletes tags; bad image
display; HTML does not validate
There are actually 3 different bugs reported in 300809. This checkin fixes
the problem where the spacing and the image are too close: <P></P><BR><IMG>

edtbuf.cpp:
    - Modified CEditBuffer::ParseOpenTag() so we don't discard a <BR> that
      comes after a </P>.
    - Commented out code that adds a blank container before a table that
      follows a </P>.

edtele.cpp:
    - Modified CEditContainerElement::AdjustContainers() to add a blank
      container after a paragraph that ends with a </P> tag.
1998-07-16 21:56:54 +00:00
nisheeth%netscape.com
43e47de554 Fix for bug #300477 to stabilize the table freeing changes. This fixes
the crash that occurred when you aborted the loading of the Netscape home
page.
1998-07-16 08:42:43 +00:00
toshok
134617a2e5 Only call lo_SetLineBreak if we indeed inserted a line break - fixes SF1 P0 bug 300047. 1998-07-14 22:16:21 +00:00
toshok
682346549a switch order of if checks. gets rid of a SF1 P0 bug 300045. 1998-07-14 21:39:00 +00:00
kin
08ce51a552 Fix for SF1in bug 299356: Indentation increases line spacing for same indent
level
Modified CEditBuffer::IndentContainer (case 0) to combine adjacent
blockquote containers.

Reviewed by mjudge.
1998-07-13 23:22:50 +00:00
mjudge
3932bb7884 117388 110370 are both solved by this change. tadaaa 1998-07-13 22:55:01 +00:00
nisheeth
5a19200215 Fix the Mac build bustage... 1998-07-10 07:05:12 +00:00
nisheeth
58600ced10 Fix for bug #173417 and bug #186496. Reviewed by toshok.
We redo the way tables get freed.
Earlier when the LO_TABLE element got freed, it would free stuff that hangs
of the subsequent LO_CELL elements.  Now, only table related stuff gets freed
and the LO_CELL peer data structures get freed when the LO_CELL is freed.
Lots of code that was if-defed or commented out since Mariner hit the tip
has been removed to improve code readability.
1998-07-10 01:03:46 +00:00
mjudge
8346cce63e Fixing Sf1in. no number but definate crash. no initializer for int i=0 1998-07-07 16:49:37 +00:00
nisheeth
904b7f7a9d Fix for bug 123318. Only do the textblock checks in lo_BoundaryJumpingPrev()
and lo_BoundaryJumpingNext() for the editor context.
If you don't do it the editor, backspacing between lines gets hosed.
If you do it for the browser, selection goes into an infinite loop.
1998-07-07 06:31:07 +00:00
nisheeth
4ef6d926ad Fix for bug 232611 which was a duplicate of bug 120234 which got fixed in 4.06.
Fix was reviewed by rjc and dp when it went into the 4.06 branch.
Fixed the case where an unclosed single quote in a
tag causes the STYLE attribute to not be found. This was causing
an infinite loop where layout would process the style attribute repeatedly.
See bug report for details. Affected code is inside lo_ProcessStyleAttribute().
1998-07-07 05:57:50 +00:00
nisheeth
45a9eba323 Fix for Mac build bustage. 1998-07-05 01:51:33 +00:00
nisheeth
3836c11bc8 Approved by Don. Checking in latest Layout Probe API implementation from
the 4.06 branch into the mozilla tip.  This API is not being called from
anywhere and hence cannot affect stability.
1998-07-04 23:25:24 +00:00
cmanske
2d48a23a4a Fixed Composer SF1 in bugs 26852, 123355, 148474, 233518. Reviewed by mjudge 1998-07-02 01:20:39 +00:00
spider
365c772ff9 Normandy Merge .... 1998-06-22 21:21:28 +00:00
cmanske
5c90dbc5f7 Fixed SF1 Composer bugs 117881, 122061, 147518, 148003. Reviewed by mjudge 1998-06-21 19:03:10 +00:00
akkana
e2c215ce6e 94115: don't show unnecessary horizontal scrollbars on resize.
Reviewed by cmanske.
1998-06-19 23:18:04 +00:00
mjudge
158908fb19 Bugs numbers 78936,78922,78925,78926,78934,78939,105689,139286,139301,139359 1998-06-19 04:00:49 +00:00
nisheeth
91b5a97ca7 Fix for bug#124552. No code review needed coz fix is smaller than 5 lines.
Now text layout looks at both the state structure and the current text block
for propagating anchor information when a new text layout element is created.
1998-06-16 03:05:10 +00:00
cmanske
e020843b76 Finished fix for SF1 bug 123355 - force JavaScript on for Composer Plugins. Reviewed by mjudge. 1998-06-15 21:44:23 +00:00
nisheeth
cabfc296fe Fix for bug#112027. Reviewed by Dan. The crash was occuring for the case
when the MULTICOL tag had no content.  Fixed lo_rl_FitMultiColumn()
to handle that case.
1998-06-12 22:35:50 +00:00
mjudge
d415e492d8 bug 113680 fix for horizontal rule strangeness after tables. when reflowing tables, do not reflow beyond the last cell 1998-06-12 16:05:46 +00:00
nisheeth
7206d30a96 Fix for bug 123984. Approved by don. LO_SelectAll was crashing in
lo_FindDocumentEdge() because state->end_last_line was not being set
properly during layout of the document.  Fixed.
1998-06-12 06:09:51 +00:00
cmanske
4be87732d7 Fixed SF1 bugs 65190, 105787, 123355. Reviewed by mjudge, approved by brade, don 1998-06-12 01:22:22 +00:00
nisheeth
aea8359755 Fix for bug #108358. No code review coz its a one liner. Fixes the infinite
loop by letting us break out on a condition that wasn't being checked
earlier in lo_LayoutTextBlock() in laytext.c.  Thanks a lot to Jeff
Caldwell (look@shell.lazerlink.net) for the patch.
1998-06-12 01:16:59 +00:00
nisheeth
9798be6b4b Fix for bug 124273. Reviewed by toshok. Commented out call to
LO_PopStyleSheetTagByIndex() in lo_RelayoutCell() in laytable.c.
This should fix lots of crashes on rendering pages with stylesheets.
1998-06-11 23:39:15 +00:00
gordon
03e58a5dca Fixing Mac bustage by adding typecast. Approved by sar. 1998-06-10 23:04:18 +00:00
toshok
0a6e8a22c3 fix relayout of preformatted text (and hopefully help out in the
relayout of normal text as well.)  Make sure we start at the element
immediately following the LO_TextBlock (if possible, otherwise start
at the startTextElement.)  Also, loop up to and including the
endElement.  Lastly, insert new soft line breaks after recycling the
old ones.
1998-06-10 19:12:01 +00:00
toshok
19e8cf0392 Make line breaks at the start and end of a PRE section hard, so they persist across resizes (part of the fix for 123300. 1998-06-10 18:58:14 +00:00
toshok
99c3cd4bcc Add one liners about the PRE_*, QUOTE_* and SUBDOC_* #defines. 1998-06-10 16:54:35 +00:00
pinkerton
bd70e1ff35 Fix bug #12413 in single signon (appr don, rev morse). 1998-06-10 15:20:06 +00:00
nisheeth
484db7cd55 Fix for bug 123208. Fixes the problem of nested tables with 100% height
getting heights of 10000 pixels.  Thanks to Tim Rowley (tor@cs.brown.edu)
for providing a patch that was very close to the real fix.  You saved me
a lot of work!
1998-06-10 06:56:10 +00:00
morse
4c00761c0d fix tree bustage on mac 1998-06-07 17:24:46 +00:00
morse
efcf178b52 change for single signon 1998-06-07 16:06:49 +00:00
morse
22995b061a single signon changes 1998-06-07 15:56:07 +00:00
morse
1c69833d97 single signon changes 1998-06-06 00:21:25 +00:00
cmanske
09e393d158 Fixed SF1 list HTML bugs for Composer. Reviewed by mjudge. 1998-06-05 15:00:23 +00:00
pinkerton
16ded12a47 Fix some mac problems in single signon and cookie management. Also fix problems when no security is available (ie, free source). 1998-06-04 17:47:31 +00:00
rjc
590cc187dc Merging RDF_BRANCH onto tip. 1998-06-03 17:32:56 +00:00
jgellman
9f800f1e0e merge from OJI branch 1998-06-03 00:37:20 +00:00
scc
a0d2a32d1d First Checked In. 1998-06-02 23:54:58 +00:00
cmanske
c0a584ab3f Added outdent list level when Enter key is pressed and current item is empty 1998-06-01 16:21:19 +00:00
spence
1f2bdadab7 fixed some shack layout problems 1998-06-01 07:28:55 +00:00
cmanske
22a7f83870 Composer bug fixes and more feature work 1998-05-30 22:51:37 +00:00
morse
bea3609bc3 lock the signon list when it is in use 1998-05-30 22:37:35 +00:00
morse
779aad7f2c fix buid bustage 1998-05-29 23:32:51 +00:00
sfraser
ad45cafbed Fix a warning about an uninitialized variable 1998-05-28 19:39:58 +00:00
pnunn
b705de4a3c fix for #84300. print images at printer resolution not screen resolution. 1998-05-28 18:53:31 +00:00
morse
f9e5ad866a bug 122126, reviewed by mjudge 1998-05-28 17:41:09 +00:00
morse
eaec134c50 bug 122126, reviewed by mjudge 1998-05-28 17:13:10 +00:00
nisheeth
28e84dc387 Fix for bug 113155. We were losing the form_data->value of hidden text fields when executing "history.go(0)". Now we keep the value around between session history traversals. Thanks to ludovic for the fix.
----------------------------------------------------------------------
1998-05-28 14:24:16 +00:00
sfraser
44e9956672 First Checked In. 1998-05-23 01:14:17 +00:00
toshok
32050c3897 apparently digital unix's c compiler has a problem with the work 'readonly' (it appears to be a reserved word, as far as that compiler goes). So, I'm changing all occurences of the readonly form element attribute to read_only. Thanks to berkley@cs.wustl.edu (Berkley Shands) for the report and suggested fix. 1998-05-18 21:58:00 +00:00
nisheeth
ad8344ccca val was not being initialized properly lo_LayoutBlockSpacer(). Fixed. Thanks
to Kathy Brade (brade@netscape.com) for catching this.
1998-05-18 20:44:34 +00:00
briano
e848ad0a09 'Fixed' the warning about the supposed trigraph. a=djw 1998-05-15 17:16:49 +00:00
spence
65420b3f33 fix ifdef bustage 1998-05-13 22:35:20 +00:00
donm
24e287b80f fixed unix build bustage. LO_BUILTIN requires #define SHACK and lo_ele.h 1998-05-13 21:59:20 +00:00
spence
efbd5a9975 shack layout element 1998-05-12 23:22:14 +00:00
spence
569779ab6c handle relayout of shack elements 1998-05-12 23:04:58 +00:00
spence
eb05b89dd4 shack elements are tabable 1998-05-12 21:57:20 +00:00
spence
6a1e6d5156 pick up src param for shack elements 1998-05-12 21:19:19 +00:00
spence
c42e4ec225 doc info relfects shack elements 1998-05-12 21:18:46 +00:00
spence
33763babf0 changes for shack layout element 1998-05-12 19:16:46 +00:00
spence
4886096597 changes for shack layout element 1998-05-12 19:10:35 +00:00
spence
36eec7c0bc changes for shack layout element 1998-05-12 19:03:13 +00:00
spence
6cfa2a3424 changes for shack layout element 1998-05-12 18:55:51 +00:00
spence
dd51450923 changes for shack layout element 1998-05-12 18:42:16 +00:00
spence
0fe7271af4 changes for shack layout element 1998-05-12 18:33:45 +00:00
spence
fb6c023275 new shack layout element 1998-05-12 18:22:49 +00:00
spence
444b688ca8 new layout element for shack objects 1998-05-11 19:54:46 +00:00
cmanske
041a0ef3a9 Fixed another memory bug in Composer 1998-05-08 18:51:58 +00:00
cmanske
1f23e123dd Fixed memory crash bug in new Composer table code 1998-05-08 01:12:10 +00:00
toshok
e08bc01688 Remove #ifdef's for TEXT_CHUNK_LIMIT, since it's always defined to something. 1998-05-07 21:16:02 +00:00
toshok
79741f2460 I know I'm going to get strung up for this, but I just can't read this file without a window that's like 150 columns wide. 1998-05-07 21:12:03 +00:00
toshok
d2cd5fd1cf remove huge commented out chunks of code (that have been commented out since time began, it seems.) also added a couple of fairly bogus comments at the beginnings of lo_Push/PopAlignment 1998-05-07 20:44:45 +00:00
nisheeth
4258da0352 Added a check in LO_RelayoutOnResize() to bail if the document is being
laid out.
1998-05-05 17:27:23 +00:00
hyatt
660ecc8525 Fix to ensure that radio buttons and checkboxes are drawn with the proper background color.
Reviewed by Nisheeth.
1998-05-02 00:43:19 +00:00
montulli
88425f0df3 make layout module name be lay instead of layout to be compatible with unix 1998-04-30 23:30:20 +00:00
montulli
6393e1ce63 export layout.h into layout public include directory 1998-04-30 20:33:35 +00:00
nisheeth
36e45f71bb - Added #ifdef DOM to layout.h
- Backing out some changes in layout.c that should not have gotten checked in...
1998-04-29 10:47:20 +00:00
nisheeth
98f5e71745 Touchdown of MARINER_DOM_BRANCH. 1998-04-29 10:13:27 +00:00
nisheeth
7b2593be95 Warning fixes. Thanks to Rick Osborne (rick@spacey.net). 1998-04-29 08:41:05 +00:00
nisheeth
bae32c65fd Warning fix. Thanks to tenthumbs@cybernex.net. 1998-04-29 08:39:56 +00:00
nisheeth
0723b731d1 Adding stubs for the Layout Probe API. 1998-04-28 21:41:20 +00:00
cmanske
18f357b26e More table editing bug fixes. Copy/Paste arbitrary selected cell sets and deleting columns, rows fixed. More resizing bugs fixed. 1998-04-27 14:37:46 +00:00
sar
3fff96be8b change MOZ_SRC references to DEPTH 1998-04-21 21:22:54 +00:00
valeski
94b209c54f compiler warning fix (paren inclusion) submitted by dkindred@cmu.edu . approved/rev'd by nisheeth 1998-04-21 17:17:35 +00:00
cmanske
07b0d91875 Fixed Table Editing bugs in Composer. Thanks to donwulff@iki.fi for finding a bug 1998-04-17 21:32:18 +00:00
nisheeth
b42c684cd9 Fix for text overflowing inside nested tables. Fix for background colors not
being inherited properly inside tables.
1998-04-15 05:28:39 +00:00
nisheeth
7a10c79add Fix for nested comments. Thanks to Jan Kroken (jankr@nntp.ifi.uio.no) for the
patch.
1998-04-15 04:13:55 +00:00
nisheeth
2518fbfedc LO_UnlockLayout() was being called multiple times in LO_Reflow().
Thanks to Nicholas A. Ambrose (nicka@interdyn.com) for the patch.
1998-04-15 04:01:00 +00:00
nisheeth
6f92a77897 Documentation patch. Thanks to Pete Bevin (moose@bestiary.com) for submitting
it.
1998-04-15 03:54:08 +00:00
ltabb
3b56a9af51 Free the lizard 1998-03-28 02:44:41 +00:00