Commit Graph

18 Commits

Author SHA1 Message Date
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
roc+%cs.cmu.edu
c29b2c0221 Backing out more of 403426. sigh
git-svn-id: svn://10.0.0.236/trunk@240171 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-30 21:04:24 +00:00
roc+%cs.cmu.edu
bb4d972143 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
git-svn-id: svn://10.0.0.236/trunk@240157 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-30 20:03:33 +00:00
roc+%cs.cmu.edu
ea80cd5d63 Bug 389707. Rework text-transform:capitalize by putting logic to decide what to capitalize into nsLineBreaker. r=smontagu
git-svn-id: svn://10.0.0.236/trunk@239178 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-12 01:51:32 +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
masayuki%d-toybox.com
83c2c7c32a Bug 388602 ###!!! ASSERTION: invalid array index: 'i < Length()' when loading some webpages r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@230742 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-24 11:47:22 +00:00
masayuki%d-toybox.com
f1d60fea6d Bug 255990 Characters below U+0100 are not subject to line-breaking rules at all r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@229815 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-12 15:52:52 +00:00
roc+%cs.cmu.edu
9072d2d2f3 Not Really Part Of The Build. Update nsLineBreaker interface to allow aSink to be null, in which case the computed linebreaks are just discarded. We use this to optimize cases where no breaking is enabled and the results of linebreaking are not required. Also exposes IsSpace and IsComplexChar methods that the linebreaker specification relies on. Renamed CJK stuff to ComplexChar because it's going to include Thai and probably other languages.
git-svn-id: svn://10.0.0.236/trunk@227632 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-07 04:17:55 +00:00
roc+%cs.cmu.edu
61c01d96f8 Not (Really) Part Of The Build. Fix embarrassing error in nsLineBreaker...
git-svn-id: svn://10.0.0.236/trunk@227303 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-31 00:06:31 +00:00
roc+%cs.cmu.edu
7a5518f06a Not part of the build. Change nsLineBreaker so that breaks at element boundaries are always governed by the white-space property on the element that's the nearest common ancestor of the DOM nodes on each side of the break point --- fixes bug 382289. Also, pass NBSP through to textruns so that whitespace trimming doesn't trim NBSP. Also, count trimmed spaces correctly when updating mClusterCount.
git-svn-id: svn://10.0.0.236/trunk@227294 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-30 22:27:28 +00:00
roc+%cs.cmu.edu
7ec3ea1590 Backing out to fix bustage :-(
git-svn-id: svn://10.0.0.236/trunk@226940 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-24 05:16:53 +00:00
roc+%cs.cmu.edu
fd7a8f43bd Bug 336959. Reland update to use Pango for linebreaking of Thai and CJK text on Linux. patch by Theppitak Karoonboonyanan, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@226936 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-24 03:16:16 +00:00
roc+%cs.cmu.edu
9be9b77b2f Backing out due to bustage.
git-svn-id: svn://10.0.0.236/trunk@226854 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-23 04:26:42 +00:00
roc+%cs.cmu.edu
deb306b806 Bug 336959. Use Pango to break lines for CJK and Thai. r+sr=roc, patch by Theppitak Karoonboonyanan.
git-svn-id: svn://10.0.0.236/trunk@226852 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-23 04:06:20 +00:00
roc+%cs.cmu.edu
c678b3f6e5 Not Part Of The Build. Update nsTextFrameThebes whitespace handling; allow line breaking only at the end of a run of whitespace.
git-svn-id: svn://10.0.0.236/trunk@226827 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-22 23:45:47 +00:00
roc+%cs.cmu.edu
d2c8f69a4d No bug. A variety of fixes to fix various reftest failures. Not Part Of The Build.
git-svn-id: svn://10.0.0.236/trunk@222315 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-24 11:07:36 +00:00
roc+%cs.cmu.edu
d8e9246d9e Bug 333659. nsLineBreaker fixes. Not Part Of The Build, used by new-textframe only.
git-svn-id: svn://10.0.0.236/trunk@222216 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-22 23:45:02 +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