Commit Graph

302 Commits

Author SHA1 Message Date
karnaze%netscape.com
98781a0f2c mispelled #ifdef DEBUG 2001-02-01 02:26:26 +00:00
karnaze%netscape.com
7b4e160ba2 forgot the #ifdef DEBUG around mDebugHook. 2001-01-25 15:57:46 +00:00
karnaze%netscape.com
623b6521ad better table reflow debugging including support for elapsed time. sr=buster. 2001-01-25 15:55:51 +00:00
mcafee%netscape.com
7ecf530933 Backing out pierre's change from 1/20 for performance reasons (66263). r=attinasi, a=granrose, phil 2001-01-25 02:58:12 +00:00
pierre%netscape.com
62bf433a35 #43457 split nsStyleSpacing into 4 smaller structures: nsStyleBorder, nsStylePadding, nsStyleMargin, nsStyleOutline. Review=attinasi. Pending Approval: buster. 2001-01-20 22:46:54 +00:00
rods%netscape.com
edb0c6270c removing most all NS_DEFINE_IID and replacing them with NS_GET_IID macros
Bug 61274, r=buster sr=waterson
2001-01-04 20:44:42 +00:00
karnaze%netscape.com
72e4c1afd4 bug 43204 - zero out padding for row/col group, ro/col, sr=buster 2000-12-21 23:05:15 +00:00
karnaze%netscape.com
02d34832e3 bug 50695 - skip form parents when computing a percent basis height in quirks mode. sr=buster, r=pollmann 2000-11-29 22:31:57 +00:00
warren%netscape.com
cd56c0575b Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc. 2000-10-28 22:17:53 +00:00
warren%netscape.com
9a6d92a433 Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson 2000-10-27 22:43:51 +00:00
buster%netscape.com
13899dbffa bug 29276 (text inside <label> tags within a table cell breaks out of table cell)
bug 1164 (ALIGN=MIDDLE and ALIGN=ABSMIDDLE values are not being supported)
bug 54119 (percentage (%) image (img) heights do nothing)
r=karnaze, rods, attinasi
a=waterson
2000-10-09 21:19:36 +00:00
karnaze%netscape.com
c8ba15ed54 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
9b0a64d2c7 bug 49239
r=hyatt

bug 42372
r=waterson
2000-08-24 04:38:08 +00:00
dbaron%fas.harvard.edu
0d22e864e2 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
fe4c550189 bug 41306 - remove special cell auto percentage base code, r=rods 2000-06-15 14:54:04 +00:00
erik%netscape.com
23bead6485 make line-height calculation language-sensitive to avoid overlapping lines 2000-05-17 06:47:56 +00:00
cls%seawood.org
149446f3e7 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
854d511d3e 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
ccbe4c0000 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
210b71c14f 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
a02cdba83c bug 37037, 37490, and a table paganation problem when captions are present. 2000-05-04 23:16:42 +00:00
karnaze%netscape.com
b55c22c6ab consider captions as blocks to calculate box-sizing. 2000-05-04 14:47:37 +00:00
karnaze%netscape.com
87beb13dc1 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
1053177d73 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
f9362437ce 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
65511dc8d6 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
c450772b1e b=6252 Fixed problem with computing of hypothetical box 2000-04-20 04:44:32 +00:00
troy%netscape.com
aa529094b7 b=36220 Added check for a frame type of "areaFrame" 2000-04-19 03:27:31 +00:00
troy%netscape.com
8c36119549 b=36095 Fixed problem in GetNearestContainingBlock() 2000-04-18 05:03:42 +00:00
troy%netscape.com
79bc68e107 New rules for absolute positioning 2000-04-16 04:07:02 +00:00
troy%netscape.com
e548878b47 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
6476da726e 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
56525e3574 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
d601e1d680 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
8791b810ba 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
af1ce8d410 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
5312eacf8c 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
a12c3d6c5d 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
87e08f98e9 Factored common code into a single method (UseComputedHeight) 1999-10-12 23:25:49 +00:00
troy%netscape.com
409c9ae7db 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
e634c9589a 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
410a37f467 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
ee216379ac Fixed refcnt crash bug with style-contexts (bad nscomptr usage -- whoops) 1999-09-09 21:54:20 +00:00
kipp%netscape.com
e5499ef843 Reworked nsHTMLReflowState::CalcLineHeight (bug 6865) 1999-09-09 21:03:27 +00:00
kipp%netscape.com
06e81276ec 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
2ba05e9bf2 Added failure check for call to nsStyleData::GetBorder() 1999-07-28 04:48:34 +00:00
troy%netscape.com
3ee32d5915 Added support for "box-sizing" style property 1999-07-28 03:51:37 +00:00
troy%netscape.com
a6e974261c 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
c3e32b0b65 Added 'm' prefix to a couple more data members of nsHTMLReflowState struct 1999-07-20 03:51:46 +00:00
troy%netscape.com
155ed6816a Added 'm' prefix to some of the nsHTMLReflowState data members 1999-07-20 03:41:03 +00:00
troy%netscape.com
2207888d69 Fix for bug #9611: now handles absolutely positioned replaced elements 1999-07-20 02:48:18 +00:00
kipp%netscape.com
87e4c2d72f Removed HaveFixedContent* methods from nsHTMLReflowState and updated code to match (fix bug #7993) 1999-07-07 02:33:17 +00:00
kipp%netscape.com
bef3754263 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
8f219a39c4 bug 6185 - absolutely positioned target nsHTMLFrameInnerFrames don't get processed by InitAbsoluteConstraints. 1999-05-10 22:59:03 +00:00
kipp%netscape.com
2bb30cc9e1 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
2ecc585200 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
12139f38ea 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
993b7ddc8d Change to InitAbsoluteConstraints() to fix bug #5154 1999-04-17 04:24:12 +00:00
kipp%netscape.com
a489ce58b2 Removed some dead code; Added support for eStyleUnit_Chars for width values 1999-03-31 04:11:40 +00:00
kipp%netscape.com
a3f9f319ef 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
f9fe73a16f Fix for bug #2592. Changed ComputeMargin() and ComputePadding() to handle
'inherit' when calculating the computed values
1999-03-26 03:57:46 +00:00
kipp%netscape.com
524580850c Work around 3238 partially until we have a real solution 1999-03-22 20:45:26 +00:00
kipp%netscape.com
de3a0d8646 Removed some cruft 1999-03-20 21:55:37 +00:00
kipp%netscape.com
d498839da8 Fixed a typo bug 1999-03-20 19:39:08 +00:00
kipp%netscape.com
9d713ce73b Eliminate some purify warnings 1999-03-19 23:06:42 +00:00
kipp%netscape.com
c9067260be Spanked to collapse inline-reflow with line-layout into line-layout; fixed bugs #1278, #1990, #3527, #1670, etc. 1999-03-18 21:03:25 +00:00
troy%netscape.com
526ed6ddc5 Work-in-progress for min/max properties 1999-03-11 15:13:17 +00:00
troy%netscape.com
043b5700fb Work-in-progress for 'min' and 'max' properties 1999-03-11 01:23:10 +00:00
kipp%netscape.com
a1e087e138 setup more skid marks (disabled) 1999-03-08 19:26:30 +00:00
troy%netscape.com
04243649ce Eliminated some code that's no longer needed now that the info is in the
HTML reflow state
1999-03-06 01:40:29 +00:00
troy%netscape.com
c3afb0e9cf Removed some static functions that are no longer needed 1999-03-06 00:48:45 +00:00
troy%netscape.com
a1d1411076 Added ComputePadding() member function 1999-03-06 00:36:59 +00:00
troy%netscape.com
e3d132ed9c Added ComputeMargin() member function that takes the containing block width
as an argument. This is necessary for absolutely positioned elements which use
the padding edge and not the content edge for the containing block
1999-03-05 22:24:27 +00:00
troy%netscape.com
3710fb6246 Fixed containing block calculation for absolutely positioned elements. Now
uses padding edge and not the content edge
1999-03-05 21:26:49 +00:00
kipp%netscape.com
37fa734c4e Revised computations for blocks; store more computed values 1999-03-05 04:24:20 +00:00
kipp%netscape.com
2285d2368f Maded DetermineFrameType a callable static method; removed gratuitous line-height calculations 1999-02-23 19:33:06 +00:00
troy%netscape.com
9748bc8839 Added support for 'width' and 'height' values of 'inherit' 1999-02-18 04:40:16 +00:00
troy%netscape.com
eab91a0aa8 Fixed InitConstraints() to correctly compute the containing block height
for child elements of a scrolled element
1999-02-14 04:43:44 +00:00
troy%netscape.com
c928d3557c Changed frame construction code to set NS_FRAME_REPLACED_ELEMENT but, and
changed the HTML reflow state to read the bit
1999-02-13 05:59:19 +00:00
kipp%netscape.com
36c243cdc0 COMized nsIPresShell and nsIPresContext 1999-02-12 17:45:58 +00:00
troy%netscape.com
46bf1f1ab5 Fix for bug #3089 1999-02-11 03:56:00 +00:00
troy%netscape.com
e9bbeeaa9b Changed GetFrameState() and GetFrameType() to use pointer arguments instead of
references
1999-02-10 04:17:06 +00:00
troy%netscape.com
c85f9efd2a Changed GetParent() to use ** instead of *& 1999-02-10 01:36:30 +00:00
troy%netscape.com
b974e26cea Changed some nsIFrame member functions to use ** instead of *& for OUT
paremeters
1999-02-10 00:42:56 +00:00
troy%netscape.com
a9bb13d5cc Fix for bug #3027. Correctly computes 'auto' margin values and allows them
to be negative
1999-02-09 00:15:43 +00:00
troy%netscape.com
12bfda4069 Fix for bug #2993. Made sure that 'offsets' are relative to containing block's
padding edge and not the containing block's border edge
1999-02-08 00:32:02 +00:00
troy%netscape.com
66fdbcd9b3 Made sure computedOffsets is initialized to all zeros for the root frame 1999-02-05 05:51:12 +00:00
troy%netscape.com
78d4cd7331 More work-in-progress for fixed positioning 1999-01-28 17:14:13 +00:00
troy%netscape.com
2fb9c64835 Fixed a problem in CalculateLeftRightMargin() 1999-01-26 16:34:08 +00:00
troy%netscape.com
0a2d359c38 Added check for unconstrained width/height of the containing block when
computing 'offsets'
1999-01-23 04:49:15 +00:00
troy%netscape.com
a1161339c0 Correction to how offsets are computed for relatively positioned elements 1999-01-22 04:12:03 +00:00
troy%netscape.com
4dd1d39c67 Added XXX reminder for myself 1999-01-20 04:50:35 +00:00
troy%netscape.com
174494f84c Removed some scroll related logic that was causing computed widths to be
computed incorrectly. Now the scroll frame handles it
1999-01-20 03:43:33 +00:00
troy%netscape.com
aebbda5000 Minor cleanup 1999-01-19 05:18:26 +00:00
troy%netscape.com
e805654323 Added 'computedMargin' to nsHTMLReflowState, which replaced the individual
margin values (e.g., computedLeftMargin)
1999-01-17 05:43:02 +00:00
troy%netscape.com
7103b076b4 Changed nsHTMLReflowState to compute 'offsets' for relatively positioned
elements
1999-01-16 20:58:17 +00:00
troy%netscape.com
e075d4bfbc Fixed an assert that was getting hit for absolutely positioned elements 1999-01-15 04:28:17 +00:00
troy%netscape.com
036e6852f2 Removed the content-parent frame pointer. Now we just have the one geometric
parent
1999-01-14 05:16:23 +00:00
troy%netscape.com
5c75ea66f0 Fix for bug #2276, and some initial support for 'right' and 'bottom'
for absolutely positioned elements
1999-01-13 06:37:31 +00:00
troy%netscape.com
4f14253e33 Turned off assert 1999-01-09 01:43:02 +00:00
troy%netscape.com
4b3e1eebad Replaced "maxSize" member if nsReflowState with "availableWidth" and
"availableHeight"
1999-01-05 23:31:18 +00:00
troy%netscape.com
a423353676 Initial check-in 1999-01-05 19:44:41 +00:00