Commit Graph

165 Commits

Author SHA1 Message Date
dbaron%fas.harvard.edu
b44062eae4 Consider whitespace in quirks-mode line-height algorithm when it's in the middle of the line. b=134580 r=attinasi sr=waterson 2002-05-01 00:42:49 +00:00
karnaze%netscape.com
3a172cbd87 bug 124637 - when figuring available width for HRs subtract out both margins. a=asa, sr=attinasi, r=alexsavulov. 2002-03-20 22:14:27 +00:00
smontagu%netscape.com
2ef941a509 Improve performance by making nsWordFrame in nsLineLayout an nsDeque instead of an nsAutoVoidArray. Bug 121967, r=timeless, sr=attinasi, a=asa 2002-03-19 21:57:45 +00:00
rbs%maths.uq.edu.au
2da1544c38 Fix bug 101180 - the minimum line-height wasn't applied at the first reflow, causing the line to flicker at the next reflow, r=dbaron, sr=attinasi, a=asa 2002-03-15 08:03:18 +00:00
smontagu%netscape.com
37ebf6848d Converting bidi utilities to non-XPCOM interfaces. Bug 120818; r=mkaply, nhotta; sr=attinasi 2002-02-19 20:41:32 +00:00
waterson%netscape.com
a04e667ef4 Bug 46918, 3490. Clean up inline margin handling. r=rbs, sr=kin 2002-01-30 23:28:56 +00:00
timeless%mac.com
61a97fd94a Bugzilla Bug 106386 rid source of these misspellings: persistant persistance priviledge protocal editting editted targetted targetting
r='s from many people. sr=jst
2001-12-23 23:23:41 +00:00
waterson%netscape.com
854831c91c Bug 115113. Eliminate nsIReflowCommand, and just use nsHTMLReflowCommand directly. r=karnaze, sr=attinasi. 2001-12-17 22:39:59 +00:00
smontagu%netscape.com
d046c2bbb2 Fix for bug 108187, Indent wrong on RTL paragraph in Hebrew, r=dbaron, sr=attinasi. As well as fixing the bug, the patch moves the code for text-indent out to nsLineLayout::BeginLineReflow 2001-12-11 02:45:44 +00:00
karnaze%netscape.com
748ebbcd0d bug 113424 - mechanism for percent height frames inside table cells to receive special height reflow. sr=attinasi, r=alexsavulov 2001-12-07 14:51:12 +00:00
bernd.mielke%snafu.de
ae2373f749 whitespace nowrap should not affect in quirks mode hr's size bug 60992
r=karnaze sr=attinasi
2001-12-06 20:14:10 +00:00
smontagu%netscape.com
68c01ded67 Fix for Bug 17644 [INLINE-H] negative text-indent paragraphs starting with images, r=dbaron, sr=roc+moz 2001-12-03 23:30:32 +00:00
roc+%cs.cmu.edu
c88233916b Bug 73382. Clean up view manager interfaces, 2nd attempt. r=kmcclusk,rs=attinasi 2001-12-01 14:31:45 +00:00
attinasi%netscape.com
ca54f79ce1 null-ptr check for talkback crash that I cannot duplicate. b=105168 r=karnaze sr=hyatt 2001-11-29 00:10:31 +00:00
roc+%cs.cmu.edu
c26c9711f3 My cleanup checkin for bug 73382 caused 5% increase in page load times. Backing out. 2001-11-24 05:37:25 +00:00
roc+%cs.cmu.edu
04ab1d58c5 View manage interface cleanup. Bug 73382. r=kmcclusk, sr=attinasi 2001-11-22 05:26:32 +00:00
dbaron%fas.harvard.edu
6e86902faa Remove unnecessary XPCOM interface around nsSpaceManager. b=102453 r=jag sr=waterson 2001-10-26 05:06:07 +00:00
dbaron%fas.harvard.edu
157c017816 Bug 86947:
Make the line list doubly linked and access it through a list class and iterators.
Stop recomputing margins on all of the children of each block in the reflow chain (which causes O(N^2) state recovery during incremental reflow).  Instead, add a second dirty bit to the lines and walk backwards through the line list to recompute vertical margins only when either dirty bit is set and the previous line was not reflowed.  Add nsIFrame::IsEmpty to identify frames through which margins collapse.
Fix O(N^2) propagation of float damage by maintaining a set of intervals damaged by floats (bug 61962) and be sure to damage the correct areas (bug 48138).
Introduce nsCollapsingMargin to do correct collapsing of combinations of positive and negative margins (bug 50142).
Clean up some odds and ends and fix another smaller O(N^2) problem in nsBlockFrame::AddFrames.
r=attinasi, rbs  sr=waterson
2001-10-25 01:08:40 +00:00
attinasi%netscape.com
4d5175753d Fixed image wrapping in tables problems. b=101674 sr=hyatt r=waterson 2001-09-28 21:42:03 +00:00
gerv%gerv.net
4e12e44b2f Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089. 2001-09-28 20:14:13 +00:00
rbs%maths.uq.edu.au
5b02d7ca8a bug 99010 - font changes. r=attinasi@netscape.com, sr=waterson@netscape.com 2001-09-27 18:34:30 +00:00
attinasi%netscape.com
c4b5ba5576 Don't allow consecutive images to wrap in table cells with percentage width. r=kmcclusk sr=waterson b=100568 2001-09-25 06:31:46 +00:00
attinasi%netscape.com
6787cc3c9b Fixing erroneous addition to previously reviewed and approved patch: b=97619 r=bernd sr=waterson 2001-09-17 23:13:57 +00:00
attinasi%netscape.com
6507d5d128 Fix for image wrapping problems in table cells. b=97619 r=bernd sr=waterson 2001-09-08 19:26:34 +00:00
attinasi%netscape.com
0cbc8f3b4f Inline images no longer break text runs. b=32191 r=bernd,dbaron sr=waterson a=asa(obod) 2001-08-29 22:59:09 +00:00
waterson%netscape.com
123a705ccd Bug 87543. Don't try to do arithmetic when psd->mRightEdge == NS_UNCONSTRAINEDSIZE. r=rbs, sr=attinasi 2001-07-04 06:07:14 +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
hyatt%netscape.com
b135c5b55a Fix for 78695 (rule matching improvements). r/sr=attinasi, jst, waterson 2001-05-31 22:19:43 +00:00
ftang%netscape.com
5938ccae19 fix bug 80552 r=ftang r/sr=jst
check in for simon@softel.co.il
change BidiEnable to GetBidiEnable
2001-05-16 13:40:08 +00:00
attinasi%netscape.com
2221772542 Fixed handling of empty line after a bullet in QuirksMode. b=75963 r=karnaze@netscape.com sr=waterson@netscape.com a=brendan 2001-04-19 21:54:35 +00:00
erik%netscape.com
3f8707c9fb bug 74946; author=simon@softel.co.il; r=erik; sr=attinasi; diffs from IBM
bidi project (e.g. Arabic, Hebrew)
2001-04-11 23:32:21 +00:00
attinasi%netscape.com
28d86e436d Empty inlines now take up space in the line, fixing problem where the backtround images for those elements were not showing up even if they had sufficient padding. b=21415 r=karnaze, sr=waterson 2001-03-29 06:39:40 +00:00
pierre%netscape.com
9af01acf22 Reinstate my changes that were backed out 10 days ago. #43457 split nsStyleSpacing into 4 smaller structures: nsStyleBorder, nsStylePadding, nsStyleMargin, nsStyleOutline. r=attinasi,sr=buster. 2001-02-07 09:57:26 +00:00
dbaron%fas.harvard.edu
6a1cef6f9a Remove trailing semicolons after all uses of MOZ_DECL_CTOR_COUNTER to quiet build warnings on Mac. b=60415 a=brendan@mozilla.org 2001-01-27 23:06:33 +00:00
dbaron%fas.harvard.edu
36c966b9e9 Backing out pierre's change from 1/20 for performance reasons (66263). r=attinasi, a=granrose, phil 2001-01-25 03:23:19 +00:00
pierre%netscape.com
62bf433a35 #43457 split nsStyleSpacing into 4 smaller structures: nsStyleBorder, nsStylePadding, nsStyleMargin, nsStyleOutline. Review=attinasi. Pending Approval: buster. 2001-01-20 22:46:54 +00:00
buster%netscape.com
9adbc64e63 bug 54850 crash when plugin has an inline parent
r=av, r=peterl
a=waterson
2000-10-30 04:11:59 +00:00
warren%netscape.com
cd56c0575b Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc. 2000-10-28 22:17:53 +00:00
warren%netscape.com
9a6d92a433 Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson 2000-10-27 22:43:51 +00:00
waterson%netscape.com
20edcce927 Bug 56115. Be sure to determine if CanContinueTextRun() while walking *down* as well as across. r=buster, a=sfraser 2000-10-13 00:44:53 +00:00
waterson%netscape.com
072a02200b Bug 54005. Test if frame CanContinueTextRun() before advancing to its sibling. r=karnaze, a=buster 2000-10-09 22:03:03 +00:00
buster%netscape.com
2c272b9573 bug 54980
bug 50480 (list-item marker of link list overlaps)
r=karnaze
a=waterson
2000-10-04 04:17:36 +00:00
buster%netscape.com
8b236e6e67 bug 50758 (text-align:right for text control doesn't render as you type)
r=sfraser
a=waterson
We now invalidate the line explicitly if text-align:right is set, because
our incremental painting is biased towards frames that grow to L2R.  This
is a heavy-handed workaround, but it ends up doing very little extra invalidation,
and uses an already existing mechanism by just setting an existing flag.
2000-09-21 06:03:39 +00:00
buster%netscape.com
829ab5c58e just cleaning up a warning, found during fix for bug 52307 2000-09-14 05:50:56 +00:00
buster%netscape.com
05f2509eec checking in fix for unix compiler, stupid nsCOMPtr x-platform incompatibility. 2000-09-11 21:43:46 +00:00
buster%netscape.com
11241fb485 bug 14280
nsTextTransformer.cpp.
  I moved where we translate the nbsp to a (ascii 32 space character) until after the i18n routines are called, so they can properly account
  for the space as non-breaking and therefore part of the first word in the block.

bug  39901 and 38396
  nsHTMLImageLoader.*, nsImageFrame.cpp
  I backed out the bad fix for 38396, and put in a new fix where I store a little state in the image loader flags for cases where the image
  gets an unconstrained reflow and has %-based width.  This does not handle %-based min-width or max-width, that would be a separate
  bug that I'll file shortly.  But this fixes the vast majority of real cases out there.

bug  18754
  nsHRFrame.cpp, quirks.css, nsCSSFrameConstructor.cpp, last part of nsLineLayout.cpp
  in quirks mode, I changed HR from a block element to a replaced inline element that acts like a block, using generated content to get
  newlines before and after the HR.  This isn't ideal, but it gets us backwards compatibility, and ian and dbaron have blessed the approach.

bug  50257
  nsLineLayout.cpp
  Did a couple of things in here:
       * The actual fix is controlled by FIX_BUG_50257 #define symbol.  This basically says that an break (BR) will always fit on a line.
         A more general solution would probably be to round up to the nearest pixel, and if the thing is less than a pixel make it fit on a
         line.  This is a wimpier, safer solution.
       * I noticed that the way we got the compatibility mode was way out of date, very wasteful.  So I fixed that.
       * I noticed that there were a bunch of redundant SetFlag calls.  Since the flag variable is initialized to 0, setting a flag to 0 on a newly
         created object is a waste.

  nsBlockFrame.cpp  --  just added a comment to some odd looking code, to make sure no one comes along later and breaks it
2000-09-11 21:15:02 +00:00
buster%netscape.com
37e900a62c bug 28811
r=karnaze
The problem was we were over-eager in optimizing away a resize reflow for lines
that contain %-aware children.  We were only looking at the first-level children
of a line, not all the children.  Now, we compute a bit for each inline container
based on it's children, true if any of them are %-aware wrt any width measurement.
We propogate this bit upwards to a bit on the line itself, and check this bit during reflow.
2000-09-11 20:46:44 +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
waterson%netscape.com
4896ee6d33 Bug 46693. Check to see if we CanContinueTextRun() while walking over the frames to FindNextText(). This revives the logic that I nuked when fixing 19051, and keeps you from trying to walk over <br> or other frames to erroneously continue a text run. r=akkana. 2000-07-28 22:29:28 +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