850 Commits

Author SHA1 Message Date
roc+%cs.cmu.edu
bc82fb52fd Bug 256937. Use state bits to avoid expensive property lookups in GetOverflowLines/OutOfFlows/Placeholders. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@161296 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-26 03:07:05 +00:00
roc+%cs.cmu.edu
137e8af6e1 Bug 252920. Compute the block overflow area using nsRects instead of some hokey homegrown calculations. Don't advancy mY for empty lines. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@161228 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-25 13:10:06 +00:00
bryner%brianryner.com
ff2bc0b69e Trying again to land support for content node properties (bug 253888). r=jst, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@161182 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-24 18:50:29 +00:00
bryner%brianryner.com
2ac3245dec Backing out 253888 again due to Tp regression plus another problem I noticed (frame properties not getting destroyed on frame destruction)
git-svn-id: svn://10.0.0.236/trunk@161116 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-22 07:10:50 +00:00
bryner%brianryner.com
0501b2872a Second try at landing support for content node properties (bug 253888). r=jst, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@161115 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-22 04:58:44 +00:00
roc+%cs.cmu.edu
d7e985e5cb Bug 253977 backout because of possible Tp regression on btek.
git-svn-id: svn://10.0.0.236/trunk@161114 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-22 03:50:59 +00:00
roc+%cs.cmu.edu
34b5eca02a Bug 253977. Fix a few columns-hurting block bugs. 1) Always drain overflow lines on any kind of block reflow. 2) Set NS_FRAME_REFLOW_NEXTINFLOW in the reflow status whenever reflow of the block's next-in-flow is required. 3) Search overflow lines when we're looking for frame continuations to delete. 4) Show overflow area in nsContainerFrame frame dump. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@161113 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-22 03:00:46 +00:00
bryner%brianryner.com
03c6a8279c Backing out bug 253888 until I can figure out how to fix the crash
git-svn-id: svn://10.0.0.236/trunk@161097 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-21 06:27:54 +00:00
bryner%brianryner.com
e49f4fa38e Refactor the frame property code and use it for supporting properties on dom elements. Bug 253888, r=jst, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@161096 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-21 05:09:50 +00:00
bzbarsky%mit.edu
d780829a69 Addendum to bug 253572 patch per dbaron's comment in the bug.
git-svn-id: svn://10.0.0.236/trunk@160644 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-11 00:17:54 +00:00
bzbarsky%mit.edu
420b97695b Make sure that GetFrameForPoint checks all layers of each float before moving
on to the next one.  Bug 253572, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@160632 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-10 22:24:00 +00:00
dbaron%dbaron.org
dda1e6cda9 Fix names of constants to correspond to the new definitions of the values of the 'overflow' property. b=69355 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@160586 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-10 01:32:10 +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
roc+%cs.cmu.edu
33f365524b Bug 253195. Fix a really nasty data corruption bug in nsBlockFrame::DoRemoveFrame, that only shows up when you need to delete inline continuations that are in a continuation of the current block --- probably doesn't happen today, but will happen with columns and page-layout editing. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@159919 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-27 18:22:14 +00:00
aaronleventhal%moonset.net
68db552d54 Bug 151375. Implement css2 outline (still called -moz-outline for now). Makes -moz-outline draw outside of the current frame. Improves appearance of focus outline. Lots of help from roc. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@159341 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-16 16:56:21 +00:00
aaronleventhal%moonset.net
aac51e9f0b Backing out bug 151375 for now, because of scrolling regressions in HTML and XUL listboxes and comboboxes
git-svn-id: svn://10.0.0.236/trunk@159268 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-15 18:57:47 +00:00
jim_nance%yahoo.com
b0e12359c6 Fix But #250105 - Add Arena for nsLineLayout buffers. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@159260 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-15 17:50:34 +00:00
aaronleventhal%moonset.net
c361ea9f16 Bug 151375. Implement css2 outline (still called -moz-outline for now). Makes -moz-outline draw outside of the current frame. Improves appearance of focus outline. Lots of help from roc. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@159196 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-14 21:58:34 +00:00
roc+%cs.cmu.edu
3f608a1e75 Bug 244017. Hack invalidation of block children of blocks to avoid answering the question of whether we're supposed to invalidate the difference in frame bounds or the difference in overflow areas. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@158572 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-29 12:46:46 +00:00
roc+%cs.cmu.edu
2027d59c0d Bug 185357. Collect out-of-flow frames for overflowing placeholders even if the placeholders are indirect (inline) children of the line. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@158527 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-27 02:01:06 +00:00
smontagu%smontagu.org
221c341396 Bug 140611: When a block element is first in RTL <LI>, bullet moves left. patch by Lina Kemmel lkemmel@il.ibm.com, r=smontagu, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@158206 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-20 09:51:10 +00:00
aaronleventhal%moonset.net
0324f45a91 Fixing bustage
git-svn-id: svn://10.0.0.236/trunk@157411 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-04 21:08:05 +00:00
aaronleventhal%moonset.net
540e86edb5 Bug 242594. Expose list and list item objects, and bullet text. r=Louie.Zhao, sr=jst/dbaron
git-svn-id: svn://10.0.0.236/trunk@157409 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-04 19:28:36 +00:00
smontagu%smontagu.org
d1a1c12261 DeCOMtaminate nsIFrame Set/GetProperty and merge Set/GetBidiProperty with it. Bug 117751, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@157214 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-01 06:20:16 +00:00
dbaron%dbaron.org
b2ffb0b6b5 When we do two passes on an incremental reflow in order to update maximum width, do max-element-width calculation on the second pass too so that floats have their max-element-width cached for state recovery. b=217527 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@157181 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-31 17:41:50 +00:00
roc+%cs.cmu.edu
c35d4c6753 Bug 230417. When a placeholder frame lands in a block's overflowList, put its out of flow frame in a new child list, overflowOutOfFlowsList
git-svn-id: svn://10.0.0.236/trunk@155964 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-05 02:30:33 +00:00
dbaron%dbaron.org
39913966e5 Remove hacks no longer needed since text inputs became reflow roots (instead of using the IncrementalDamageConstrained hack. b=241833 r+sr=rbs
git-svn-id: svn://10.0.0.236/trunk@155945 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-04 23:56:25 +00:00
dbaron%dbaron.org
53aba73d28 Only call SetLineWrapped when line doesn't end in BR. b=238472 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@155409 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-23 19:27:14 +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
tor%cs.brown.edu
996688b00b Bug 240274 - remove PopState() argument. r=blizzard, sr=bryner
git-svn-id: svn://10.0.0.236/trunk@155061 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 13:13:35 +00:00
bzbarsky%mit.edu
138778b97e When appending frames to a block after a <br>, just put them into a new line
right away instead of waiting for reflow to come about and fix it up.  This
speeds up things that append nodes including <br> to a block one at a time
(e.g. editor or content scripts) Bug 240291, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@154754 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-13 01:45:57 +00:00
bzbarsky%mit.edu
3cf94c63dd Fix dirty reflows of bullets to deal with an empty first line (whitespace
followed by block) in the parent block.  Bug 206602, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@154752 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-13 01:38:10 +00:00
bryner%brianryner.com
2359d2f7c4 More nsIPresContext deCOMtamination (bug 229371). r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@154743 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-13 00:28:44 +00:00
bzbarsky%mit.edu
90dc43345e Don't do a O(N) walk over all lines when painting floats, since we already have
a nice sorted list of floats about.  Bug 52005, r+sr=dbaron, a=brendan


git-svn-id: svn://10.0.0.236/trunk@154651 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-09 21:08:09 +00:00
bzbarsky%mit.edu
0d643a702e Change the way regression tests get the framestate to make it possible to mask
out irrelevant state bits as needed.  Apply this to NS_BLOCK_HAS_LINE_CURSOR.
Bug 237955, r+sr=roc, a=dbaron


git-svn-id: svn://10.0.0.236/trunk@154500 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-04 01:48:16 +00:00
bzbarsky%mit.edu
f979394977 Clear the line cursor when child frames are added or removed. Bug 236947,
r+sr=roc, a=chofmann


git-svn-id: svn://10.0.0.236/trunk@153961 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-14 18:19:24 +00:00
dbaron%dbaron.org
1a94650e48 DeCOMify nsIFrame::IsPercentageBase and rename to IsContainingBlock. b=237169 r+sr=bzbarsky a=brendan
git-svn-id: svn://10.0.0.236/trunk@153898 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-12 04:40:17 +00:00
roc+%cs.cmu.edu
44185c6657 Bug 235264. Clean up invalidation to go through a single nsIFrame::Invalidate function and take account of 'outline' where necessary. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@153808 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-10 03:09:05 +00:00
roc+%cs.cmu.edu
8da34bf465 Fixing bustage, hopefully
git-svn-id: svn://10.0.0.236/trunk@153652 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-07 18:50:11 +00:00
roc+%cs.cmu.edu
b3c7e5391b Bug 51938. Cache recently accessed line if the lines' combinedArea.y/ymosts are nondecreasing --- speeds up painting and event handling on large blocks. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@153649 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-07 18:04:24 +00:00
bryner%brianryner.com
d956db112f Get rid of nsIFrameManager abstract interface to the frame manager. Bug 233972, r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@153111 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-23 21:29:06 +00:00
bryner%brianryner.com
3191a1feaa Inline boolean getters and setters on nsIPresContext, and change the storage to a bitfield. Bug 229371, r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@153018 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-20 17:49:01 +00:00
dbaron%dbaron.org
251f155cb8 A little cleanup. b=229654 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@152538 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-09 05:22:58 +00:00
dbaron%dbaron.org
c4c24f87d6 Allow PushLines to push the first line. b=185357 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@152230 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-03 18:19:42 +00:00
bryner%brianryner.com
e46f7c8143 More nsIPresContext deCOMtamination (bug 229371). Removed GetBaseURL, rename GetMedium to Medium and inline it, remove virtual style resolution methods that forward to style set (callers will call style set methods directly). Removed PresContext parameter to StyleSet style resolution functions. r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@151927 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-28 00:18:22 +00:00
dbaron%dbaron.org
3057f6fb34 Fix a bunch of errors in incremental computation of maximum width and max-element-size that were causing incremental reflow bugs. b=39683, 217369 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@151892 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-27 05:47:55 +00:00
dbaron%dbaron.org
132de00da5 Change name of variable so this code makes sense.
git-svn-id: svn://10.0.0.236/trunk@151804 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-24 20:21:32 +00:00
cbiesinger%web.de
ccedbc4f4e Bug 231372
GetCombinedArea could be faster/better
make it return an nsRect as return value instead of out parameter.
r=dbaron sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@151690 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-22 15:06:25 +00:00
dbaron%dbaron.org
2f4f03a4d2 Use |const|. DEBUG-only.
git-svn-id: svn://10.0.0.236/trunk@151663 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-21 23:08:51 +00:00