Commit Graph

91 Commits

Author SHA1 Message Date
karnaze@netscape.com
ddf9bac577 bug 49490 - turn off collapsing borders, rules. Fix reflow state to not account for vertical borders or padding on rows. a=buster, r=dcone. 2000-10-05 23:49:25 +00:00
buster@netscape.com
450a58a654 bug 49239
r=hyatt

bug 42372
r=waterson
2000-08-24 04:38:08 +00:00
dbaron@fas.harvard.edu
60feab1fd7 Fix the way HTML's align attribute works for horizontal alignment of blocks. Use the -moz-center and -moz-right even in strict mode, and apply them to blocks in addition to tables. r=attinasi b=37083, 40038 2000-07-27 23:37:44 +00:00
karnaze@netscape.com
173e169aa6 bug 41306 - remove special cell auto percentage base code, r=rods 2000-06-15 14:54:04 +00:00
erik@netscape.com
c6cb6dd9b4 make line-height calculation language-sensitive to avoid overlapping lines 2000-05-17 06:47:56 +00:00
cls@seawood.org
20eeb85a09 Fix for BeOS and other platforms that don't use the NEW_FONT_HEIGHT_APIS. 2000-05-17 05:07:26 +00:00
karnaze@netscape.com
8cd5df6549 bug 28811, 29459, 32507 - added flag to reflow state to handle table cells.
changed table min and max width calculations to include percent and proportional cells.
Include border and padding in min table width calc.
2000-05-16 22:55:34 +00:00
pollmann@netscape.com
6cd49681e9 Bug 23014: Quirks mode percentage height: enable for iframes, enable for native scrollbars, and add safety check for unconstrained height. r=harishd 2000-05-16 22:02:16 +00:00
erik@netscape.com
9d401df953 bug 27164; need to multiply line-height by font's em square height, not
bounding box height; r=buster
2000-05-15 19:40:42 +00:00
karnaze@netscape.com
32774713e9 bug 37037, 37490, and a table paganation problem when captions are present. 2000-05-04 23:16:42 +00:00
karnaze@netscape.com
4519e7e34a consider captions as blocks to calculate box-sizing. 2000-05-04 14:47:37 +00:00
karnaze@netscape.com
0948eab6f6 bug 30692 - skip inner table cell's block as percentage base and use cell instead. r=troy 2000-05-03 14:36:04 +00:00
karnaze@netscape.com
45eb06d8c6 Fix for Linux bustage, bug 37643. Give outer table reflow state initial computed values of 0 to avoid excessive reflows from boxes. 2000-04-30 22:29:01 +00:00
troy@netscape.com
742a8e4593 b=36635 Fixed a problem with 'auto' margin calculation not taking into
account border/padding
2000-04-29 00:24:53 +00:00
karnaze@netscape.com
92f336c9ea new reflow/layout code for outer table to handle captions and margins. better % height handling.
row groups and rows don't include external cellspacing in there dimensions. r=troy.
2000-04-28 21:05:31 +00:00
troy@netscape.com
cd8ea83a58 b=6252 Fixed problem with computing of hypothetical box 2000-04-20 04:44:32 +00:00
troy@netscape.com
639a1c4f11 b=36220 Added check for a frame type of "areaFrame" 2000-04-19 03:27:31 +00:00
troy@netscape.com
ae9fe5bf48 b=36095 Fixed problem in GetNearestContainingBlock() 2000-04-18 05:03:42 +00:00
troy@netscape.com
8505bcb14b New rules for absolute positioning 2000-04-16 04:07:02 +00:00
troy@netscape.com
bf7f7e15d6 b=26184 r=karnaze@netscape.com Changed it so that for a percentage width based
floater if the containing block width is unconstrained we use NS_UNCONSTRAINEDSIZE
for the floater's computed width. We were using 0 and this was causing table column
widths to be incorrect
2000-02-13 17:55:18 +00:00
troy@netscape.com
56db3751a3 b=25245 Changed ComputeContainingBlockRectangle() to set the containing
block width to NS_UNCONSTRAINEDSIZE if it is an unconstrained reflow.
This way percentage based widths are treated properly
2000-01-30 18:40:48 +00:00
nisheeth@netscape.com
bd43d81d01 r=troy. Reflow commands are now coalesced by block and inline frames. This fixes bug 985 in which we now generate 6 reflow commands instead of 257. 2000-01-12 08:28:24 +00:00
sspitzer@netscape.com
243a77b614 fixes to turn bug #22916 into a blank window bug (instead of a crasher)
r=troy
2000-01-11 22:15:20 +00:00
troy@netscape.com
402f4784e4 Added new #define NS_SHRINKWRAPWIDTH that specifies that a frame should
shrink wrap its width (paying attention to the maximum computed width). Mostly
complete implementation for block frames
2000-01-03 04:32:13 +00:00
tbogard@aol.net
617bb737a6 Changed nsIPresContext& to nsIPresContext*. Changed nsEventStatus& to nsEventStatus*. Now more compatible with XPIDL. a=vidur r=scc 1999-11-24 06:03:41 +00:00
dmose@mozilla.org
796280940b updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:40:37 +00:00
troy@netscape.com
5e5f240649 Folded reflow functions into nsIFrame and eliminated nsIFrameReflow and
nsIHTMLReflow. This saves 4 bytes per frame and cleans things up
1999-10-30 02:52:11 +00:00
kipp@netscape.com
c100e531d2 Factored common code into a single method (UseComputedHeight) 1999-10-12 23:25:49 +00:00
troy@netscape.com
576cb4bb57 Part of the fix for bug #11633. Check the NS_FRAME_OUT_OF_FLOW bit and make
sure the frame was really moved out of the flow
1999-09-28 23:42:35 +00:00
kipp@netscape.com
0125acaba9 Reworked side margin calculations to fix (finally!) bug 11932; also cleaned up table side margin handling to better match nav's behavior yet move forward with css2 1999-09-21 00:15:16 +00:00
troy@netscape.com
023b278a49 Added nsHTMLReflowState constructor that allows containing block width
and height to be specified. This is needed for relatively positioned
block elements
1999-09-16 14:33:19 +00:00
kipp@netscape.com
238e46c327 Fixed refcnt crash bug with style-contexts (bad nscomptr usage -- whoops) 1999-09-09 21:54:20 +00:00
kipp@netscape.com
cae5af2f6b Reworked nsHTMLReflowState::CalcLineHeight (bug 6865) 1999-09-09 21:03:27 +00:00
kipp@netscape.com
e8309e5a14 Keep trakc of the depth of reflow to allow for limiting stack usage (bug #10310) 1999-08-27 21:48:54 +00:00
troy@netscape.com
99ae5771db Added failure check for call to nsStyleData::GetBorder() 1999-07-28 04:48:34 +00:00
troy@netscape.com
c4e2a74db2 Added support for "box-sizing" style property 1999-07-28 03:51:37 +00:00
troy@netscape.com
2b95b9b80c Fix for bug #10395. Now we recalculate margins when we use the minimum or
maximum value for the computed width/height. This applies to positioned
elements only
1999-07-27 00:48:47 +00:00
troy@netscape.com
4588244ada Added 'm' prefix to a couple more data members of nsHTMLReflowState struct 1999-07-20 03:51:46 +00:00
troy@netscape.com
346eaed537 Added 'm' prefix to some of the nsHTMLReflowState data members 1999-07-20 03:41:03 +00:00
troy@netscape.com
d79f716887 Fix for bug #9611: now handles absolutely positioned replaced elements 1999-07-20 02:48:18 +00:00
kipp@netscape.com
88769694a3 Removed HaveFixedContent* methods from nsHTMLReflowState and updated code to match (fix bug #7993) 1999-07-07 02:33:17 +00:00
kipp@netscape.com
7422a2b67e Fixed margin calcs for block elements (and tables) so that when the object is wider than the avail width the object is pinned to the left/right edge as appropriate (bug #6155) 1999-07-05 18:45:12 +00:00
karnaze@netscape.com
4e4c0a55e2 bug 6185 - absolutely positioned target nsHTMLFrameInnerFrames don't get processed by InitAbsoluteConstraints. 1999-05-10 22:59:03 +00:00
kipp@netscape.com
2d008eb2e0 Reinstate a hack, with a comment for next time, so that tables will center again 1999-05-10 22:28:30 +00:00
kipp@netscape.com
8a0a68b8dc Fix bug 2058 and improve nav4 compatability by not making line-height normal == 1.0 1999-05-03 20:53:27 +00:00
troy@netscape.com
139be3dbd6 Work-in-progress for relatively positioned inlines being containing blocks
for absolutely positioned child elements
1999-04-22 04:27:47 +00:00
troy@netscape.com
0fb7f8fafb Change to InitAbsoluteConstraints() to fix bug #5154 1999-04-17 04:24:12 +00:00
kipp@netscape.com
5e71129dce Removed some dead code; Added support for eStyleUnit_Chars for width values 1999-03-31 04:11:40 +00:00
kipp@netscape.com
2adcd8e8b2 Fixed bug #4133 by not providing negative margin values for tables that are too wide 1999-03-29 04:17:23 +00:00
troy@netscape.com
55a5f8280a Fix for bug #2592. Changed ComputeMargin() and ComputePadding() to handle
'inherit' when calculating the computed values
1999-03-26 03:57:46 +00:00