263 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
dholbert%cs.stanford.edu
39c254f26e Bug 403579: Don't scale up width by a pct when it's nscoord_MAX. Also, use NSCoordSaturating function with guess_pref since it could be nscoord_MAX. r+sr=roc, a=mtschrep
git-svn-id: svn://10.0.0.236/trunk@239464 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-15 18:04:16 +00:00
dholbert%cs.stanford.edu
f2953f58ea Bug 402893: don't scale up col prefWidth by % if it's nscoord_MAX. r+sr=roc, a=mtschrep
git-svn-id: svn://10.0.0.236/trunk@239463 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-15 17:59:49 +00:00
dholbert%cs.stanford.edu
6e3e4c8262 Bug 403519: Support cells w/ prefWidth=nscoord_MAX when computing column intrinsic widths. r+sr=roc, a=mtschrep
git-svn-id: svn://10.0.0.236/trunk@239245 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-13 01:11:20 +00:00
dholbert%cs.stanford.edu
18a8c2d4ec Bug 398157: Fix nscoord_MAX arithmetic using NSCoordSaturatingSubtract.
r=roc sr=roc a=roc


git-svn-id: svn://10.0.0.236/trunk@237020 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-01 21:44:50 +00:00
dholbert%cs.stanford.edu
9453798fee Bug 397448 – "ASSERTION: Doing nscoord addition with values > nscoord_MAX" with percentage margin in table cell. r=roc sr=roc approval19=roc
git-svn-id: svn://10.0.0.236/trunk@236715 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-26 16:32:50 +00:00
dholbert%cs.stanford.edu
665a4e2bad Bug 367673, Handle width-computation arithmetic with nscoord_MAX. r=roc sr=roc a1.9=roc
git-svn-id: svn://10.0.0.236/trunk@236556 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-24 17:30:43 +00:00
dbaron%dbaron.org
5c52e22d2b Prefer distributing the width of a column-spanning cell to columns without specified widths, and make a specified width on a column-spanning cell not cause the column to be considered to have a specified width. b=379361 Patch by Daniel Holbert <dholbert@mozilla.com>. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@231384 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-03 00:07:40 +00:00
sharparrow1%yahoo.com
2475e961e4 Bug 372768: {inc}Setting nowrap attribute dynamically does not change layout like it should. r=bzbarsky,sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@229100 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-01 18:42:18 +00:00
bzbarsky%mit.edu
591e9f78e1 No max-width means "none", not null unit. Bug 381284, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@226900 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-23 19:56:02 +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
116d69628c Rename nsIFrame::GetPresContext to nsIFrame::PresContext. Bug 376042, patch by
Taras Glek <tglek@mozilla.com>, rs=roc.


git-svn-id: svn://10.0.0.236/trunk@222659 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-30 21:11:47 +00:00
dbaron%dbaron.org
411f643f12 Fix logic error handling column-spanning cells with specified widths. b=374819 r+sr=roc a=vlad
git-svn-id: svn://10.0.0.236/trunk@222165 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-21 23:31:38 +00:00
dbaron%dbaron.org
d7c0a892ae Fix handling of specified widths on column-spanning cells. b=363874 r=bernd sr=roc
git-svn-id: svn://10.0.0.236/trunk@222043 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-19 20:26:36 +00:00
dbaron%dbaron.org
ba459aa49a Subtract allocated parts before repeating division used for allocation to avoid rounding error of total. b=366865 r=bernd sr=roc
git-svn-id: svn://10.0.0.236/trunk@220521 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-18 19:49:50 +00:00
dbaron%dbaron.org
44f614b823 Stop rounding widths to pixel boundaries to fix reftest failures on Mac, which does subpixel positioning and sizing of text. b=369318 r=bernd sr=roc
git-svn-id: svn://10.0.0.236/trunk@219738 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-08 19:21:58 +00:00
dbaron%dbaron.org
61d479d909 Stop rounding final column widths (up) to pixel boundaries. b=349297 r=bernd sr=roc
git-svn-id: svn://10.0.0.236/trunk@219737 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-08 19:20:51 +00:00
sharparrow1%yahoo.com
dd459d0a71 Bug 177805: Fix the use of units in Gecko. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@219640 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-07 07:46:44 +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
bzbarsky%mit.edu
0ec062328d Fix various bugs in the column iterator's keeping track of the current row.
Bug 367749, r=bernd, sr=roc


git-svn-id: svn://10.0.0.236/trunk@218847 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-24 20:18:04 +00:00
bzbarsky%mit.edu
0b6146e808 Have a faster way of iterating down the columns of a table. Bug 352461,
r=bernd, sr=roc


git-svn-id: svn://10.0.0.236/trunk@218739 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-22 04:32:33 +00:00
dbaron%dbaron.org
794867888d When possible, distribute min width of colspanning cells so it fits within the pref width of the spanned columns. b=363144 r=bernd sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@218528 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-17 19:19:50 +00:00
dbaron%dbaron.org
bdfaaa60a4 Fix incorrectly placed PR_MAX(), since the span* values are additions to the base values. b=365173 r=bernd sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@218260 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-13 01:08:18 +00:00
dbaron%dbaron.org
b348f16679 Accumulate column-spanning cells into column intrinsic widths separately for each number of columns spanned, in increasing order. b=363329 r=bernd sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@218259 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-13 01:04:56 +00:00
timeless%mozdev.org
c778d21502 Bug 355300 There should be only one nsGkAtoms creature
r=dbaron


git-svn-id: svn://10.0.0.236/trunk@217425 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-26 17:47:52 +00:00
dbaron%dbaron.org
244455b8f1 Fix shadowing variable name. No bug.
git-svn-id: svn://10.0.0.236/trunk@217153 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-18 22:35:01 +00:00
dbaron%dbaron.org
c31903a4f8 Fix handling of columns in which no cell originates (i.e., unneeded extra colspan). b=363329 Patch from Bernd Mielke, bmlk%gmx.de, with review comments addressed by me. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@217152 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-18 22:34:30 +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
1d1477169f Fix bad interaction of colspan handling with AddMinCoord's magic to deal with specified coord widths. Substantive changes by bzbarsky, comments by me. r+sr=dbaron/bzbarsky b=363150
git-svn-id: svn://10.0.0.236/trunk@216792 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-09 05:38:19 +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
50b673d369 fix potential 0 deref bug 333351 r/sr=roc
git-svn-id: svn://10.0.0.236/trunk@194412 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-14 16:21:21 +00:00
dbaron%dbaron.org
9911a9b756 Remove uses of MOZ_DECL_CTOR_COUNTER, which is always defined to nothing. b=332745 rs=roc,bzbarsky
git-svn-id: svn://10.0.0.236/trunk@193572 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-05 00:00:44 +00:00
darin%meer.net
70deb5f58d fixes bug 328925 "Replace NS_WARN_IF_FALSE with NS_ASSERTION (where appropriate)" r=dbaron
git-svn-id: svn://10.0.0.236/trunk@193272 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-30 18:40:56 +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
timeless%mozdev.org
a05383ef1b Bug 106386 Correct misspellings in source code
patch by mats.palmgren@bredband.net r=dbaron sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@185018 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-20 22:05:24 +00:00
bmlk%gmx.de
96883f3c47 look for originating table cells only at places where they are supposed to be bug 313295 r/sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@183240 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-29 13:45:38 +00:00
bmlk%gmx.de
0cb4778ab7 build warnings (shadow + unused variables) bug 287097 r/sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@171163 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-24 19:02:59 +00:00
roc+%cs.cmu.edu
ab88d1e1ac Bug 259032. DeCOMtaminate nsIFrame::GetNext/PrevInFlow. r+sr=roc, patch by Will Levine
git-svn-id: svn://10.0.0.236/trunk@162269 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-14 02:28:03 +00:00
bryner%brianryner.com
865734bf2f Change nsIPresContext to nsPresContext globally, follow-up to bug 253470. rs=roc
git-svn-id: svn://10.0.0.236/trunk@160184 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-31 23:15:21 +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
jim_nance%yahoo.com
36c92b47d6 Fix bug 241599 - Speed up table layotu code by reducing GetCellInfoAt() calls. r=bernd sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@159313 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-16 01:49:18 +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
jim_nance%yahoo.com
d0e0a7f7dd Fix Bug 236703 - Make the table layout code faster and smaller.
r=bernd sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@154731 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-12 23:51:33 +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
557ab433ca OS/2 crash prevention, make sure that a division by zero can not occure, bug 221975, r/sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@149254 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-13 17:34:46 +00:00
bmlk%gmx.de
52c5a559e1 include previously removed borderpadding and cellspacing, bug 215629, r=jkeiser sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@147248 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-24 16:04:54 +00:00
bmlk%gmx.de
deb5f49052 overflow area implementation for table frames, bug 173277 r=jkeiser sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@146838 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-13 16:26:30 +00:00
bmlk%gmx.de
05fac045c1 avoid marking columns that only have a desired width empty, what would exclude them from space redistribution, bug 194024, r=jkeiser sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@143140 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-31 14:15:56 +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
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