60 Commits

Author SHA1 Message Date
troy%netscape.com
4d5ed09a1f Added nsHTMLReflowState constructor that allows containing block width
and height to be specified. This is needed for relatively positioned
block elements


git-svn-id: svn://10.0.0.236/trunk@47787 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 14:33:19 +00:00
kipp%netscape.com
1f521f4dc8 Removed MoveInSpaceManager
git-svn-id: svn://10.0.0.236/trunk@47475 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 00:26:39 +00:00
kipp%netscape.com
388c307543 Added rendering context to CalcLineHeight API
git-svn-id: svn://10.0.0.236/trunk@46625 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-09 21:03:46 +00:00
kipp%netscape.com
9d4d59aea1 Keep trakc of the depth of reflow to allow for limiting stack usage (bug #10310)
git-svn-id: svn://10.0.0.236/trunk@44926 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-27 21:48:54 +00:00
troy%netscape.com
296ff668fa Added support for "box-sizing" style property
git-svn-id: svn://10.0.0.236/trunk@41416 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-28 03:51:37 +00:00
troy%netscape.com
8d07a8a962 Added 'm' prefix to a couple more data members of nsHTMLReflowState struct
git-svn-id: svn://10.0.0.236/trunk@40217 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-20 03:51:46 +00:00
troy%netscape.com
a89529386f Added 'm' prefix to some of the nsHTMLReflowState data members
git-svn-id: svn://10.0.0.236/trunk@40215 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-20 03:41:03 +00:00
troy%netscape.com
2500818fde Fix for bug #9611: now handles absolutely positioned replaced elements
git-svn-id: svn://10.0.0.236/trunk@40211 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-20 02:48:18 +00:00
troy%netscape.com
52ee42cbff Added #define of NS_AUTOMARGIN
git-svn-id: svn://10.0.0.236/trunk@39262 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-14 15:17:33 +00:00
kipp%netscape.com
1b24c1974d Removed HaveFixedContent* methods from nsHTMLReflowState and updated code to match (fix bug #7993)
git-svn-id: svn://10.0.0.236/trunk@38572 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-07 02:33:17 +00:00
kipp%netscape.com
95141d3623 Renamed a method
git-svn-id: svn://10.0.0.236/trunk@29985 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 20:53:46 +00:00
troy%netscape.com
3badeba0e9 Work-in-progress for relatively positioned inlines being containing blocks
for absolutely positioned child elements


git-svn-id: svn://10.0.0.236/trunk@28659 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-22 04:27:47 +00:00
kipp%netscape.com
bf515350ed Updated args to use ptrs instead of refs
git-svn-id: svn://10.0.0.236/trunk@28179 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-20 00:25:34 +00:00
kipp%netscape.com
d165aeda91 Removed dead methods; made ComputeHorizontalValue and ComputeVerticalValue instance methods instead of static methods
git-svn-id: svn://10.0.0.236/trunk@25649 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-31 04:12:09 +00:00
kipp%netscape.com
b804af8a30 Removed carried out top margin
git-svn-id: svn://10.0.0.236/trunk@25294 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-27 01:23:06 +00:00
troy%netscape.com
ede920e0b8 Fix for bug #2592. Changed ComputeMargin() and ComputePadding() to handle
'inherit' when calculating the computed values


git-svn-id: svn://10.0.0.236/trunk@25188 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-26 03:57:46 +00:00
kipp%netscape.com
31b8a2b343 Added rendering layer defines
git-svn-id: svn://10.0.0.236/trunk@25155 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-26 00:40:06 +00:00
kipp%netscape.com
83f5d0de70 Spanked to collapse inline-reflow with line-layout into line-layout; fixed bugs #1278, #1990, #3527, #1670, etc.
git-svn-id: svn://10.0.0.236/trunk@24321 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-18 21:03:25 +00:00
troy%netscape.com
6866976cb9 Work-in-progress for 'min' and 'max' properties
git-svn-id: svn://10.0.0.236/trunk@23629 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-11 01:23:10 +00:00
troy%netscape.com
b81fd87c6f Removed some static functions that are no longer needed
git-svn-id: svn://10.0.0.236/trunk@23010 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-06 00:48:45 +00:00
troy%netscape.com
a468a48e17 Added ComputePadding() member function
git-svn-id: svn://10.0.0.236/trunk@23003 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-06 00:36:59 +00:00
troy%netscape.com
6bf1e58e48 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


git-svn-id: svn://10.0.0.236/trunk@22956 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-05 22:24:27 +00:00
kipp%netscape.com
f90b774ae9 Store more computed state; reformulated the constructors for nsHTMLReflowState
git-svn-id: svn://10.0.0.236/trunk@22843 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-05 04:25:25 +00:00
kipp%netscape.com
afb7fb16b8 Avoid purify noise by initializing all member variables
git-svn-id: svn://10.0.0.236/trunk@22133 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-26 17:07:49 +00:00
kipp%netscape.com
975a668e6e Removed mLineHeight from the html reflow state; changed the signature of the VerticalAlignFrames method; made DetermineFrameType a callable static method
git-svn-id: svn://10.0.0.236/trunk@21633 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-23 19:33:34 +00:00
kipp%netscape.com
7f83e9ffe2 Added VerticalAlignFrames for 2nd pass vertical align reflow
git-svn-id: svn://10.0.0.236/trunk@21101 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-18 03:25:48 +00:00
troy%netscape.com
e0f2b783e6 Added 'computedMargin' to nsHTMLReflowState, which replaced the individual
margin values (e.g., computedLeftMargin)


git-svn-id: svn://10.0.0.236/trunk@17933 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-17 05:43:02 +00:00
troy%netscape.com
09fde7e34c Changed nsHTMLReflowState to compute 'offsets' for relatively positioned
elements


git-svn-id: svn://10.0.0.236/trunk@17926 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-16 20:58:17 +00:00
troy%netscape.com
e69d38cccb Fix for bug #2276, and some initial support for 'right' and 'bottom'
for absolutely positioned elements


git-svn-id: svn://10.0.0.236/trunk@17644 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-13 06:37:31 +00:00
kipp%netscape.com
263cc7d9ae Removed a turd
git-svn-id: svn://10.0.0.236/trunk@17415 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-09 00:14:09 +00:00
karnaze%netscape.com
35bfe95ab7 dom table methods, moved align="char" data members from nsReflowState to nsHTMLReflowState
git-svn-id: svn://10.0.0.236/trunk@17382 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-08 18:57:40 +00:00
troy%netscape.com
641be3028f Replaced "maxSize" member if nsReflowState with "availableWidth" and
"availableHeight"


git-svn-id: svn://10.0.0.236/trunk@17201 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-05 23:31:18 +00:00
troy%netscape.com
1c810256bf Moved enum and replaced it with #defines
git-svn-id: svn://10.0.0.236/trunk@17075 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-03 00:31:46 +00:00
troy%netscape.com
f16883b846 Changed comment to reflect the current state of the tree
git-svn-id: svn://10.0.0.236/trunk@17073 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-02 23:05:08 +00:00
troy%netscape.com
b5bffb2735 Added logic to make sure that internal table elements have reasonable
values for the computed width/height


git-svn-id: svn://10.0.0.236/trunk@17071 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-02 21:03:51 +00:00
troy%netscape.com
ca81e6912a Fix for bug 2109. If the child's maxSize.width is smaller than the containing
block's computed width then use it instead


git-svn-id: svn://10.0.0.236/trunk@17068 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-02 19:21:32 +00:00
troy%netscape.com
88546760e9 Changed InitConstraints() to handle inline, block-level, and floated elements
(replaced and non-replaced)


git-svn-id: svn://10.0.0.236/trunk@17052 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-31 23:07:00 +00:00
troy%netscape.com
008a69b28f Better computation of computed width and height and margins for block-level
elements


git-svn-id: svn://10.0.0.236/trunk@17037 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-31 05:35:38 +00:00
troy%netscape.com
c22f41cbf9 Changed width/height constraints in nsHTMLReflowState struct
git-svn-id: svn://10.0.0.236/trunk@16998 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-30 17:50:00 +00:00
kipp%netscape.com
7f10d74dd3 Added the AddBorderPaddingToMaxElementSize method to make it easy for implementors to get it right
git-svn-id: svn://10.0.0.236/trunk@16584 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-17 18:53:14 +00:00
kipp%netscape.com
154911fa72 Added NS_FRAME_IS_REPLACED macro
git-svn-id: svn://10.0.0.236/trunk@16413 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 04:21:56 +00:00
kipp%netscape.com
6d68b31e76 Added CalcLineHeight and store it in mLineHeight
git-svn-id: svn://10.0.0.236/trunk@16383 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 00:14:56 +00:00
kipp%netscape.com
ebbfcde3ed Removed carried-out-margin-flags
git-svn-id: svn://10.0.0.236/trunk@15847 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-05 16:04:33 +00:00
kipp%netscape.com
a207569b1c Work around more bugs in the style context code and use old margin calculations; factored get-containing-block-width better
git-svn-id: svn://10.0.0.236/trunk@15056 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 22:27:21 +00:00
kipp%netscape.com
257cb2e34e Define new API's to compute margin/border/padding/border+padding and handle percentages correctly
git-svn-id: svn://10.0.0.236/trunk@15012 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 17:19:26 +00:00
kipp%netscape.com
d2c756191e Added two new utility methods on nsHTMLReflowState for finding a containing block's reflow state and for finding a containing blocks content width
git-svn-id: svn://10.0.0.236/trunk@14914 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 23:59:49 +00:00
kipp%netscape.com
25b61d53b3 Support for display: compact
git-svn-id: svn://10.0.0.236/trunk@14506 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 16:32:19 +00:00
kipp%netscape.com
ce5cc1fa2e Added mRunInFrame to the html reflow state so that run-in frame handling can be forwarded from a parent block to a child block
git-svn-id: svn://10.0.0.236/trunk@14405 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 03:54:15 +00:00
troy%netscape.com
03e55a2524 Renamed HaveConstrainedWidth() and HaveConstrainedHeight() to HaveFixedContentWidth()
and HaveFixedContentHeight()


git-svn-id: svn://10.0.0.236/trunk@13833 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-01 01:29:00 +00:00
kipp%netscape.com
1d4ce9d870 Added mCombinedArea to the metrics; added MoveInSpaceManager to the html-reflow methods
git-svn-id: svn://10.0.0.236/trunk@13760 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-30 22:13:14 +00:00