192 Commits

Author SHA1 Message Date
smontagu%smontagu.org
594d1b97d5 Bug 493652: First-line style applies to two lines when first-letter style also used. r+sr=roc, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257466 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-11 15:26:21 +00:00
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
5e5bacba35 Bug 472776. Don't accidentally clear TEXT_IN_TEXTRUN_USER_DATA after we just set it. Patch by Robert O'Callahan <robert@ocallahan.org> r=smontagu a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257103 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-02 23:54:33 +00:00
dholbert%cs.stanford.edu
ade300bff5 Bug 489647: Update to revised patch from bug 467150. r=roc, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257030 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-23 17:18:43 +00:00
mats.palmgren%bredband.net
73da1c964c Keep track of the line container and forget the current line if it's for a different container. b=444027 r+sr=roc a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256336 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-26 23:39:03 +00:00
dholbert%cs.stanford.edu
f1bca53a79 (Patch #2 to fix Bug 431260) Bug 455826 - Look into overflow-lists of inlines to find text when we're building textruns. Patch by Robert O'Callahan <robert@ocallahan.org> r=smontagu
git-svn-id: svn://10.0.0.236/trunk@256332 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-26 20:20:31 +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
dholbert%cs.stanford.edu
cb2ab151fa Bug 440149. Don't break after empty text at the start of the line, even if we're past the available width. Patch by Robert O'Callahan <robert@ocallahan.org> r=smontagu a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255934 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-27 02:31:09 +00:00
smontagu%smontagu.org
0848cd4ee7 Correct the position of soft hyphens in right-to-left text. Bug 444656, r+sr=roc, a=ss
git-svn-id: svn://10.0.0.236/trunk@253673 18797224-902f-48f8-a5cc-f745e15eee43
2008-08-18 15:45:26 +00:00
masayuki%d-toybox.com
9d60202948 Bug 436356 Bullet lists does not display correctly, works in FF 2 p=Atsushi Sakai, r+sr=roc, a=samuel.sidler
git-svn-id: svn://10.0.0.236/trunk@253181 18797224-902f-48f8-a5cc-f745e15eee43
2008-07-22 04:21:13 +00:00
masayuki%d-toybox.com
e6b4997371 Bug 442554 layout.word_select.eat_space_to_next_word should not change word selection method r+sr=roc, a=samuel.sidler
git-svn-id: svn://10.0.0.236/trunk@253180 18797224-902f-48f8-a5cc-f745e15eee43
2008-07-22 04:13:21 +00:00
bzbarsky%mit.edu
4888e815e4 Don't try to include the selection area in our text-decoration overflow if
we're not selected.  Bug 429595, r+sr=roc, a=beltzner


git-svn-id: svn://10.0.0.236/trunk@250593 18797224-902f-48f8-a5cc-f745e15eee43
2008-04-22 03:28:14 +00:00
smontagu%smontagu.org
85fd1c88be Assert that the nsContinuingTextFrame is not a first continuation. Bug 414760, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@250538 18797224-902f-48f8-a5cc-f745e15eee43
2008-04-21 07:17:04 +00:00
masayuki%d-toybox.com
80f0a0b73c Bug 428846 Using underline hint at painting the strikeout line of Quirks mode r+sr=roc, a1.9=beltzner
git-svn-id: svn://10.0.0.236/trunk@250247 18797224-902f-48f8-a5cc-f745e15eee43
2008-04-15 06:47:59 +00:00
masayuki%d-toybox.com
029c78056d Bug 426772 Floated first-letter generates too tall box r+sr=roc, a1.9=beltzner
git-svn-id: svn://10.0.0.236/trunk@250049 18797224-902f-48f8-a5cc-f745e15eee43
2008-04-11 08:44:58 +00:00
smontagu%smontagu.org
a64cd011a7 Correct the coordinates for selection decoration in right-to-left text. Bug 421042, r+sr=roc, a=beltzner
git-svn-id: svn://10.0.0.236/trunk@249680 18797224-902f-48f8-a5cc-f745e15eee43
2008-04-06 08:12:09 +00:00
reed%reedloden.com
b3191d6a01 Bug 421353 - "Moving the mouse over text hyperlinks which become underlined spikes cpu usage" (Fix incorrect use of units in previous patch) [p=reg@openpave.org (Jeremy Lea) r+sr=roc a1.9=beltzner]
git-svn-id: svn://10.0.0.236/trunk@249605 18797224-902f-48f8-a5cc-f745e15eee43
2008-04-04 09:19:02 +00:00
masayuki%d-toybox.com
bcaa87ad7f Bug 421353 Moving the mouse over text hyperlinks which become underlined spikes cpu usage r=roc+stuart, sr=roc, a1.9=beltzner
git-svn-id: svn://10.0.0.236/trunk@248832 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-29 21:25:16 +00:00
roc+%cs.cmu.edu
09eb2d69ee Bug 422394. Fix tab width calculation so we never fail to advance. r=smontagu
git-svn-id: svn://10.0.0.236/trunk@248039 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-18 01:48:22 +00:00
roc+%cs.cmu.edu
0bc07a5e0f Bug 404140. Avoid assertions about comparing line iterators from different lists by comparing nsLineBox* pointers. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@247805 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-14 08:12:26 +00:00
masayuki%d-toybox.com
2b55622b55 Bug 417014 Need blacklist system for underline offset adjusting of CJK fonts which have wrong underline offset r=roc+stuart, sr=roc, b1.9=stuart
git-svn-id: svn://10.0.0.236/trunk@247704 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-13 02:37:00 +00:00
roc+%cs.cmu.edu
bf8d1cd760 Bug 392809. Fix word-based caret movement around punctuation and whitespace. r=smontagu,a=beltzner
git-svn-id: svn://10.0.0.236/trunk@246910 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-03 08:37:35 +00:00
roc+%cs.cmu.edu
228ea44f31 Bug 400057. Make nsBlockInFlowLineIterator useful for finding the line containing a frame, searching across block continuations and their overflow lines. Use it in various places, especially in textrun construction. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@246660 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-27 09:53:48 +00:00
roc+%cs.cmu.edu
203a6597a3 Bug 419531. Don't wipe out stored tab widths during text intrinsic size calculation. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@246655 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-27 09:29:46 +00:00
fantasai.cvs%inkedblade.net
573c3c24fb switch GetOverflowAreaProperty callers to GetOverflowRect b=417116 r+sr=roc a=roc
git-svn-id: svn://10.0.0.236/trunk@246042 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-20 07:08:56 +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
roc+%cs.cmu.edu
2580422ce4 Bug 411792. Never put a line break before a preformatted newline. r=smontagu
git-svn-id: svn://10.0.0.236/trunk@244130 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-27 07:48:39 +00:00
mats.palmgren%bredband.net
c0b7fb8c80 Update the content offset for existing non-fluid continuations when creating a next-in-flow. b=406380 r+sr=roc a=blocking1.9
git-svn-id: svn://10.0.0.236/trunk@242359 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-04 17:09:36 +00:00
roc+%cs.cmu.edu
af5a6ea598 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
git-svn-id: svn://10.0.0.236/trunk@242342 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-04 02:08:30 +00:00
mats.palmgren%bredband.net
361a3c65ff Backing out bug 406380 to fix reftest failure.
git-svn-id: svn://10.0.0.236/trunk@242208 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-31 11:32:08 +00:00
mats.palmgren%bredband.net
9fa1b7e1f9 Update content offset for all next-continuations, not just fluid ones. b=406380 r+sr=roc a=blocking1.9
git-svn-id: svn://10.0.0.236/trunk@242206 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-31 10:29:20 +00:00
Evan.Yan%Sun.COM
c77fbf3878 Bug 405248 - Space between embedded objects characters is missing
r=aaronleventhal
a=mtschrep


git-svn-id: svn://10.0.0.236/trunk@241755 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-19 12:57:08 +00:00
vladimir%pobox.com
7525088701 b=406458; code cleanup: add new ThebesContext() call as opposed to NATIVE_THEBES_CONTEXT hackery, r=stuart
git-svn-id: svn://10.0.0.236/trunk@241704 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-18 23:01:18 +00:00
smontagu%smontagu.org
fc717f9044 Make sure that the offsets in a textframe are up-to-date before creating a bidi continuation. Bug 406675, r=uriber, sr=roc, blocking1.9=schrep
git-svn-id: svn://10.0.0.236/trunk@240970 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-13 07:51:27 +00:00
roc+%cs.cmu.edu
2c5d44fc02 Bug 407078. Don't allow a trailing break in a text run that is followed by a <br>. r=smontagu
git-svn-id: svn://10.0.0.236/trunk@240769 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-11 01:19:21 +00:00
roc+%cs.cmu.edu
967008ce95 Bug 407155. Backing out 392809 to fix regressions. a=schrep
git-svn-id: svn://10.0.0.236/trunk@240603 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-07 09:35:45 +00:00
roc+%cs.cmu.edu
fe799531e5 Bug 407227. Include end-of-linebreaker-textrun break opportunity in min-width calculation. r+sr=dbaron,a=schrep
git-svn-id: svn://10.0.0.236/trunk@240597 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-07 03:27:01 +00:00
roc+%cs.cmu.edu
f358ec0c78 Bug 407227. Include end-of-linebreaker-textrun break opportunity in min-width calculation. r+sr=dbaron,a=schrep
git-svn-id: svn://10.0.0.236/trunk@240596 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-07 03:16:08 +00:00
roc+%cs.cmu.edu
fd3ca70efc Bug 405577. Allow available width to go negative for inlines/text, so we can tell whether zero-width content fits or not. Also allow textframes to honour a forced break at the end of the text. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@240555 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-06 01:24:04 +00:00
roc+%cs.cmu.edu
8e0c701995 Backing out unintentionally-checked in stuff
git-svn-id: svn://10.0.0.236/trunk@240481 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-05 02:12:40 +00:00
roc+%cs.cmu.edu
da23161809 Bug 392809. Break between whitespace and following punctuation even when stop_at_punctuation is false. Don't stop between punctuation and following non-punctuatino if the preceding punctuation follows white-space. r=smontagu
git-svn-id: svn://10.0.0.236/trunk@240480 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-05 02:11:17 +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
roc+%cs.cmu.edu
e9b2057bb2 Bug 403426. We should clear whitespace status when we reset the linebreaker. If a final break opportunity exists we should save it and forward it to the line layout. Relanding with a fix so hopefully we won't crash Tp this time. r=smontagu
git-svn-id: svn://10.0.0.236/trunk@240287 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-03 08:23:31 +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
8598444b4b Relanding bug 404624 because it was not, in fact, responsible for that assert
git-svn-id: svn://10.0.0.236/trunk@240270 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-03 04:18:37 +00:00