Commit Graph

1659 Commits

Author SHA1 Message Date
bzbarsky@mit.edu
3a6834eaac Fix bug 416073: invalidate more things as needed during table reflow to prevent glitches. r+sr=roc 2008-02-08 01:36:32 -08:00
surkov.alexander@gmail.com
5b9aa836b8 Bug 410052 - bustage fix on windows 2008-02-06 23:23:00 -08:00
surkov.alexander@gmail.com
d8aebfb510 Bug 410052 - Fix our nsHTMLAccessibleTable class so GetIndexAt and GetRowAtIndex and GetColumnAtIndex behave consistently, patch=me, marcoz, r=marcoz, me, bernd, sr=roc, blocking1.9+=dsicore 2008-02-06 23:03:26 -08:00
bzbarsky@mit.edu
d346697eb7 Don't invalidate the entire table just because we reflowed something inside it. Bug 414298, r+sr+a=roc 2008-02-06 14:01:41 -08:00
dholbert@cs.stanford.edu
e9f6157efe Bug 403669 - Dirty the table geometry when we split row groups. r+sr=dbaron, a=blocking1.9+ 2008-01-26 17:54:48 -08:00
bmlk@gmx.de
b5557fcea9 do not compare with a unconstrained size, bug 390049 r/sr=roc a=mtschrep 2008-01-19 22:42:31 -08:00
bmlk@gmx.de
fe17447110 remove dead code, bug 282009 r/sr=roc a=mtschrep 2008-01-19 22:34:03 -08:00
dholbert@cs.stanford.edu
2ed65950de Bug 368504: Create and use DistributeWidthToColumns for colspan-width and table-width distribution. r+sr=dbaron a=blocking1.9+ 2008-01-17 20:18:21 -08:00
mats.palmgren@bredband.net
dab7469f77 Add a null-check to wallpaper bug 411582. b=411582 r+sr=bzbarsky a=mtschrep 2008-01-15 15:29:53 -08:00
jruderman@hmc.edu
3145fd1893 Adding a crashtest 2008-01-06 15:27:19 -08:00
jruderman@hmc.edu
2c745b82fb Add crashtest 2008-01-05 22:17:05 -08:00
jruderman@hmc.edu
b021699a5b Add crashtest 2008-01-05 21:03:55 -08:00
jruderman@hmc.edu
cd2f588929 Add crashtests 2008-01-04 23:01:34 -08:00
jruderman@hmc.edu
1525528480 Add a crashtest 2008-01-04 20:48:46 -08:00
jruderman@hmc.edu
808d502da3 Add crashtest 2008-01-04 20:14:54 -08:00
jruderman@hmc.edu
e85b5afe1a Add crashtest for WFM bug 2008-01-04 17:31:25 -08:00
roc+@cs.cmu.edu
f8b25558e4 Bug 407889. Reduce dynamic memory allocations during event handling by having nested invocations of HitTest share a single buffer for reordering display items; this buffer is an nsAutoTArray so it's mostly stack-allocated. r+sr=mats 2008-01-03 18:08:29 -08:00
roc+@cs.cmu.edu
4cedbfdd70 Bug 408749. Reflow captions with unconstrained height, because we have no logic to reflow their continuations. r+sr=bzbarsky 2007-12-20 19:25:36 -08:00
jruderman@hmc.edu
55097360e9 Add crashtest 2007-12-16 22:38:48 -08:00
jruderman@hmc.edu
d7625d447e Add crashtests 2007-12-16 22:37:33 -08:00
jruderman@hmc.edu
14c2b3bf99 Out of the frying pan, into the crashtest! 2007-12-16 22:30:27 -08:00
jruderman@hmc.edu
93895aba6c Add crashtest 2007-12-16 22:27:04 -08:00
jruderman@hmc.edu
a9d70a7186 Add crashtests 2007-12-16 22:05:02 -08:00
jruderman@hmc.edu
737370db9c Add crashtest 2007-12-16 21:56:48 -08:00
jruderman@hmc.edu
0300941fc7 Add crashtests 2007-12-16 21:55:32 -08:00
jruderman@hmc.edu
626715691a Elvis has left the crashtest. 2007-12-16 21:52:57 -08:00
jruderman@hmc.edu
b9a586d425 Add crashtest 2007-12-16 21:51:36 -08:00
jruderman@hmc.edu
09f427728f Add crashtests 2007-12-16 21:41:10 -08:00
jruderman@hmc.edu
c90f2f5586 Add crashtests 2007-12-16 21:33:53 -08:00
jruderman@hmc.edu
990a393cda Add a crashtest 2007-12-16 21:23:00 -08:00
jruderman@hmc.edu
484b16ecb8 Add crashtest 2007-12-16 21:21:42 -08:00
jruderman@hmc.edu
52ae0a8ab7 To explore strange new crashtests. [Commit message suggested by JoeS] 2007-12-16 20:48:42 -08:00
jruderman@hmc.edu
c682072500 Add crashtests 2007-12-16 20:22:22 -08:00
jruderman@hmc.edu
dbf2f3a36d Add crashtest 2007-12-16 19:08:21 -08:00
jruderman@hmc.edu
9e12f32b6f Add crashtest! 2007-12-16 19:06:31 -08:00
jruderman@hmc.edu
059d89c581 Add crashtest 2007-12-16 18:41:22 -08:00
jruderman@hmc.edu
42e34399f8 In space, no one can hear you crashtest. 2007-12-15 19:47:22 -08:00
jruderman@hmc.edu
a5e02ee77e Add crash test 2007-12-15 18:48:45 -08:00
jruderman@hmc.edu
ae94caabc5 De-bust 2007-12-15 17:32:00 -08:00
jruderman@hmc.edu
68020cec16 A nun, a priest, and a rabbi walk into a crashtest... 2007-12-15 16:56:27 -08:00
jruderman@hmc.edu
727878d58b I, for one, welcome our new crashtest overlords. 2007-12-15 14:21:58 -08:00
jruderman@hmc.edu
5f0153f72a Add crashtest 2007-12-15 14:19:06 -08:00
bmlk@gmx.de
b64d41431a fix handling of empty rowgroups (that are rg without a row beneath) in the border collapse code (bug 383193 r/sr=bzbarsky a=mtschrep 2007-12-15 12:23:10 -08:00
jruderman@hmc.edu
e6b2825825 Add crashtest for bgu 284844. 2007-12-15 11:28:49 -08:00
bmlk@gmx.de
1dbce7da4c Implement row height distribution as it was described in the comment. Consider to give space to empty unconstrained rows as one option bug 197391 r/sr=roc a=mtschrep 2007-12-15 08:08:52 -08:00
bzbarsky@mit.edu
021559db01 Remove dead code. Bug 404666 followup, r=bernd, sr=roc, a=schrep 2007-12-05 11:38:26 -08:00
roc+@cs.cmu.edu
a3450f4db1 Bug 383195. Recreate support for repeatable table headers and footers while printing. r=bernd,sr=dbaron 2007-12-04 18:32:56 -08:00
bzbarsky@mit.edu
6c0d0c1564 Fix bug 404666 by making spanned colframes be continuations of the col that spans them. r=bernd, sr=roc, a=schrep 2007-12-02 23:45:06 -08:00
bmlk@gmx.de
002b0db04d when splitting rowgroups the space that is left on the page is computed from relative to the bottom, bug 373400 r=sharparrow1 sr=dbaron a=blocking 1.9+ 2007-12-02 11:19:00 -08:00
Olli.Pettay@helsinki.fi
a0a74f16e7 Bug 368760, r=mats, sr=roc, a=blocking1.9+ 2007-11-22 12:47:33 -08:00
bzbarsky@mit.edu
326c3d5ec2 When inserting a col into a colgroup after a col with span, insert it after the last columnframe spanned by the span. Bug 404301, r=bernd, sr=roc, a=schrep 2007-11-19 20:29:40 -08:00
bzbarsky@mit.edu
a2bba38560 The frame model depends on the span attribute, so changing span should reconstruct frames. Bug 403249, r=bernd, sr=roc 2007-11-18 10:56:49 -08:00
dbaron@dbaron.org
5a7a8d066f Rename new width keywords to match CSS WG decision. b=402706 r+sr=bzbarsky a=blocking1.9+ 2007-11-15 10:10:31 -08:00
dholbert@cs.stanford.edu
9fa5945e40 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 2007-11-15 10:04:16 -08:00
dholbert@cs.stanford.edu
0d23f498fd Bug 402893: don't scale up col prefWidth by % if it's nscoord_MAX. r+sr=roc, a=mtschrep 2007-11-15 09:59:49 -08:00
dbaron@dbaron.org
62f3e2ea18 Distribute height to rows even if the rows in question are all zero-height (in which case, distribute it equally). b=403656, 377711 r=dholbert sr=roc a=blocking1.9+ 2007-11-13 17:24:21 -08:00
dholbert@cs.stanford.edu
f6b0191adc Bug 403519: Support cells w/ prefWidth=nscoord_MAX when computing column intrinsic widths. r+sr=roc, a=mtschrep 2007-11-12 17:11:20 -08:00
roc+@cs.cmu.edu
588aa98f7d Bug 397428. Return 'complete' on *all* paths whenever we push a rowgroup to the next page. r=bernd,sr=bzbarsky,a=schrep 2007-11-11 17:45:56 -08:00
bzbarsky@mit.edu
c916e28b7f Make sure to remove anonymous cols created by a <col span="n"> when that col is removed. Bug 399209, r=bernd, sr+a=roc 2007-11-08 22:05:19 -08:00
bzbarsky@mit.edu
dac3d16a14 If we moved but did not reflow either the caption or the inner table, invalidate the relevant area. Bug 379353, r=bernd, sr=roc 2007-11-07 09:17:30 -08:00
dholbert@cs.stanford.edu
211998d47c Bug 385823 - Let us call NotifyPercentHeight even when computed height is already set, because it'll be set on imageFrames. r+sr=dbaron, a=beltzner 2007-11-06 14:47:29 -08:00
reed@reedloden.com
2c9a253889 Bug 368600 - "Table with table-layout: fixed has unconstrained width even when width specified on cell" [p=bernd_mozilla@gmx.de (Bernd) r+sr+a1.9=dbaron] 2007-10-21 21:40:02 -07:00
fantasai.cvs@inkedblade.net
304630cf88 nsTableCellMap::InsertRows shouldn't make damage area smaller, b=244135 p=malcolm.parsons r+sr=bz a=roc 2007-10-19 07:41:29 -07:00
fantasai.cvs@inkedblade.net
c65caf3497 fantasai is clearly having process troubles 2007-10-15 20:08:48 -07:00
fantasai.cvs@inkedblade.net
c8edae2e7c nsTableCellMap::InsertRows shouldn't make damage area smaller, b=244135 p=malcolm.parsons r+sr=bz a=roc 2007-10-15 20:06:36 -07:00
fantasai.cvs@inkedblade.net
fc4481baed using wrong BC damage area for BC calculations b=244135 p=malcolm.parsons r=bernd r=fantasai (credits for a good review go to Bernd Mielke, blame for a bad one to fantasai) sr=bz 2007-10-14 21:49:45 -07:00
bzbarsky@mit.edu
cde473408d Make sure to not propagate special height reflows too far. Bug 391901, r+sr+a=dbaron 2007-10-08 19:39:06 -07:00
dholbert@cs.stanford.edu
7bd62c18f6 Bug 398157: Fix nscoord_MAX arithmetic using NSCoordSaturatingSubtract. r=roc sr=roc a=roc 2007-10-01 14:44:50 -07:00
dholbert@cs.stanford.edu
83ad6c43d6 Bug 397448 - "ASSERTION: Doing nscoord addition with values > nscoord_MAX" with percentage margin in table cell. r=roc sr=roc approval19=roc 2007-09-26 09:32:50 -07:00
dholbert@cs.stanford.edu
5e31bd00b0 Bug 367673, Handle width-computation arithmetic with nscoord_MAX. r=roc sr=roc a1.9=roc 2007-09-24 10:30:42 -07:00
cbarrett@mozilla.com
f853061fdf Bug 370353 followup: Check in white space changes. Patch by Daniel Holbert <dholbert@mozilla.com>. r=bernd sr=dbaron a1.9=dbaron. 2007-08-17 16:58:19 -07:00
cbarrett@mozilla.com
07c65fa3ba Bug 370353: Dynamically setting "visibility: collapse" to a <col> no longer works. Patch by Daniel Holbert <dholbert@mozilla.com>. r=bernd sr=dbaron a1.9=dbaron 2007-08-17 16:51:58 -07:00
bmlk@gmx.de
a8a27d0772 adapt assert to code reality, bug 364512 r/sr/a=dbaron 2007-08-11 09:19:55 -07:00
masayuki@d-toybox.com
9affd989eb Bug 365336 text-decoration width should be rounded to the device pixels r+sr=roc 2007-08-06 01:15:00 -07:00
ginn.chen@sun.com
d0ed3cca65 Bug 389793 Firefox build failed on OpenSolaris without --disable-mochitest r=benjamin a=dsicore 2007-08-05 20:22:32 -07:00
dbaron@dbaron.org
c5c9d3cb46 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 2007-08-02 17:07:29 -07:00
bzbarsky@mit.edu
725f9f32fc Make sure to reflow the caption if it gets inserted into our table before another caption. Bug 389924, r=bernd, sr+a=dbaron 2007-08-02 14:34:58 -07:00
bzbarsky@mit.edu
9c59e9e4cc Introduce a setter for nsHTMLReflowState::mComputedHeight so that we're sure to
update the resize flags properly.  Bug 388084, r+sr+a=dbaron
2007-08-02 11:08:05 -07:00
roc+@cs.cmu.edu
a28eeaaafd Bug 379349. Add support for 'overflow containers' --- special frame continuations that do not map any content of their own, but serve only as containers for laying out children that overflowed their parents' content height. patch by fantasai, r+sr=eli,roc 2007-07-25 21:03:29 -07:00
bzbarsky@mit.edu
38e9f3f89b Fix regression in sizing of tables with scrollable rowgroups. Bug 387344,
r=bernd, sr=roc
2007-07-12 13:54:18 -07:00
jwalden@mit.edu
6d7584839a Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros. 2007-07-08 00:08:04 -07:00
aaronleventhal@moonset.net
4ff6072f7d Bug 377783. Fix crash and clean up table a11y. r=evan.yan 2007-07-05 08:39:29 -07:00
mats.palmgren@bredband.net
42a227c78a Cleanup implementations of QueryInterface. b=385750 r+sr=dbaron r+sr=jst 2007-07-03 19:15:31 -07:00
sharparrow1@yahoo.com
b6d8dd200b Bug 386142: fantasai's li'l Need More Comments bug. Patch by fantasai, r+sr=roc 2007-07-03 15:49:00 -07:00
sharparrow1@yahoo.com
9da968b142 Bug 372768: {inc}Setting nowrap attribute dynamically does not change layout like it should. r=bzbarsky,sr=dbaron. 2007-07-01 11:42:18 -07:00
dbaron@dbaron.org
731e0cce6c Only do special height reflows for percentage-height children of table cells when there is a specified height on the table, row group, row, or cell in the row. b=370525 Patch by Daniel Holbert <dholbert@mozilla.com>. r+sr=dbaron 2007-06-25 13:34:35 -07:00
dbaron@dbaron.org
7299d6225d Handle the vertical resizing in the first pass reflow correctly when we've previously done a special height reflow. b=381507 r=dholbert sr=roc 2007-06-18 16:19:39 -07:00
bzbarsky@mit.edu
edaea09148 Make OrderRowGroups type-safe. Bug 367706, r=bernd, sr=roc 2007-06-05 11:55:26 -07:00
bzbarsky@mit.edu
93656034b8 No max-width means "none", not null unit. Bug 381284, r+sr=dbaron 2007-05-23 12:56:02 -07:00
dbaron@dbaron.org
5b75544077 Call SetGeometryDirty if we need to call DistributeHeightToRows, since DistributeHeightToRows can't deal with rows that have already had height distributed to them. Patch by Daniel Holbert <dholbert@mozilla.com>. b=380227 r+sr=dbaron 2007-05-17 23:04:43 -07:00
dbaron@dbaron.org
9920e003d3 Remove eCSSUnit_Proportional and eStyleUnit_Proportional, which were used only for a removed feature. b=333352 r+sr=bzbarsky 2007-05-10 23:00:26 -07:00
bzbarsky@mit.edu
bc29535f04 Fix determination of the style context parent for the inner table frame of aroot table. Bug 379386, r+sr=roc 2007-05-07 20:59:12 -07:00
bzbarsky@mit.edu
1b5f6b30b6 Change the FrameNeedsReflow API to pass the dirty flags to be added directly tothe method, instead of setting them before calling the method. That way we canavoid reflowing the ancestor of a reflow root which is not itself dirty but hasdirty children. This also makes it harder to set dirty bits inconsistentlywith the FrameNeedsReflow call. Bug 378784, r+sr=dbaron, pending rbs' reviewon the mathml parts. 2007-05-06 12:16:51 -07:00
dbaron@dbaron.org
ace3611ec9 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 2007-05-03 16:11:00 -07:00
bzbarsky@mit.edu
487d95825a Fix bug 379229, r+sr=dbaron 2007-04-29 23:17:03 -07:00
sayrer@gmail.com
b80649a523 bug 378487. allocator mismatch in SpanningCellSorter. r+sr=bzbarsky 2007-04-23 11:40:07 -07:00
benjamin@smedbergs.us
baab01ada6 Bug 376636 - Building with gcc 4.3 and -pendatic fails due to extra semicolons, patch by Art Haas <ahaas@airmail.net>, rs=me 2007-04-23 07:21:53 -07:00
bzbarsky@mit.edu
9a93ae1b49 Give captions the right style context parent when dynamically restyling. Bug378240, r=bernd, sr=dbaron 2007-04-22 12:15:24 -07:00
sayrer@gmail.com
b80cfd9871 Bug 368994. move mochitests near the code they test. round 7. r=bzbarsky 2007-04-16 08:18:50 -07:00
bzbarsky@mit.edu
eeaa1a101b Rename nsIFrame::GetPresContext to nsIFrame::PresContext. Bug 376042, patch byTaras Glek <tglek@mozilla.com>, rs=roc. 2007-03-30 14:11:41 -07:00
dbaron@dbaron.org
d98d9fdec5 Remove unused getKey callback from PLDHashTableOps/JSDHashTableOps. b=374906 r=bsmedberg 2007-03-27 08:33:38 -07:00
hg@mozilla.com
05e5d33a57 Free the (distributed) Lizard! Automatic merge from CVS: Module mozilla: tag HG_REPO_INITIAL_IMPORT at 22 Mar 2007 10:30 PDT, 2007-03-22 10:30:00 -07:00
dbaron%dbaron.org
2a5524be67 Fix logic error handling column-spanning cells with specified widths. b=374819 r+sr=roc a=vlad 2007-03-21 23:31:38 +00:00
dbaron%dbaron.org
8d13bd3f77 Fix handling of specified widths on column-spanning cells. b=363874 r=bernd sr=roc 2007-03-19 20:26:36 +00:00
bmlk%gmx.de
68d05fab5f mark cellmap if 0 colspans are present for 0 colspan expansion when cells are deleted bug 373390 r/sr=bzbarsky 2007-03-17 05:58:15 +00:00
bzbarsky%mit.edu
66e808a4af Get the correct next-in-flow. Bug 373611, r+sr=dbaron 2007-03-13 21:23:17 +00:00
bmlk%gmx.de
d68a0652fc mark zerocolspans to be expanded if they are inserted rather than appended. bug 372776 r/sr=bzbarsky 2007-03-07 05:06:38 +00:00
bzbarsky%mit.edu
481c2affc3 Fix bug 371925 -- we need to allow for the case when the prev sibling is at
index 0.  r=bernd, sr=roc
2007-02-28 22:42:20 +00:00
bzbarsky%mit.edu
a2568210d3 When inserting a cell, make sure to properly maintain the mNumCellsSpan of the
columns involved.  In particular, do NOT decrement it when dead CellData are
removed from the column.  Bug 371290, r=bernd, sr=roc
2007-02-23 17:41:15 +00:00
dbaron%dbaron.org
cfef5cbbe5 Remove the remainder of the pixel rounding in the table code. b=371187 r=bernd sr=roc 2007-02-22 20:22:12 +00:00
bmlk%gmx.de
15f99a67ae limit array access when a rowspan points to a already pushed row, bug 370360 r/sr=bzbarsky 2007-02-21 19:42:21 +00:00
bmlk%gmx.de
4dab2d8d98 collapse zero colspans when new cells are inserted bug 370842 r/sr=bzbarsky 2007-02-21 19:31:52 +00:00
bzbarsky%mit.edu
d942dc7cc0 Fix bug 370586. r=bernd, sr=roc 2007-02-19 01:10:28 +00:00
dbaron%dbaron.org
e991cbf0ba Subtract allocated parts before repeating division used for allocation to avoid rounding error of total. b=366865 r=bernd sr=roc 2007-02-18 19:49:50 +00:00
bmlk%gmx.de
9845cab803 fix oversight with zero rowspan handling bug 370808 r/sr=bzbarsky 2007-02-18 18:50:39 +00:00
bzbarsky%mit.edu
806907a4d2 Don't use a static nsTArray. Bug 369099, r=bernd, sr=roc 2007-02-13 16:23:19 +00:00
bmlk%gmx.de
6fe97a58cd take into account overlap situations between row- and colspans, bug 369975 r/sr=bzbarsky 2007-02-13 05:32:18 +00:00
sharparrow1%yahoo.com
d19f64369b Bug 370185: clean up view header includes (trivial). rs=bzbarsky. 2007-02-12 19:17:33 +00:00
bmlk%gmx.de
14281d618d look out for zero rowspans when expanding the cellmap bug, 368651 r/sr=bzbarsky 2007-02-10 06:56:57 +00:00
dbaron%dbaron.org
9a2f5780e9 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 2007-02-08 19:21:58 +00:00
dbaron%dbaron.org
7a03b97f01 Stop rounding final column widths (up) to pixel boundaries. b=349297 r=bernd sr=roc 2007-02-08 19:20:51 +00:00
sharparrow1%yahoo.com
76a64e5c22 Bug 177805: Fix the use of units in Gecko. r+sr=roc 2007-02-07 07:46:44 +00:00
dbaron%dbaron.org
1e0db05c93 Make default table and hr border colors be gray rather than special values that depend on the background color, and remove the special values that depend on the background. b=84307 Patch by fantasai <fantasai.bugs@inkedblade.net>. r=bzbarsky sr=dbaron 2007-02-01 02:45:55 +00:00
cvshook%sicking.cc
a39ff30284 Kill remainders of ns(XBL|HTML|XUL|Layout)Atoms. r/sr=jst b=368128 2007-01-30 00:06:41 +00:00
bzbarsky%mit.edu
f29ad74749 Fix crash bug 368166. r=bernd, sr=roc 2007-01-28 16:49:26 +00:00
dbaron%dbaron.org
d8805141a6 Remove nsTableFrame::GetBorderPadding and related code. b=367458 r=bernd sr=roc 2007-01-27 22:22:24 +00:00
dbaron%dbaron.org
a74c1106d1 Address review comment on bug 9458 that depends on bug 367247 by making nsFrame::IsContainingBlock not check display type, but making it purely frame-class-based. 2007-01-27 18:45:35 +00:00
bzbarsky%mit.edu
baec9bd166 Make mComputedWidth private, with a getter/setter, and make the setter update
the resize flags.  Bug 367442, r+sr=dbaron
2007-01-26 00:05:12 +00:00
bzbarsky%mit.edu
7413db90f4 Address review comment I missed. Bug 367749. 2007-01-24 20:23:08 +00:00
bzbarsky%mit.edu
27ca5847eb Fix various bugs in the column iterator's keeping track of the current row.
Bug 367749, r=bernd, sr=roc
2007-01-24 20:18:04 +00:00
dbaron%dbaron.org
f6245f0ed9 Change the bulk of ascent (baseline) computation to happen on a virtual method on nsIFrame, and remove the redundant descent member from nsHTMLReflowMetrics, primarily to support having both first-line and last-line baselines. b=367332 r+sr=roc 2007-01-23 04:06:56 +00:00
bzbarsky%mit.edu
ed9ad7b7bf Make it possible for callers who want to iterate all the row groups and
GetMapFor() for all of them do so in about O(N) time instead of O(N^2) (in
number of row groups).  Bug 366892, r=bernd, sr=roc
2007-01-22 04:35:25 +00:00
bzbarsky%mit.edu
21d73573a8 Have a faster way of iterating down the columns of a table. Bug 352461,
r=bernd, sr=roc
2007-01-22 04:32:33 +00:00
bmlk%gmx.de
97b5794242 Stronger band-aid to prevent table splitting inside columns bug 362275 r/sr=roc 2007-01-21 17:51:33 +00:00
dbaron%dbaron.org
e47180b9d5 Make PushStackMemory never fail to simplify callers, and deCOMtaminate the stack memory API. b=366866 r+sr=bzbarsky 2007-01-17 23:53:47 +00:00
dbaron%dbaron.org
df3f524c0f 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 2007-01-17 19:19:50 +00:00
dbaron%dbaron.org
52d0e2d098 Fix incorrectly placed PR_MAX(), since the span* values are additions to the base values. b=365173 r=bernd sr=bzbarsky 2007-01-13 01:08:18 +00:00
dbaron%dbaron.org
b32b8039f8 Accumulate column-spanning cells into column intrinsic widths separately for each number of columns spanned, in increasing order. b=363329 r=bernd sr=bzbarsky 2007-01-13 01:04:56 +00:00
bmlk%gmx.de
13abe1b209 Zerorowspans are expanded during cellmap entry creation. There is no need to adapt the rowspan value later, bug 364318 r/sr=bzbarsky 2007-01-01 18:18:53 +00:00
bmlk%gmx.de
27757bb08d initialize variables before use bug 365075 r/sr=bzbarsky 2006-12-27 08:46:30 +00:00
timeless%mozdev.org
4e651390ef Bug 355300 There should be only one nsGkAtoms creature
r=dbaron
2006-12-26 17:47:52 +00:00
bmlk%gmx.de
5f3f2bb2d3 be carefull with row indices when deleting cells bug=364318, patch by bz, r=me sr=roc 2006-12-26 14:24:15 +00:00
bmlk%gmx.de
ea94fabefd rename variable rename mRowCount to mContentRowCount so that it becomes obvious what it contains. Adjust the cellmap grow mechanism to the new nsTArray world bug=363370 r/sr=bzbarsky 2006-12-26 14:04:20 +00:00
bmlk%gmx.de
0f8c9c56cf add again bound checks that the BC code relies on. bug 364150 r/sr=bzbarsky 2006-12-26 13:55:32 +00:00
dbaron%dbaron.org
b80d119b57 Untabify. 2006-12-25 19:44:34 +00:00
dbaron%dbaron.org
146c1af6e5 Fix shadowing variable name. No bug. 2006-12-18 22:35:01 +00:00
dbaron%dbaron.org
1e894edf9f 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 2006-12-18 22:34:30 +00:00
bzbarsky%mit.edu
6705ad44ff Remove some unused table code. Bug 359139, r=bernd, sr=roc 2006-12-18 03:04:25 +00:00
mats.palmgren%bredband.net
6ee857d0b7 Make the CSS 'ch' length unit work in most cases. b=363573 r+sr=dbaron 2006-12-17 14:06:42 +00:00
dbaron%dbaron.org
f10ce086e7 Use unsigned value with 1-bit field width, per sicking's advice. No bug. 2006-12-16 02:11:38 +00:00
dbaron%dbaron.org
d5af630c22 Better API for used padding/border/margin: remove deprecated Calc*For on nsStyleStructs and add GetUsed* to nsIFrame. b=332922 r+sr=roc 2006-12-13 23:04:57 +00:00
dbaron%dbaron.org
824d3cb3bf Fix bustage. b=363524 2006-12-13 04:21:05 +00:00
dbaron%dbaron.org
79275357a7 Reflow all of the table structure (although not its descendants) when frame structure within the table is changed. b=363524 r=bernd sr=bzbarsky 2006-12-13 03:45:28 +00:00
bmlk%gmx.de
52d6f885ce report frames currently on the overflow list as frames on a additional childlist to get their views reparented if a frame higher in the tree needs to reparent the views bug 362724 r/sr=roc 2006-12-10 06:46:17 +00:00
dbaron%dbaron.org
f05e8007d1 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 2006-12-09 05:38:19 +00:00
dbaron%dbaron.org
31f1898810 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. 2006-12-08 05:38:33 +00:00
bzbarsky%mit.edu
99ed82e864 Fix build orange. Bug 356335, reviews hopefully coming up. 2006-12-07 03:43:52 +00:00
bzbarsky%mit.edu
66d9ef86aa Fix build bustage. See bug 356335 comment 18 for what I forgot to do in the
initial checkin for that bug...  I need a longer-term memory, clearly.  :(
2006-12-07 02:53:35 +00:00
bzbarsky%mit.edu
132cdda426 Allocate the celldata structs from the presshell arena instead of allocating
them from the malloc heap with new.  Use nsTArray to store them and an nsTArray
to store those arrays instead of using nsVoidArray.  Bug 356335, r=bernd,
sr=sicking
2006-12-07 02:32:57 +00:00
bmlk%gmx.de
5bbcbbdb17 colframes are referenced via the firstinflow bug 362348 r/sr=roc 2006-12-02 06:52:55 +00:00
bmlk%gmx.de
d3be21f08f don't rely on framconstructor to deliver a valid sibling for insert of colgroups and rowgroups as they are siblings contentwise but live on different childlists, bug 337124 r/sr=roc 2006-11-11 13:38:09 +00:00
bmlk%gmx.de
dff951d9ff mark only cells where the colspan/rowspan offset is != 0 as zero colspans/rowspans if those properties apply bug 358871 r/sr=bzbarsky 2006-11-01 18:45:41 +00:00
bmlk%gmx.de
95696f562c call the correct GetCellFrame function bug 358679 r/sr=bzbarsky 2006-10-30 19:21:05 +00:00
bmlk%gmx.de
489591b510 make zero rowspans dependent on the content row count and not how many rows are currently in the cellmap, this cause otherwise problems during rebuild of the cellmap bug 339129 r/sr=bzbarsky 2006-10-28 10:14:43 +00:00
bmlk%gmx.de
2722eb51e3 Revert a old design decision how to expand zero colspans in the cellmap. Once a cellmap hole was hit via the GetDataAt function the old code tried to repair this cellmap position by walking up and left till a possible origin of a zero span was hit. The new code uses a mark and sweep approach, which should remove the burden that ordinary tables without zero spans but large cellmap holes have to pay. bug 351942 r/sr=bzbarsky 2006-10-20 07:37:24 +00:00
roc+%cs.cmu.edu
516ce211dd Bug 241796. Fix comments and handle OOM in SetProperty. Followup to the real fix. r+sr=bzbarsky 2006-09-22 01:56:04 +00:00
bmlk%gmx.de
56f7eba7ce mark for all reflows the rowgroup as incomplete if there are still nextinflows bug 347367 r/sr=roc 2006-09-21 09:55:07 +00:00
bzbarsky%mit.edu
eb996179db When painting backgrounds, don't loop over all rows. Just do the ones that
might intersect the dirty rect.  Use the row cursor to optimize this.  Bug
353455, r+sr=roc
2006-09-20 16:42:13 +00:00
roc+%cs.cmu.edu
c5f6e4e0b1 Bug 241796. Use a row cursor to speed up painting and event handling in large tables, similar to what we do for large blocks already. r+sr=bzbarsky 2006-09-19 21:39:33 +00:00
bzbarsky%mit.edu
feea3a45cc Reinstate reflow count painting when it's needed. Bug 352851, r+sr=roc 2006-09-19 04:26:20 +00:00
bmlk%gmx.de
3640d5a918 enable old assert (from 2001) to catch cellmap errors, fix one erroneus caller bug 351691 r/sr=bzbarsky 2006-09-11 18:27:35 +00:00
bmlk%gmx.de
06d5ebe18c recover more gracefully from a error condition where cells are inserted into the cellmap after the last column bug 351328 r/sr=bzbarsky 2006-09-11 18:18:08 +00:00
bmlk%gmx.de
9fa638f000 make sure the nextinflow will be pushed bug 347367 r/sr=roc 2006-09-02 09:14:02 +00:00
bmlk%gmx.de
b6cec66d11 compute the BC information only if there are cells bug 350906 r/sr=bzbarsky 2006-09-02 08:48:39 +00:00
bmlk%gmx.de
ccfb295963 expand zerospans before one tries to mark them as dead cells bug 350524 r/sr=bzbarsky 2006-09-02 08:33:52 +00:00
bmlk%gmx.de
6fa9482b95 mark the whole table ofr bc recomputation if the rowgroups change bug 347796 r/sr=bzbarsky 2006-08-28 17:41:46 +00:00
bmlk%gmx.de
6f250e7252 match the numer of columnss in the cellmap and the col cache bug 350081 r/sr=bzbarsky 2006-08-28 17:39:36 +00:00
bmlk%gmx.de
260c8a2aa1 adjust col frames instead of asserting that the number of cols is wrong bug 347725 r/sr=bzbarsky 2006-08-22 06:08:15 +00:00
mats.palmgren%bredband.net
02eaae11b6 Improve error handling in nsCSSFrameConstructor::CreateContinuingFrame() and its callers. b=337419 r+sr=roc 2006-08-22 01:33:46 +00:00
leon.sha%sun.com
2c818d7977 Bugzilla Bug 344883
print previewing url freezes bon echo (and minefield if you zoom too)
Patch by leon.sha@sun.com
bernd_mozilla: review+
roc: superreview+
2006-08-07 11:03:43 +00:00
bmlk%gmx.de
fc6d5370ff fix VC6 build bustage 2006-08-04 20:32:46 +00:00
bmlk%gmx.de
d4f3eadccd take special care when tfoot are manipulated and the cellmap changes rather drastical bug 343087 r/sr=bzbarsky 2006-08-04 19:15:50 +00:00
uriber%gmail.com
8c0e3dd5b7 Handle returning nulls from CheckLineOrder correctly. bug=345616 r=smotagu sr=roc 2006-08-04 05:40:57 +00:00
bmlk%gmx.de
103658af2a fix a coding error in the patch for bug 339246 bug 343588 r/sr=bzbarsky 2006-08-02 12:02:37 +00:00
bmlk%gmx.de
2c35fc2818 fix cellmap errors with the num of rows in the cellmap vs the num of rows in the content bug 344000 r/sr=bzbarsky 2006-08-02 11:57:48 +00:00
mats.palmgren%bredband.net
26a1119b47 [Debug only] Add nsTableCaptionFrame::GetFrameName() returning "Caption". b=343386 r+sr=bzbarsky 2006-07-20 08:50:26 +00:00
bmlk%gmx.de
9a79b08c79 when we remove cells the number of columns in the cellmap may rise if rowspans are involved bug 343778 r/sr=bzbarsky 2006-07-19 19:21:50 +00:00
mats.palmgren%bredband.net
153ab238ca Fix crash when recreating <caption> frames. Add ASSERTIONs to detect similar frame construction errors in the future. b=341382 r+sr=bzbarsky 2006-06-29 02:32:36 +00:00
bmlk%gmx.de
822b5ee5b0 reset row indices if rowgroups may have moved bug 342559 r/sr=bzbarsky 2006-06-28 19:00:01 +00:00
bmlk%gmx.de
424fb80e20 reset column info for all cellmaps if they need to be reset, bug 339246 r/sr=bzbarsky 2006-06-28 18:56:10 +00:00
bmlk%gmx.de
12ffb8ee63 adjust the starting column index always if a entire colgroup needs adjusted colindices bug 339315 r/sr=bzbarsky 2006-06-24 05:42:38 +00:00
bmlk%gmx.de
70ec56f2d3 reorder cellmaps if the rowgroup order might have changed bug 339130 r7sr=bzbarsky 2006-06-22 04:19:36 +00:00
roc+%cs.cmu.edu
6da332dd07 Bug 338770. Don't even start trying to split a rowgroup in columns mode. r=bernd,sr=bzbarsky 2006-06-06 22:45:14 +00:00
bmlk%gmx.de
a714532cd0 avoid memory leak on early return bug 333354 r/sr=bzbarsky 2006-05-25 14:56:44 +00:00
roc+%cs.cmu.edu
4571423968 Fixing bustage 2006-05-01 01:41:41 +00:00
roc+%cs.cmu.edu
dd16b28d00 Bug 334690. Fix regression in z-ordering of table cell content for event handling. r=bernd 2006-05-01 01:18:32 +00:00
roc+%cs.cmu.edu
8956f1d8a1 Bug 334942. ExplodeAnonymousChildLists before sorting table parts. r=bernd 2006-04-27 02:25:23 +00:00
roc+%cs.cmu.edu
aac1b0d44f Bug 330305. Rename nsSelection to nsFrameSelection, and deCOMtaminate it, removing nsIFrameSelection. patch by Marc Liddell, r+sr=roc 2006-04-26 02:01:07 +00:00
roc+%cs.cmu.edu
ee089f28b9 Bug 333481. Sort table-part event-handling display items to ensure that the table comes before all row-groups, which come before all rows, which come before all cells. r=bernd 2006-04-17 22:16:24 +00:00
bmlk%gmx.de
10e108eef9 remove deadcode and fix a potential 0 deref, bug 333356 r/sr=bzbarsky 2006-04-15 04:56:52 +00:00
bmlk%gmx.de
049d72f6e1 fix potential 0 deref bug 333351 r/sr=roc 2006-04-14 16:21:21 +00:00
roc+%cs.cmu.edu
a7f03736a9 Bug 328926. Remove aPresContext parameter from nsIFrame::Destroy, nsIFrame::SetInitialChildList and nsIFrame::RemovedAsPrimaryFrame. patch by Marc Liddell, r+sr=roc 2006-04-10 00:16:29 +00:00
bmlk%gmx.de
1d47f5e73d prevent a second call to SetInitialChildList bug=333288 r/sr=bzbarsky 2006-04-09 18:43:46 +00:00
dbaron%dbaron.org
04b8c33eda Remove uses of MOZ_DECL_CTOR_COUNTER, which is always defined to nothing. b=332745 rs=roc,bzbarsky 2006-04-05 00:00:44 +00:00
darin%meer.net
20837f71e1 fixes bug 328925 "Replace NS_WARN_IF_FALSE with NS_ASSERTION (where appropriate)" r=dbaron 2006-03-30 18:40:56 +00:00
sharparrow1%yahoo.com
1e650e3784 Bug 331415: some printing code cleanup. r+sr=roc. 2006-03-30 00:27:42 +00:00
bmlk%gmx.de
dc6b06b190 don't rely on the inner cell frame but catch events on the cell frame itself bug 326308 r/sr=roc 2006-03-29 04:33:34 +00:00
roc+%cs.cmu.edu
0a10a79f62 Bug 330934. Set a nsIFrame's stylecontext in its constructor, to ensure that there's always one available for GetPresContext() to use even if Init hasn't been called. Patch by Marc Liddell, r+sr=roc 2006-03-26 21:30:36 +00:00
bmlk%gmx.de
129b81296d adjust start col index when looping over rtl colspans bug 331344 r/sr=roc 2006-03-26 15:58:34 +00:00
bmlk%gmx.de
14f0791bf3 insist on an inner table frame, resistance to any other childlist, bug 329768, r/sr=bzbarsky 2006-03-18 07:18:54 +00:00
pavlov%pavlov.net
131e8794e2 backing out roc's patch for bug 328926 due to crash running tests on vc8 machines. 2006-03-15 06:43:36 +00:00
roc+%cs.cmu.edu
557b089a47 Bug 328926. Remove aPresContext parameter from Destroy and SetInitialChildList. patch by Marc Liddell, r+sr=roc 2006-03-15 03:14:02 +00:00
roc+%cs.cmu.edu
6fd863f2dd Bug 330300. Move mFrame from nsDisplayItem subclasses up to nsDisplayItem itself, and make GetUnderlyingFrame an inline non-virtual function. Patch by Alfred Peng, r+sr=roc 2006-03-14 20:43:18 +00:00
roc+%cs.cmu.edu
c2801ebbd7 Bug 328926. Remove aPresContext from nsIFrame::Init and nsIFrame::DidSetStyleContext. r+sr=roc, patch by Marc Liddell 2006-03-09 18:55:21 +00:00
bmlk%gmx.de
1c6c74da4a Don't create dead cells if the position is outside the cellmap boundaries. bug 328339 r/sr=bz 2006-03-04 05:32:38 +00:00
bmlk%gmx.de
20b85ffac2 Make visibility:collapse work again after the display list change. Implement overflow handling and view synchronization for collapsed frames. bug 326551 r/sr=roc 2006-03-04 05:26:57 +00:00
timeless%mozdev.org
426f83aecc Bug 298277 remove useless references to nsVoidArray
r=dbaron sr=dbaron
2006-02-23 10:30:59 +00:00
uriber%gmail.com
c7032d59bb Bug 299065: Bidi resolution needs to split inlines in addition to text frames. r+sr=dbaron 2006-02-21 21:33:47 +00:00
bmlk%gmx.de
32e0b4f487 don't shrink cells below borderpadding in fixed layout, bug 308019 r/sr=bzbarsky 2006-02-11 11:12:40 +00:00
bzbarsky%mit.edu
f96a096c2c Fix leak bug 324969 -- make sure to call virtual destructors. 2006-01-29 18:48:58 +00:00
bmlk%gmx.de
430211b413 reorder row groups to keep them in sync when the nextinflow changes underneath bug 302911 r/sr=roc 2006-01-28 06:14:11 +00:00
roc+%cs.cmu.edu
77bca74243 Bug 317375. Reorganize frame painting and mouse event targeting around frame display lists. Some review from dbaron, lots of testing help from Martijn, Julien and others 2006-01-26 02:29:17 +00:00
bmlk%gmx.de
1bb0037d58 error in the patch for bug 307367, spotted by jag 2006-01-21 10:14:38 +00:00
bmlk%gmx.de
ef5d2c73ea use scaledpixels to convert from CSS pixels to realword pixels bug=307367 r/sr=roc 2006-01-21 09:54:07 +00:00
bzbarsky%mit.edu
6400a4a6ba Make sure to call the right destructor on cellmap info structs. Bug 302725,
r=bernd, sr=dbaron
2006-01-13 21:08:17 +00:00
bmlk%gmx.de
b91b76b673 insert new rowgroup cellmaps in the order predicted by OrderRowGroups, bug=317554 r/sr=roc 2005-12-16 19:10:56 +00:00
bmlk%gmx.de
5663eeaaaa Do not prevent the creation of multiple captions, but display only the first one, bug 309322 r/sr=bzbarsky 2005-12-03 15:13:08 +00:00
bmlk%gmx.de
d80bb5e08d fix for null pointer deref, only rowspans span into the row below. bug 316636 r/sr=bzbarsky 2005-11-28 19:29:26 +00:00
bmlk%gmx.de
9e0ea03b7a fix for a regression from bug 271789, deadcells are nearly equivalent to complete cellmap holes, bug 317148 r/sr=bzbarsky 2005-11-21 18:08:30 +00:00
timeless%mozdev.org
1c34e68034 Bug 106386 Correct misspellings in source code
patch by mats.palmgren@bredband.net r=dbaron sr=dbaron
2005-11-20 22:05:24 +00:00
bsmedberg%covad.net
78f6d0683d Bug 313309 part 2 - change the NS_DEFINE_STATIC_IID_ACCESSOR macro to NS_DECLARE, and make a NS_DEFINE_ macro that's outside the class declaration, r=shaver 2005-11-11 14:36:26 +00:00
bmlk%gmx.de
2163d4caa2 mark cell hooles that are not caused by zero spans as dead, this will limit searches when a search is initiated at other cell hooles. bug 271789 r/sr=bzbarsky 2005-11-11 05:22:18 +00:00
bmlk%gmx.de
e7a8486231 limit search for real table cells to place where they can be expected, bug 313295 r/sr=bzbarsky 2005-11-04 18:41:32 +00:00
roc+%cs.cmu.edu
520b30a7f7 Bug 313817. DeCOMtaminate more NS_New*Frame functions. r+sr=roc, patch by Marc Liddell 2005-11-04 02:38:33 +00:00
bmlk%gmx.de
43ac693e27 look for originating table cells only at places where they are supposed to be bug 313295 r/sr=bzbarsky 2005-10-29 13:45:38 +00:00
mrbkap%gmail.com
3d5f7550f7 bug 314197: Change this often-firing table assertion into a warning. r=bernd sr=bzbarsky 2005-10-28 19:49:51 +00:00
mats.palmgren%bredband.net
9125d9fa0e Return the frame count for the given line 'aLineNumber', not the line where we find the first frame. b=308052 r=bernd sr=bzbarsky 2005-10-17 00:03:05 +00:00
bmlk%gmx.de
8d2cb2369f handle baseline for empty table cells closer to the new description in CSS2.1, bug 291060 r/sr=dbaron 2005-10-04 15:47:21 +00:00
bmlk%gmx.de
6b18d5aa23 Do not rely on addcells to compute correctly mRowCount. bug 308752 r/sr=bzbarsky 2005-09-25 18:42:31 +00:00
roc+%cs.cmu.edu
fed343c43a Bug 108310. Make GetFrameForPoint take frame-relative coordinates, not bogus relative-to-some-view-or-other, and simplify the signature. r+sr=roc, patch by Eli Friedman. 2005-09-19 02:15:54 +00:00
bzbarsky%mit.edu
e6c127026a Fix crash bug 302118, patch by bernd, r+sr=bzbarsky 2005-09-12 13:44:15 +00:00
bzbarsky%mit.edu
cf64715ae5 Remove the pointless nsIContent arg of nsIFrame::AttributeChanged. Bug 281390,
patch by Vidar Braut Haarr <vhaarr+bmo@gmail.com>, r+sr=bzbarsky
2005-09-07 16:49:21 +00:00
bmlk%gmx.de
77004905b6 limit pctHeightObserver to quirks mode bug 305975 r/sr=bzbarsky 2005-08-30 16:14:53 +00:00
timeless%mozdev.org
b4d01d069d Bug 277553 clicking on Textarea with a RTL direction doesnt work
patch by uriber@gmail.com r=bz sr=bz a=bsmedberg
2005-08-02 21:55:55 +00:00
bmlk%gmx.de
fb7a593376 fix reflow reason for special height reflow, reevaluate height reflow conditions as tables with fixed layout might have one reflow less bug 293761 r/sr=roc a=asa 2005-06-21 04:50:42 +00:00
timeless%mozdev.org
9da0ce304f Bug 294823 ASSERTION: max element width exceeded desired width: 'PR_FALSE'
patch by bernd r=roc sr=roc a=asa
2005-06-16 18:22:38 +00:00
bzbarsky%mit.edu
2f16a8de39 Fix leak in table background painting. Bug 295236, r=bernd, sr=dveditz, a=asa 2005-05-24 04:15:05 +00:00
bzbarsky%mit.edu
e61e1e1935 Fix border width inheritance by keeping track of both the border width we'd
have if our style were not none/hidden and the actual computed border width.
Bug 290377, r+sr=dbaron, a=asa
2005-04-29 15:44:38 +00:00
roc+%cs.cmu.edu
84b0577142 Bug 240276. Make nsHTMLScrollFrame be a regular HTML frame, not a box frame, so we don't have to go through box layout. It gets its own reflow implementation that handles min-max and lots of other good stuff. rs+sr=dbaron,a=asa 2005-04-28 21:57:22 +00:00
dbaron%dbaron.org
06ee318b44 Fix too-much-overflow regression by making border-collapse cells store the full width of the border rather than just the inside half of it. Also make BCPixelSize 16-bit instead of 8-bit and use it in more places, and a little other cleanup. b=286794 r=bernd sr=roc a=brendan 2005-04-07 18:04:38 +00:00