Commit Graph

599 Commits

Author SHA1 Message Date
de75a021a6 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 2007-12-05 17:24:03 -08:00
60036d3d9a Backing out unintentionally-checked in stuff 2007-12-04 18:12:40 -08:00
e348b4eab0 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 2007-12-04 18:11:17 -08:00
6aa9b580c3 Backing out fix for bug 392785 as per roc + mconnor. 2007-12-04 15:32:08 -08:00
fd863397a0 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 2007-12-03 00:22:07 -08:00
dfe9790c0b Bug 392785 overflowed underline sometimes is not repainted at scrolling r+sr=roc, b1.9=dbaron 2007-12-02 22:51:57 -08:00
32937d35ee Relanding bug 404624 because it was not, in fact, responsible for that assert 2007-12-02 20:18:37 -08:00
14f1ad1f41 Backing out fix for bug 404624 because I think it's causing a mochitest to assert 2007-12-02 18:20:22 -08:00
4dc78fe117 Relanding fix for bug 404624 because it had no effect on Tp 2007-12-02 17:42:52 -08:00
bad70ffbd7 Backing out bug 404624 to see if it fixed Tp regression on bl-bldxp01 2007-12-02 12:47:41 -08:00
262755e9a3 Bug 399531. Rework TrimTrailingWhitespace so that we recompute the overflow area for trimmed textframes and so that soft hyphens in otherwise-empty textframes are activated. r+sr=dbaron 2007-12-01 01:24:24 -08:00
6703d78120 Backing out bug 403426 2007-11-30 12:52:24 -08:00
7f47758370 Bug 403426. Clear break-after-whitespace flags when we reset the linebreaker. Also rescue a trailing break opportunity when we reset the line breaker and notify the line layout that the opportunity exists. r=smontagu 2007-11-30 12:03:33 -08:00
17b3de9254 Bug 404624. Silence assertion failures by allowing PropertyProvider's content length to be PR_INT32_MAX. r=smontagu 2007-11-30 11:59:03 -08:00
7f4663bf42 Prevent duplicate entries in the line-break array. Bug 404204, b+r+sr=roc 2007-11-26 00:27:06 -08:00
750ad2685e Bug 368760, r=mats, sr=roc, a=blocking1.9+ 2007-11-22 12:47:33 -08:00
ebdb8d3b19 Use Unicode escapes instead of octal escapes to print non-ASCII text in frame tree dumps. Bug 403871, r+sr=roc, a=dsicore 2007-11-21 02:37:40 -08:00
5e455653e2 Bug 394752. Skip over preformatted newlines when moving caret; the caret will appear at the end of a line when it is positioned at the start of the next line with a HINTLEFT. r=smontagu 2007-11-15 18:25:59 -08:00
28f204c860 Bug 403455. Allow prewrap text to record 'last break opportunity'. r=smontagu 2007-11-15 17:48:26 -08:00
75a8e70289 Don't compare lines from different blockframes' lists to each other. Also fix handling of text-decorations in in-flows of blocks with text-indent. Bug 393330, r+sr=roc, a=schrep 2007-11-14 22:12:17 -08:00
9dd7f23693 Bug 389707. Rework text-transform:capitalize by putting logic to decide what to capitalize into nsLineBreaker. r=smontagu 2007-11-11 17:51:31 -08:00
109b018236 Bug 398181: Use NSCoordSaturatingAdd/Subtract in 3 places where we might have unconstrained heights. r+sr+a=roc 2007-11-09 09:16:36 -08:00
3cbeacc499 Bug 400081 - "Leak gfxFont and gfxTextRun with font-size: 0" [p=cpearce r+sr=roc a1.9=stuart] 2007-11-09 00:04:19 -08:00
5a16947e9c Fixing bustage from landing of bug 397510. 2007-11-08 23:37:31 -08:00
5811e0b183 Bug 397510 - Limit the number of lines we build textruns in BuildTextRuns (speeds up painting of huge pages) [p=roc r=smontagu a=blocking1.9+] 2007-11-08 23:27:18 -08:00
890fdedb52 Bug 385417 - Rework textrun glyph representation so we can handle clusters containing glyphs in different fonts [p=roc r=stuart r=smontagu a=blocking1.9+] 2007-11-08 22:27:23 -08:00
4034401e56 Bug 403004. Let the text-transform style setting loop cross non-fluid continuation boundaries. r+sr=bz 2007-11-08 15:37:34 -08:00
2bc912dc75 Backout roc's patch for bug 385417, as it most likely caused bug 402990 and the numerous test failures. 2007-11-07 23:41:06 -08:00
215c125816 Bug 391584 - Pass around a context string so we can detect word breaks at the beginning or end of frames [p=roc r=smontagu a=blocking1.9+] 2007-11-07 20:33:28 -08:00
610fbbfb23 Bug 385417 - Rework textrun glyph representation so we can handle clusters containing glyphs in different fonts [p=roc r=stuart r=smontagu a=blocking1.9+] 2007-11-07 20:31:33 -08:00
7cbbaca6b9 Bug 336408 - Allow the caret to be positioned at the end of trimmed whitespace, as if the whitespace wasn't trimmed [p=roc r=smontagu sr=mrbkap a=blocking1.9+] 2007-11-07 20:07:00 -08:00
f8979fd3d8 Bug 400826 - We shouldn't build the styles array for transformed textruns assuming every frame in a flow has the same style; instead we should build it frame by frame. [p=roc r=smontagu a=blocking1.9+] 2007-11-07 19:52:33 -08:00
cc23367315 Bug 389666. The mTransformedTextOffset field of MappedFlow wasn't always being set up correctly, so let's just stop using it altogether. r=smontagu,a=vlad 2007-10-23 17:07:26 -07:00
e21183d451 Bug 399159 left edge is not aligned when text-align: justify; in Japanese paragraph (relanding) r+sr+a=roc 2007-10-21 01:10:34 -07:00
033a5461ee 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 2007-10-20 00:30:26 -07:00
c24a45c64e Backing out bug 397510 again because again it looks like it might have caused a regression, and we don't need it for M9 2007-10-18 21:56:05 -07:00
643e510151 re-landing Bug 393758 2007-10-18 19:01:05 -07:00
56933cd7e3 Fixing bustage from landing of bug 397510. 2007-10-18 18:33:52 -07:00
4dab535e18 Bug 397510 Scrolling in large file is very slow due to textrun reconstruction (re-landing for roc) 2007-10-18 18:19:11 -07:00
765fc5bb87 Backing out bustage fix 2007-10-17 23:48:44 -07:00
21a0320198 Back out the patch for bug 399159 because it's suspected of having caused the Tp regression 2007-10-17 10:03:09 -07:00
996cf11a50 Backing out 393758 just in case it caused perf regression 2007-10-16 16:56:27 -07:00
cd9ff9e74b Backing out fix for bug 397510 to see if it fixes the Tp regression 2007-10-16 01:20:22 -07:00
d13c45c1ba Fixing bustage 2007-10-15 14:20:36 -07:00
e433ff9b48 Bug 393758. Detect when we're about to create two flows with the same element in the same textrun (which violates our invariants), and prevent it by starting a new textrun for the second flow. r=smontagu 2007-10-15 14:15:35 -07:00
bd36f93207 Bug 397510. Limit the number of lines below the initial line for which we reconstruct textruns. Speeds up line painting near the top of huge documents. r=smontagu 2007-10-15 14:11:37 -07:00
782f4b3b11 Bug 399159 left edge is not aligned when text-align: justify; in Japanese paragraph r+sr+a=roc 2007-10-15 05:37:15 -07:00
b6efadf476 Bug 397518. Wrap inline non-MathML children of MathML frames in anonymous blocks. r+sr=bzbarsky 2007-10-12 01:30:54 -07:00
d624104a2f Bug 391584. Don't miss word-break opportunities at points where whitespace has collapsed away. Also, note that a word-break opportunity exists at the start of a frame when it starts with a space. 2007-10-10 15:32:51 -07:00
c40ff5881f Backing out bug 391584 because of test failures on non-Mac 2007-10-09 21:25:42 -07:00