dbaron%fas.harvard.edu
fc01a17366
Make the width of floats with |width: auto| depend only on the width of the containing block and the contents of the float and not on the available space. Remove the loop calling ReflowFloater at different positions that is no longer needed, and remove the caching of the max element size for that loop that was not being invalidated correctly between reflows. Fix handling of margin, border, and padding for computation of available width for |width: auto| floaters. r=attinasi sr=waterson b= 85876, 82314, 82315, 85216, 85874, 86746
2001-07-19 02:33:43 +00:00
dbaron%fas.harvard.edu
077fc4d427
Add some comments to code about issues that we should look at, remove some unused code, rename some unnecessarily-overloaded functions, fix some typos, and make a few minor style changes. b=88735 r=waterson sr=attinasi
2001-07-04 02:00:05 +00:00
waterson%netscape.com
b55568be36
Bug 59200. Merge floater reflow and placement into FlowAndPlaceFloater() to deal with the fact that a floater may need to be reflowed as its 'pushed' to a new location. For auto-width floaters, ensure that the floater is not flowed at a width less than its max-element-size. Enforce CSS2 section 9.5.1 rule [2] by maintaining mLastFloaterY in the reflow state. r=rbs, sr=attinasi.
2001-05-21 23:03:46 +00:00
rbs%maths.uq.edu.au
cd754102d3
Change the place where the ascent is grabbed in the case where the first line is a block. Needed to fix bug=78389 r=waterson
2001-05-19 09:53:59 +00:00
mjudge%netscape.com
62aec426fa
62971 sr= hyatt r=kin/waterson fix for changing how we find the line given an event point
...
this will now do a binary search muuuch faster worst case than before
2001-05-11 08:04:29 +00:00
waterson%netscape.com
7567c5e94d
Bug 76727. Remove redundancy from BRS_ISINLINEINCRREFLOW optimization; take advantage of existing control flow. Also, correct misc misspelling. r=rbs@maths.uq.edu.au; sr=attinasi@netscape.com
2001-05-03 20:11:50 +00:00
waterson%netscape.com
6584908739
Bug 77414. Break nsBlockReflowState out into its own files. sr=attinasi
2001-05-01 04:22:57 +00:00
waterson%netscape.com
31af8a6d5d
Bugs 76721, 76724. Remove vestigial |aDeltaY| argument from RecoverStateFrom() methods. Remove redundant implementation of GetAvailableSpace(). r=dbaron, sr=attinasi.
2001-04-28 02:34:58 +00:00
attinasi%netscape.com
6bec8d8990
b=70731 r=dcone sr=waterson - fixes crasher while printing
2001-03-14 06:45:41 +00:00
rods%netscape.com
1c8f290f5d
Don't paint blocks that shouldn't be painted when printing
...
Bug 67296 r=kmcclusk sr=attinasi
2001-03-08 02:46:44 +00:00
waterson%netscape.com
f5d1d74918
Bug 71181. Revert attinasi's changes for bug 70730.
2001-03-07 20:15:35 +00:00
attinasi%netscape.com
2026961bdd
Fix for printing crash when bulleted items have no bullet and we assume they do. Added assertion to help find the cause of the problem, and checks for null to prevent the crash. b=70730 r=dcone sr=waterson
2001-03-07 00:38:45 +00:00
rbs%maths.uq.edu.au
2b65370bf6
Shift frame-state bits in implementations to the 12 higher bits - bug 68411 r=karnaze sr=waterson
2001-02-23 12:42:12 +00:00
buster%netscape.com
a017796f68
bug 45152 (Typed text does not render in TextAreas with a horizontal scrollbar)
...
fixed by adding a flag in nsLineBox for the content of a line to mark it "forceInvalidate",
logic in nsLineLayout to set the line dirty for initial reflow of text frames,
and logic in block to check the new flag.
r=kin
2000-08-24 04:26:43 +00:00
rbs%maths.uq.edu.au
af8754b765
Enable the code to export the baseline out of the block frame code to support 'vertical-article: baseline' in table-cells. bug 10207. a:waterson@mozilla.org. was r:buster@netscape.com.
2000-07-28 09:18:15 +00:00
waterson%netscape.com
1a2ffa3da2
Bug 44709. Maintain renumbering depth on stack, instead of in a global. r=roc+moz@cs.cmu.edu
2000-07-28 09:02:34 +00:00
waterson%netscape.com
9bd4266798
Bug 19051. Remove code that computed and maintained nsTextRun. Instead, compute 'next text' when required by crawling the frame tree in nsLineLayout::FindNextText(). r=roc+moz@cs.cmu.edu
2000-07-27 05:16:08 +00:00
dbaron%fas.harvard.edu
d05d4bef76
Fix bug 43882 (dogfood+) by removing special handling of empty P elements. (Most of the diffs are whitespace changes.) This also fixes bugs 43369, 43991, and 18050. However, it exposes a few other issues as well (the most important of which, nuking top margins on first *normal flow* children of BODY and TD, was previously fixed only in some cases, but shouldn't be hard to fix in general). r=waterson
2000-06-29 22:03:42 +00:00
buster%netscape.com
9665a1c5fa
fixed bug 41757
...
file also contains some debug only code (disabled), another bug fix (also disabled), the removal of
some obsolete code that was already #ifdef'd out, and a bunch of new comments
r=mjudge, waterson
2000-06-11 22:14:33 +00:00
rbs%maths.uq.edu.au
1a36f0816d
[#ifdef MOZ_MATHML: not yet part of default build]. Export the baseline out of the block frame code to support 'vertical-align: baseline' in table-cells. bug 10207. r:buster@netscape.com. a:waterson@mozilla.org
2000-06-05 08:24:18 +00:00
buster%netscape.com
c1c9bfa09b
effectively removed area frame
...
work troy was holding in his tree
r=buster
2000-05-09 05:11:12 +00:00
troy%netscape.com
a8143dd431
b=36202 Patch from roc+moz@cs.cmu.edu that makes sure we invalidate if
...
necessary when pulling up frames
2000-04-19 03:12:13 +00:00
troy%netscape.com
e7c5adfb56
Made FindLineFor() public because I need to call it from the HTML reflow
...
state code
2000-04-14 04:05:58 +00:00
buster%netscape.com
1c6eca645a
bug 29595 (and others)
...
fixes layout of pages where a single line is impacted by 2 or more floaters
r=troy
2000-03-22 23:19:10 +00:00
dbaron%fas.harvard.edu
87e19c9cef
Fix event targetting bugs by using paint layers in GetFrameForPoint, testing for visibility, and trying GetFrameForPoint on additional views if one fails. r=joki@netscape.com(, hyatt@netscape.com) b=12232,20051,21304,24474,26785, and remaining issues from 23161.
2000-03-22 02:43:08 +00:00
troy%netscape.com
8a78d916a5
b=21657 a=chofmann@netscape.com Made "overflow list" a full fledged
...
child list and changed ReparentFrameView() to check it.
2000-01-22 01:16:50 +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
troy%netscape.com
f08e81815b
More work on getting block frames to incrementally update their
...
maximum width
2000-01-08 03:58:27 +00:00
hyatt%netscape.com
de2eaede42
Implementing a generalized recycler and arena for all layout frames. Hoping to improve
...
bug #9489 . Should also definitely fix bug #15916 . r=troy
1999-12-04 23:49:50 +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
kipp%netscape.com
ef6a9e0b86
r=troy; remove another 4 bytes from each block frame for a total of 10% today :-)
1999-11-03 00:42:12 +00:00
kipp%netscape.com
f6d66c6b92
r=troy; Shrink block frames by 4 bytes per instance by making the overflow-lines instance variable a frame property
1999-11-02 23:42:52 +00:00
troy%netscape.com
1585a751fb
Moved a bunch of stuff out to a nsIFrameDebug interface
1999-11-01 22:12:45 +00:00
kipp%netscape.com
0a512d8393
r=troy; reworked the way that blocks inside of inline elements are handled. It's all in the frame construction code now (bugs 15999, 16737)
1999-11-01 15:24:57 +00:00
troy%netscape.com
87afecabc0
Changed SetView/GetView to take an additional argument which is the
...
pres context
1999-10-26 04:44:41 +00:00
kipp%netscape.com
a5c69dc5af
Fixed O(N^2) debug logic bug; speed up paint loop by avoiding painting too much now that we have combined-area (bug 7455, 12297)
1999-10-19 23:04:19 +00:00
peterl%netscape.com
a6adfea707
Added namespace ID to the AttributeChanged notification
...
Part fo the fix for Bug 15153
r=troy
1999-10-15 23:16:45 +00:00
kipp%netscape.com
d29d16b728
r=troy; Cleaned up line-box API (prep work for bug #12297 ; more coming); Support new line iterator API change ( #16176 )
1999-10-12 23:24:22 +00:00
troy%netscape.com
72ee697f6c
Frame space reductions. r=kipp@netscape.com
...
Table cell frames and table caption frames now use block frames and not area
frames. This saves 24 bytes per frame instance
1999-10-08 04:32:46 +00:00
peterl%netscape.com
700674fb14
removed ReResolveStyleContext
1999-09-21 07:56:18 +00:00
kipp%netscape.com
becb3704d9
Fixed various bugs including incremental list reflow (9742) and some table bugs with right floaters
1999-09-17 23:16:43 +00:00
kipp%netscape.com
f4124f6283
Fixed bugs 4572, 7400 and maybe 802
1999-09-16 19:56:36 +00:00
kipp%netscape.com
6488f7b26e
Fixed various incremental reflow bugs (1764,12890,1910,2222) and list bullet painting bug (10675,13599)
1999-09-15 00:28:10 +00:00
kipp%netscape.com
7fe2679e86
Updated SizeOf methods to not waste space when doing a non-debug build
1999-09-01 01:02:16 +00:00
kipp%netscape.com
f808fbb193
Reimplemented SizeOf methods in some of the frame classes; partial rework of first-line handling snapshot
1999-08-31 03:09:40 +00:00
kipp%netscape.com
e40963e370
Reduce stack size by allocating nsLineLayout objects from the heap when the frame tree depth gets too big (bug #10310 )
1999-08-27 21:45:37 +00:00
troy%netscape.com
5e93e674c5
Fixed incremental painting problem
1999-08-01 16:50:52 +00:00
troy%netscape.com
c551fe3166
Renamed DeleteFrame() to Destroy()
1999-07-22 02:24:52 +00:00
kipp%netscape.com
02571dde05
Various and sundry bug fixes
1999-07-14 17:26:20 +00:00
troy%netscape.com
ee38ccd817
Changed Reflow() and ReflowDirtyLines() to invalidate the damaged areas
...
after an incremental reflow
1999-07-14 15:16:56 +00:00
kipp%netscape.com
4846f41f1f
Reworked frame factory methods; fixed bug 4519
1999-05-11 22:03:29 +00:00
kipp%netscape.com
8dfb604de1
Removed some cruft
1999-04-28 00:19:28 +00:00
kipp%netscape.com
9b854acf63
Added first letter support
1999-04-27 22:11:05 +00:00
kipp%netscape.com
065b96c776
Fixed up child incremental reflow to only reflow the necessary number of lines (hopefully)
1999-04-21 19:58:38 +00:00
kipp%netscape.com
44f26158bb
Fixed up insertion code to support inserting blocks; tweaked FirstChild impl to work better; removed some no longer needed code
1999-04-20 21:51:39 +00:00
kipp%netscape.com
d1c19b975e
Implement first-line support; update some api's to use nsIPresContext*'s instead of nsIpresContext&'s
1999-04-20 00:27:43 +00:00
joki%netscape.com
e4361b7994
Fix event handling on background areas of tags.
1999-04-13 21:29:08 +00:00
kipp%netscape.com
ce589ecd6e
Reworked the state recovery logic for incremental reflow
1999-04-03 18:59:01 +00:00
kipp%netscape.com
7799a4ecc0
Reflow floater frames using the block reflow context
1999-04-01 01:37:36 +00:00
kipp%netscape.com
b1b830e9e8
Added methods to support pre-collapsing of top-margins; expose class-id for nsBlockReflowContext code
1999-03-27 01:21:21 +00:00
kipp%netscape.com
d6f3145b96
Fixed bugs #1277 , #2007 and #1517 and #1918 ; rendering is improved for floaters and a minimim height rule is now enforced for computed-height situations
1999-03-26 00:39:04 +00:00
peterl%netscape.com
32d3372e42
augmented ReResolveStyleContext to capture style change information
1999-03-25 06:43:38 +00:00
kipp%netscape.com
a8cf737ef9
Redid ReflowFloater api
1999-03-23 04:25:20 +00:00
kipp%netscape.com
0c0dc2ebd7
Added GetDepth debug method
1999-03-22 22:41:09 +00:00
kipp%netscape.com
84ec5e1b82
Support redo-reflow for lines to handle reflow around large floaters
1999-03-21 01:15:12 +00:00
kipp%netscape.com
521d0a1247
Fix wide layout bug in todays build; fixed bug #4013 as well and bug #2589
1999-03-19 23:05:56 +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
kipp%netscape.com
2916ad11f9
Fixed numerous frame removed bugs (bug #3262 )
1999-03-16 19:36:00 +00:00
kipp%netscape.com
40529e4640
nsBlockReflowState no longer is-a nsHTMLReflowState; fixes to numerous bugs; reworked to use computed values from reflow-state
1999-03-05 04:21:32 +00:00
kipp%netscape.com
a8d4b57b12
Find text runs more often (bug #3278 , 3265); floaters are now handled mostly by the frame construction code
1999-02-26 17:04:44 +00:00
troy%netscape.com
3bdf672129
Removed nsIFrame::CreateContinuingFrame()
1999-02-25 05:31:15 +00:00
vidur%netscape.com
93609d0604
Added nsIStyleSheetLinkingElement interface and implemented it for LINK and STYLE elements. Got attribute modifications for lists and list items working (including correct renumbering of lists when attribute values change).
1999-02-23 19:18:12 +00:00
kipp%netscape.com
c972607d82
Process bullets better so that they are vertically aligned properly
1999-02-18 22:22:55 +00:00
kipp%netscape.com
36c243cdc0
COMized nsIPresShell and nsIPresContext
1999-02-12 17:45:58 +00:00
troy%netscape.com
2ac7b86865
Changed GetAdditionalChildListName() and FirstChild() to use ** instead
...
of *&
1999-02-10 02:25:01 +00:00
kipp%netscape.com
6953c4a7c8
Whacked away nsBaseIBFrame and BLOCK_IS_INLINE cruft
1999-02-09 17:31:33 +00:00
kipp%netscape.com
361ca345fb
Changed base-ib-frame to implement AppendFrames/InsertFrames/RemoveFrame directly; changed args to DoRemoveFrame; updated the anonymous block to have a slightly different method set to manipulate its children
1999-02-02 17:31:09 +00:00
kipp%netscape.com
859dde6287
Renamed InsertNewFrame->s; defined nsAnonymousBlock class
1999-02-01 17:28:39 +00:00
kipp%netscape.com
7f96144059
Spanked away SizeOf methods and nsIListFilter
1999-01-16 00:00:50 +00:00
kipp%netscape.com
4243726f6a
Switch to using nsFrameList for frame lists
1999-01-15 22:53:39 +00:00
kipp%netscape.com
50b331f35c
Reinstated the last set of checkins that were backed out
1999-01-05 23:01:54 +00:00
donm%netscape.com
9b2666a111
backing out changes against a long red tree. would like to clear
...
the hook. -donm
1999-01-05 18:16:05 +00:00
kipp%netscape.com
3a981f0215
Removed aPrevSibling from DoRemoveFrame's arg list
1999-01-05 17:49:44 +00:00
kipp%netscape.com
40c2cfef07
Fixed numerous compiler warnings (hopefully) from the mac build
1998-12-18 17:34:34 +00:00
kipp%netscape.com
c29e5116c7
Revised frame Paint API
1998-12-18 15:54:23 +00:00
kipp%netscape.com
b5ddc4184d
Clean up max-element-size computations; added code to remove empty lines (disabled for now)
1998-12-17 18:52:10 +00:00
kipp%netscape.com
c2c34891ef
Factored out floater sliding from SlideFrames; Added the dy value to the RecoverState method
1998-12-12 19:18:28 +00:00
troy%netscape.com
7ec6a2c281
Added new atoms to nsLayoutAtoms for additional named frame child lists
1998-12-09 05:30:17 +00:00
kipp%netscape.com
be0240395a
Added DeleteLine method
1998-12-07 22:28:23 +00:00
kipp%netscape.com
907f06864c
Major spankage; refactored code; common base class for block/inline frames
1998-12-05 16:02:08 +00:00
troy%netscape.com
2a4b2c503f
Added Init() member function to nsIFrame
1998-12-03 06:31:43 +00:00
kipp%netscape.com
157425553e
Override FrameForPoint so that floaters/bullets get events
1998-11-19 18:09:57 +00:00
kipp%netscape.com
a6926809f0
Added DumpRegressionData; revised ListTag; added GetFrameName
1998-11-19 17:22:29 +00:00
troy%netscape.com
9d1564cf4a
Added some constants to use when referring to child list name indices
1998-11-18 06:13:58 +00:00
kipp%netscape.com
389de1de86
Added in nsHTMLReflowState argument to ReflowFrame so that callers can properly initialize it
1998-11-17 01:04:21 +00:00
troy%netscape.com
d6a65c024a
Split class declaration out into a separate header file so the body frame
...
can be a derived class
1998-11-16 17:11:12 +00:00
kipp%netscape.com
8244706ce7
nuked
1998-09-23 20:11:22 +00:00
kipp%netscape.com
be50f363a2
Spanked hard to reorg code around nsInlineReflow; rework list handling; rework factoring of inline/block reflow
1998-09-23 02:25:26 +00:00
troy%netscape.com
9adcf5d319
Cleaned up frame construction code
1998-09-17 04:07:58 +00:00
kipp%netscape.com
8f2807a027
Removed css/layout directory
1998-09-15 00:19:49 +00:00
kipp
1a446c2e3f
New and improved (?) line layout
1998-06-25 16:33:10 +00:00
troy
f8b11bcac8
Changed block to do the initial reflow of a floater. Also fixed a problem
...
with floated tables crashing
1998-06-10 05:33:38 +00:00
kipp
cacb19b895
Updated reflow-inline-child to handle the new nsIInlineFrame api
1998-06-09 17:32:27 +00:00
kipp
e3bb53161d
Added mPrevMarginSynthetic flag
1998-06-04 17:49:29 +00:00
kipp
9be24b0fac
Added SetFirstChild; made line layout a friend of block frame
1998-06-01 23:37:55 +00:00
kipp
9191e6894f
Partial support for BR clear behavior
1998-05-30 17:45:15 +00:00
troy
7a485fcc40
Changed nsReflowState structs to be linked together
1998-05-29 20:36:05 +00:00
kipp
24a708a050
Consolidated list handling state variables
1998-05-29 18:25:14 +00:00
kipp
8bf7e83385
Removed some unused list layout cruft
1998-05-29 02:33:50 +00:00
kipp
b9d5409399
Added list state for line layout
1998-05-29 02:11:38 +00:00
troy
4910a3a407
Added 'ns' prefix to class name
1998-05-28 02:37:37 +00:00
troy
3ea1d2d8e3
Merged ResizeReflow() and IncrementalReflow() into one Reflow() member function
1998-05-25 17:31:49 +00:00
troy
6204c78831
Changed splittable enum to be bit flags
1998-05-22 04:54:11 +00:00
troy
d0e4da316d
Some work in progress for incremental floaters
1998-05-22 02:38:41 +00:00
kipp
4478350128
Added in mDeltaWidth to block reflow state
1998-05-20 16:26:46 +00:00
kipp
df1f69f0cd
Moved margin code into line layout
1998-05-12 23:49:40 +00:00
troy
5b69e1f043
Change to nsIFrame API
1998-05-12 04:17:56 +00:00
troy
9f30b1be63
Wrapped VerifyLines() inside of a NS_DEBUG #define
1998-05-11 18:54:15 +00:00
troy
e0a3f308d8
Work in progress on block incremental reflow
1998-05-09 03:52:29 +00:00
kipp
a14e3f23b2
Support width & height ala css1
1998-05-07 21:50:56 +00:00
kipp
519a6403a4
Ported to new CreateFrame/CreateContinuingFrame APIs
1998-05-07 00:08:20 +00:00
troy
d477d86672
Frames no longet store the content index-in-parent
1998-05-05 23:56:50 +00:00
troy
a388f68a46
Added ComputeDesiredRect() to share some common code between DoResizeReflow()
...
and IncrementalReflow()
1998-05-03 04:57:29 +00:00
kipp
fa2e5e968b
Spanked nsBlockFrame: newly rewritten, broken into two pieces (see nsLineLayout.h,.cpp for the line layout code)
1998-05-02 00:56:24 +00:00
kipp
93fdfbe671
Port to removal of nsStyleMolecule
1998-04-25 18:48:48 +00:00
troy
aee599dd97
Made it so that continuing frames have a top margin of 0
1998-04-20 04:37:49 +00:00
troy
e1e6d470ff
Changed IsSplittable to have three return values
1998-04-17 23:08:20 +00:00
troy
3ce8e88882
Changed nsIFrame member functions to return a nsresult
1998-04-17 01:41:24 +00:00
kipp
098bef52b4
moved to pub
1998-04-13 20:24:54 +00:00