56 Commits

Author SHA1 Message Date
dbaron%dbaron.org
4b0e63ba0d Rename new width keywords to match CSS WG decision. b=402706 r+sr=bzbarsky a=blocking1.9+
git-svn-id: svn://10.0.0.236/trunk@239468 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-15 18:10:32 +00:00
dbaron%dbaron.org
03a83ad9f2 Add support for -moz-intrinsic, -moz-min-intrinsic, -moz-shrink-wrap, and -moz-fill for width, min-width, and max-width. b=311415 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@225554 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-03 23:11:02 +00:00
bzbarsky%mit.edu
343ced44ba Make mComputedWidth private, with a getter/setter, and make the setter update
the resize flags.  Bug 367442, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@218933 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-26 00:05:12 +00:00
dbaron%dbaron.org
202dcc4811 Untabify.
git-svn-id: svn://10.0.0.236/trunk@217412 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-25 19:44:34 +00:00
mats.palmgren%bredband.net
34a45a87f6 Make the CSS 'ch' length unit work in most cases. b=363573 r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@217089 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-17 14:06:42 +00:00
dbaron%dbaron.org
1ca9f3f372 Bug 300030: Move intrinsic width computation out of nsIFrame::Reflow and into its own methods on nsIFrame. Replace reflow reasons, types, and commands with dirty bits/notifications. Thanks to bzbarsky for almost all of the HTML form controls (mozilla/layout/forms) changes, and many others for help testing and patching. For detailed commit logs, see REFLOW_YYYYMMDD_BRANCH, where YYYYMMDD is one of 20061031, 20060830, 20060603, 20060302, 20060119, 20051011, 20050804, 20050429, 20050315, 20050111, and 20041213.
git-svn-id: svn://10.0.0.236/trunk@216738 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-08 05:38:33 +00:00
bmlk%gmx.de
401ba8663c avoid memory leak on early return bug 333354 r/sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@198379 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-25 14:56:44 +00:00
timeless%mozdev.org
faf573a28d Bug 298277 remove useless references to nsVoidArray
r=dbaron sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@191016 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-23 10:30:59 +00:00
bmlk%gmx.de
41058f11de don't shrink cells below borderpadding in fixed layout, bug 308019 r/sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@189770 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-11 11:12:40 +00:00
bryner%brianryner.com
b17b3249f7 Consolidate PresContext classes into a single nsIPresContext implementation, and finish deCOMtaminating it. Bug 253470, r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@160067 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-29 19:41:39 +00:00
gerv%gerv.net
2ac510b678 Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155068 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 14:30:37 +00:00
bmlk%gmx.de
6cc6a341d2 prescontext removal part 2 bug 229631 r/sr=roc
git-svn-id: svn://10.0.0.236/trunk@150768 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-29 16:58:20 +00:00
bmlk%gmx.de
7eb545bb4e reduce prescontext usage in basic layout strategy bug 229457 r/sr=roc
git-svn-id: svn://10.0.0.236/trunk@150759 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-28 17:02:40 +00:00
bmlk%gmx.de
01ce2c23bd remove bogus array handling code bug 226757 r/sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@150560 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-20 11:15:27 +00:00
bmlk%gmx.de
20c61ed232 fixed table layout add cellspacing only for columns where cells originate. bug 220653 r/sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@148216 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-21 19:29:14 +00:00
dbaron%dbaron.org
69da9d4a19 Clean up API (and its callers) for getting style data: remove unneeded null checks and switch to new inline member functions (one for each struct) that return values. b=197205 r+sr=roc a=brendan
git-svn-id: svn://10.0.0.236/trunk@142488 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-15 03:42:21 +00:00
bmlk%gmx.de
463e729d9d build warning fix bug 198738 r/sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@140748 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-05 15:36:31 +00:00
bmlk%gmx.de
c94f337ec7 fix build warnings from my previous checkin
git-svn-id: svn://10.0.0.236/trunk@140052 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-22 12:21:22 +00:00
bmlk%gmx.de
46c75680d5 change table cell width to content width, bug 119100 r=jkeiser sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@139957 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-21 19:35:36 +00:00
bryner%netscape.com
6278746fdf Phase 1 of style context deCOMtamination (bug 114713). Remove all dependencies on nsIStyleContext from outside of content and layout. Make nsIFrame::GetStyleData be a non-inline virtual function when called from outside of layout, since the nsStyleContext implementation won't be available to those callers. r=dbaron, sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@136056 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-09 06:49:07 +00:00
bzbarsky%mit.edu
7a8ba23608 Fix allocation of whitespace in table-layout:fixed to handle rounding
errors better.  Bug 157890, r=karnaze, sr=dbaron, a=asa


git-svn-id: svn://10.0.0.236/trunk@126040 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-30 02:29:03 +00:00
jst%netscape.com
0e34136ef1 Fixing bug 146034. Getting rid of nsHTMLIIDs.{h,cpp}. r=jfrancis@netscape.com, sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@122039 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 00:00:34 +00:00
cathleen%netscape.com
ec77313291 eliminates 107 nsCRT::memset calls to use memset instead. removed nsCRT::memset() function. bug 118135 r=dp sr=brendan
git-svn-id: svn://10.0.0.236/trunk@113659 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 01:41:13 +00:00
karnaze%netscape.com
e3817c5a55 bug 110474 - fix pixel rounding errors. sr=attinasi, r=bernd
git-svn-id: svn://10.0.0.236/trunk@108478 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 15:51:28 +00:00
karnaze%netscape.com
6c1a4b003e bug 60816 use correct cell when rowspan and colspan overlap. Fix pixel rounding errors. sr=attiansi, r=alexsavulov
git-svn-id: svn://10.0.0.236/trunk@106308 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-26 02:30:38 +00:00
gerv%gerv.net
13afb6d0f9 Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089.
git-svn-id: svn://10.0.0.236/trunk@104119 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 20:14:13 +00:00
karnaze%netscape.com
c76866e3ea table reflow coalescing, table reflow face lift. sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@89462 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 06:38:59 +00:00
karnaze%netscape.com
7ed07e7ca8 bug 34176 - correct fixed table layout over allocated cols. sr=waterson, r=karnaze.
git-svn-id: svn://10.0.0.236/trunk@85587 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-26 23:44:59 +00:00
karnaze%netscape.com
0a9d87c0a3 bug 9848 - check for out of memory when calling new. r=dcone.
git-svn-id: svn://10.0.0.236/trunk@83133 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-30 15:53:55 +00:00
karnaze%netscape.com
3a14935f89 bug 14929 - Reallocate colspan adjusted col widths when there is a percent col being spanned.
git-svn-id: svn://10.0.0.236/trunk@78566 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 01:46:44 +00:00
karnaze%netscape.com
ba59a76950 bug 27529 - round column allocations to even pixel value. bug 18955 - don't allocate a col based on desired content if there is a fixed value. r=peterl.
git-svn-id: svn://10.0.0.236/trunk@77825 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-01 01:29:50 +00:00
karnaze%netscape.com
f1700ddd48 bug 29459 - strategy's table min and max width is calculated to include
percent and proportional cells. Stopped caching it. Calculate max element size better.


git-svn-id: svn://10.0.0.236/trunk@68947 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-10 00:54:00 +00:00
jdunn%netscape.com
659b2712ed Fix problem with NS_IF_ADDREF on member variables inside of const
member functions.  This includes removing all references to
NS_DEF_PTR and the including of nsIPtr.h

r=troy@netscape.com,dougt@netscape.com,scc@netscape.com
# 28114
a=chofmann@netscape.com


git-svn-id: svn://10.0.0.236/trunk@61237 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-17 23:19:18 +00:00
karnaze%netscape.com
19635b17c5 bug 10636, 15499(partial) - correctly get margin,border,padding from reflow info. calculate it for percentage padding when reflow state not available. r=troy
git-svn-id: svn://10.0.0.236/trunk@60564 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-12 01:55:40 +00:00
troy%netscape.com
60471abd92 b=21657 a=chofmann@netscape.com Made "overflow list" a full fledged
child list and changed ReparentFrameView() to check it.


git-svn-id: svn://10.0.0.236/trunk@58373 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-22 01:16:50 +00:00
karnaze%netscape.com
b431334299 fixed printing assertions; more throughly check cell map usage for contuining frames;
fixed bug 24057; r=kmcclusk,cmanske; could not run mail smoke tests due to prior bustage.


git-svn-id: svn://10.0.0.236/trunk@57952 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-15 20:10:00 +00:00
alecf%netscape.com
81585a34d8 fix unix bustage once and for all
git-svn-id: svn://10.0.0.236/trunk@55953 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-14 00:24:33 +00:00
karnaze%netscape.com
6ffe908f39 incremental cell map, columns. Bugs 12122, 21544. r=troy,hyatt a=hofmann
git-svn-id: svn://10.0.0.236/trunk@55939 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-13 22:56:31 +00:00
dmose%mozilla.org
92d791b7b0 updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@52908 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:40:37 +00:00
hyatt%netscape.com
61f02a1d7b Teaching the fixed layout strategy how to deal with relative/proportional specified
widths.


git-svn-id: svn://10.0.0.236/trunk@45035 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-29 06:00:32 +00:00
karnaze%netscape.com
ecc88ac54d bug 11944 - row group is properly offset using table border. cleaned up new incremental reflow methods.
git-svn-id: svn://10.0.0.236/trunk@43899 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 23:27:54 +00:00
karnaze%netscape.com
5e4439a661 Added new incremental reflow methods.
CellData keeps track of row versus col spans.
nsColFrame keeps track of what cell contributed to constrained width.
nsCellMap::GetCellFrameAt replace with GetCellInfoAt
simplified nsTableCellFrame::RecalcLayoutData and removed FindLargestMargin, CalculateMargins, CalculateMargins
simplified nsTableFrame::RecalcLayoutData and removed AppendLayoutData
Added gsDebugReflow capability, remove all existing debug printf


git-svn-id: svn://10.0.0.236/trunk@43641 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 19:52:37 +00:00
karnaze%netscape.com
382b9863de new nsCellMap, BasicTableLayoutStrategy, plus various fixes to table
frames while testing the new cell map and strategy


git-svn-id: svn://10.0.0.236/trunk@41454 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-28 08:09:02 +00:00
hyatt%netscape.com
52ebdc69b8 oops. crazy_width only defined for debug builds. Changing this.
git-svn-id: svn://10.0.0.236/trunk@40938 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-24 00:32:21 +00:00
hyatt%netscape.com
d5b584d48c Getting rid of all the printfs and complaints that fire in mailnews by making
the fixed table layout algorithm smarter about unconstrained width reflow.


git-svn-id: svn://10.0.0.236/trunk@40934 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-23 23:41:05 +00:00
hyatt%netscape.com
888af6b43a Fix for assertions being thrown when fixed layout tables are flowed at an
unconstrained width.  Instead of asserting, intrinsic first row cell widths will be
used to determine the widths of columns with percentage-specified sizes.


git-svn-id: svn://10.0.0.236/trunk@40926 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-23 20:32:18 +00:00
sspitzer%netscape.com
c35619cc53 fix crash. when I launch apprunner -pref, I hit the assertion.
then I crash because I dereference null.


git-svn-id: svn://10.0.0.236/trunk@37668 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-01 07:28:47 +00:00
karnaze%netscape.com
f286a1e3c4 bug 7243. Rewrote FixedTableLayoutStrategy::AssignPreliminaryColumnWidths
git-svn-id: svn://10.0.0.236/trunk@33487 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 02:42:33 +00:00
troy%netscape.com
cc2323242f Changed GetNextInFlow() and GetPrevInFlow() to be pointer arguments and
not references


git-svn-id: svn://10.0.0.236/trunk@21702 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-24 04:48:08 +00:00
warren%netscape.com
cb10d9f3a0 Cleaned up nsICollection and nsIEnumerator. Broke out nsIBidirectionalEnumerator. Added ISupportsArray enumerator. Cleaned nsISupportsArray.
git-svn-id: svn://10.0.0.236/trunk@21585 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-23 08:10:24 +00:00