137 Commits

Author SHA1 Message Date
dveditz%cruzio.com
e26895f495 Bug 429968. Handle situations where first-letter text detects first-letter style should not be applied, by creating a zero-length 'first letter'. patch by roc, r+sr=dbaron, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257209 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-16 19:37:37 +00:00
dholbert%cs.stanford.edu
2fa4de5805 (Patch #1 to fix Bug 431260) Patch for Bug 431341 - Include floating first-letter text when we build textruns for a paragraph, because we want nsLineBreaker to see the text for capitalization analysis. Make sure that textrun construction for floating first-letter text uses the block as its scope. And make sure we reconstruct textruns after determining the first-letter length, so that ligatures are broken as necessary. Patch by Robert O'Callahan <robert@ocallahan.org> r=smontagu
git-svn-id: svn://10.0.0.236/trunk@256331 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-26 20:12:49 +00:00
masayuki%d-toybox.com
d5d7f20c6e Bug 392785 overflowed underline sometimes is not repainted at scrolling r+sr=roc b1.9=dbaron
git-svn-id: svn://10.0.0.236/trunk@245831 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-16 15:31:33 +00:00
roc+%cs.cmu.edu
8c3ef7bff3 Bug 400813. Text with font-size:0 should not make a line be treated as empty. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@245685 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-14 09:08:34 +00:00
roc+%cs.cmu.edu
34c5fac9d2 backing out bug 400813 again due to reftest failure...
git-svn-id: svn://10.0.0.236/trunk@245444 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-12 02:48:17 +00:00
roc+%cs.cmu.edu
bd8265060a Bug 400813. Lines with font-size:0 content should not be treated as empty. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@245441 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-12 01:42:14 +00:00
roc+%cs.cmu.edu
d0b0f232b1 Backing out 400813, sigh
git-svn-id: svn://10.0.0.236/trunk@244517 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-30 07:35:05 +00:00
roc+%cs.cmu.edu
2408e4c5e6 Bug 400813. Lines with actual content that just happens to be zero-width should be treated as non-empty. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@244510 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-30 07:12:27 +00:00
dbaron%dbaron.org
1dd488f200 Remove unused height output from nsLineLayout::EndSpan. b=407086 r+sr=roc a=dsicore
git-svn-id: svn://10.0.0.236/trunk@240947 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-12 21:51:18 +00:00
roc+%cs.cmu.edu
6cdf26cc6c Bug 407111. Correctly set whether a break opportunity after non-text content fits. r+sr=dbaron,a=schrep
git-svn-id: svn://10.0.0.236/trunk@240602 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-07 09:17:19 +00:00
dmose%mozilla.org
0714b46c51 Backing out fix for bug 392785 as per roc + mconnor.
git-svn-id: svn://10.0.0.236/trunk@240455 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-04 23:32:09 +00:00
masayuki%d-toybox.com
425bca40e0 Bug 392785 overflowed underline sometimes is not repainted at scrolling r+sr=roc, b1.9=dbaron
git-svn-id: svn://10.0.0.236/trunk@240281 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-03 06:51:59 +00:00
roc+%cs.cmu.edu
50ac1632d1 Bug 393096. Allow an element containing breakable whitespace to introduce a break opportunity no matter what the context. Also cleans up some trimming stuff and adds comprehensive whitespace breaking and trimming reftests. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@237953 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-20 07:30:27 +00:00
tglek%mozilla.com
1b2f5bc689 Clean up prbool misuse in layout. bug 398312, r+sr+a=dbaron
git-svn-id: svn://10.0.0.236/trunk@237496 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-10 00:00:06 +00:00
roc+%cs.cmu.edu
6351387599 Bug 392829. Clean up nsLineLayout code that's not used (or at least used differently). r+sr+a=dbaron
git-svn-id: svn://10.0.0.236/trunk@237043 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-02 02:36:26 +00:00
roc+%cs.cmu.edu
44e8f1fb7a Bug 96041. Compute precise glyph extents for high-quality text, and when requested. r=vlad,r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@236536 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-24 02:19:16 +00:00
roc+%cs.cmu.edu
a0eb13a375 Backing out due to test bustage
git-svn-id: svn://10.0.0.236/trunk@236492 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-22 13:28:17 +00:00
roc+%cs.cmu.edu
48a9ae898b Bug 96041. Compute true glyph bounding metrics. r=vlad,dbaron,sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@236491 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-22 12:43:55 +00:00
roc+%cs.cmu.edu
e5b5169706 Bug 383551. Clean up IsInlineFrame, nsStyleDisplay::IsBlockLevel and related methods. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@228806 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-27 02:31:35 +00:00
roc+%cs.cmu.edu
0fe9131095 Bug 381130. Small changes to layout to fix an inline reflow bug and add a new API to nsLineLayout to support tab stops. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@226699 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-21 03:46:22 +00:00
roc+%cs.cmu.edu
c5bc6fd3ff Bug 369227. Record the first soft break beyond the available width, if there isn't one within the available width. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@220621 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-21 01:52:03 +00:00
dbaron%dbaron.org
c380d24c54 Combine the code that tests inlines for dependence on the containing block width in order to disable resize reflow optimizations, and add to that code things that shrink wrap (inline-block, inline-table, buttons, fieldsets). Also move the percentage-height tests out, and into InitResizeFlags. b=163504 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@219046 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-27 18:40:26 +00:00
dbaron%dbaron.org
103e95ab15 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
git-svn-id: svn://10.0.0.236/trunk@218785 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-23 04:06:56 +00:00
roc+%cs.cmu.edu
29067fe44b Bug 333659. Relanding nsLineLayout API changes for new text code. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@218576 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-18 01:20:09 +00:00
roc+%cs.cmu.edu
09049cfebe Backout of nsLineLayout changes; trying to fix luna orange
git-svn-id: svn://10.0.0.236/trunk@218497 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-17 06:27:01 +00:00
roc+%cs.cmu.edu
75d52f8575 Bug 333659. Relanding new nsLineLayout API to make in-first-line-frame and current-nsLineBox available; should not affect anything. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@218491 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-17 03:59:32 +00:00
roc+%cs.cmu.edu
4f42d74394 Backing out text landing.
git-svn-id: svn://10.0.0.236/trunk@218456 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-16 22:25:20 +00:00
roc+%cs.cmu.edu
e2373f9a14 Bug 333659. Landing new text interfaces, new gfxPangoTextRun (enabled), new textframe code (disabled). r+sr=dbaron for the part-of-the-build layout parts,r=stuart for the part-of-the-build gfx parts
git-svn-id: svn://10.0.0.236/trunk@218447 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-16 20:51:52 +00:00
dbaron%dbaron.org
534cefc5fa Remove nsLineLayout::mWordWidth, which should have been removed in earlier reflow branch merging. b=363232 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@216966 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-13 23:11:13 +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
roc+%cs.cmu.edu
f06ba26d9e Bug 343445. Change inline reflow strategy to avoid looking ahead through words while measuring text. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@213836 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-19 01:47:47 +00:00
bzbarsky%mit.edu
1aeb3f0f20 Trim whitespace that comes right before a <br> when trimming whitespace. Bug
132561 relanding, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@195017 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-21 01:31:35 +00:00
bzbarsky%mit.edu
6dc3270ec7 Make line boxes have the right width when justifying. Bug 309761, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@194200 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-12 01:07:01 +00:00
dbaron%dbaron.org
b258ce85ca Single line comments to describe files (helpful in LXR)
git-svn-id: svn://10.0.0.236/trunk@193203 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-29 18:29:03 +00:00
rbs%maths.uq.edu.au
ea324b55a6 Re-checkin as it showed no impact on luna's TDHML bug 331661. Introduce a soft-break flag that means that a whitespace has been trimmed at the end of the line, and therefore its width has not been accounted for (this width can actually be large, e.g., if a large word-spacing is set). LineLayout should not be misled into placing something where the whitespace was trimmed. b=329987, r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@193030 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-27 07:04:29 +00:00
rbs%maths.uq.edu.au
f057f2eefe Backing out to investigate the DHTML jump on luna, bug 331661
git-svn-id: svn://10.0.0.236/trunk@193028 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-27 05:21:44 +00:00
rbs%maths.uq.edu.au
a824b2320f Introduce a soft-break flag that means that a whitespace has been trimmed at the end of the line, and therefore its width has not been accounted for (this width can actually be large, e.g., if a large word-spacing is set). LineLayout should not be misled into placing something where the whitespace was trimmed. b=329987, r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@192959 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-24 22:45:05 +00:00
roc+%cs.cmu.edu
2816caa04c Bug 297537. Line layout should not set an available-height constraint on the inline frames, because they can't break vertically ... and it certainly shouldn't set the constraint based on the band dimensions. Fixes Gmail rich text toolbar layout issue. r+sr=dbaron,a=asa
git-svn-id: svn://10.0.0.236/trunk@174750 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-17 02:46:36 +00:00
roc+%cs.cmu.edu
7f1a3c9c93 Bug 263825. Make paginated floats work, and other fixes. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@171036 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-23 03:35:08 +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
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
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
dbaron%dbaron.org
693eed6a2d Backing out my checkin from yesterday. b=199673
git-svn-id: svn://10.0.0.236/trunk@153837 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-10 17:13:39 +00:00
dbaron%dbaron.org
2cefb8b1dd In almost-standards mode, standards-mode text decorations and quirks-mode inline box model have to interact -- so make standards-mode text-decorations (when text-decorations are present) cause the standards-mode inline box model. b=199673 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@153794 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-10 00:28:17 +00:00
scott%scott-macgregor.org
de903528ff Back out Bug #132561 until we can figure out how to fix the regression it causes in HTML composer with spaces
(See Bug #235223).

a=brendan


git-svn-id: svn://10.0.0.236/trunk@153416 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-02 01:23:13 +00:00
bzbarsky%mit.edu
fed1bb3ece Trim whitespace that comes right before a <br> when trimming whitespace. Bug
132561, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@152976 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-19 22:12:38 +00:00
bzbarsky%mit.edu
e94a4a8364 Collapse trailing whitespace even if there is a placeholder after it. Bug
233451, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@152533 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-09 01:01:06 +00:00
dbaron%dbaron.org
6ab19b722c Removed unused LineIsEmpty function.
git-svn-id: svn://10.0.0.236/trunk@149158 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-11 19:25:49 +00:00
dbaron%dbaron.org
33601224e0 Use the correct term "float" instead of "floater". b=218654 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@147924 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-13 21:51:02 +00:00
dbaron%dbaron.org
1253348a57 Remove LL_TEXTSTARTSWITHNBSP, since it's a partial and broken solution to the problem, and it's in the wrong place. b=187899 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@147413 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-28 22:56:08 +00:00