623 Commits

Author SHA1 Message Date
roc+%cs.cmu.edu
76aacf3321 Bug 380209. Hooks for a textframe-specific textrun cache startup/shutdown. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@226212 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-09 22:02:29 +00:00
bzbarsky%mit.edu
ba5badedcb Change the FrameNeedsReflow API to pass the dirty flags to be added directly to
the method, instead of setting them before calling the method.  That way we can
avoid reflowing the ancestor of a reflow root which is not itself dirty but has
dirty children.  This also makes it harder to set dirty bits inconsistently
with the FrameNeedsReflow call.  Bug 378784, r+sr=dbaron, pending rbs' review
on the mathml parts.


git-svn-id: svn://10.0.0.236/trunk@226007 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-06 19:16:52 +00:00
bzbarsky%mit.edu
33b3f60e43 Make computed style handle eStyleUnit_Chars. Bug 371043, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@225946 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-05 06:09:50 +00:00
roc+%cs.cmu.edu
d17ce6afee Bug 368860. Don't perform out-of-bounds access if we have a bogus empty previous-text-frame. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@224124 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-04 02:28:27 +00:00
bzbarsky%mit.edu
116d69628c Rename nsIFrame::GetPresContext to nsIFrame::PresContext. Bug 376042, patch by
Taras Glek <tglek@mozilla.com>, rs=roc.


git-svn-id: svn://10.0.0.236/trunk@222659 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-30 21:11:47 +00:00
sayrer%gmail.com
63527ee4b2 Bug 364867. quiet the 'textframe maps no content' noise. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@221520 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-08 02:53:58 +00:00
bzbarsky%mit.edu
15986fa4ba Backing out bug 371839 to fix bug 372139.
git-svn-id: svn://10.0.0.236/trunk@221133 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-01 05:55:07 +00:00
bzbarsky%mit.edu
3fa51bacc4 Make first-letter frames use the content parent of the textnode as their
content.  Add some first-letter tests, and a few assertions.  Bug 367650, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@221107 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-28 22:32:00 +00:00
bzbarsky%mit.edu
fa4547b804 Make SetSelected on text frames a little smarter. Bug 371839, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@220972 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-27 02:33:33 +00:00
dbaron%dbaron.org
32d54152c9 Clean up IsFrameOfType methods to call their base class IsFrameOfType methods reliably. b=341326 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@220874 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-24 18:33:33 +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
sharparrow1%yahoo.com
4e50607a9e Bug 370185: clean up view header includes (trivial). rs=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@219987 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-12 19:17:33 +00:00
sharparrow1%yahoo.com
dd459d0a71 Bug 177805: Fix the use of units in Gecko. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@219640 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-07 07:46:44 +00:00
cvshook%sicking.cc
ccd1d6884d Kill remainders of ns(XBL|HTML|XUL|Layout)Atoms. r/sr=jst b=368128
git-svn-id: svn://10.0.0.236/trunk@219151 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-30 00:06:41 +00:00
roc+%cs.cmu.edu
eca770f48f Bug 367930. Introduce an nsIRenderingContext::GetHints flag (temporarily) that tells us whether new-text-runs are being used underneath. When new text runs are in use, never reverse text manually, we can be sure that the platform textrun will do it.
git-svn-id: svn://10.0.0.236/trunk@218879 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-25 01:58:55 +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
1534bcd542 Bug 333659. Land layout changes to pass only single-direction textruns to nsIRenderingContext string methods. r=dbaron
git-svn-id: svn://10.0.0.236/trunk@218782 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-23 02:58:55 +00:00
timeless%mozdev.org
c778d21502 Bug 355300 There should be only one nsGkAtoms creature
r=dbaron


git-svn-id: svn://10.0.0.236/trunk@217425 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-26 17:47:52 +00:00
timeless%mozdev.org
3ea4e560e3 Bug 363390 IS_LOW_SURROGATE conflicts with winnls.h
r=darin


git-svn-id: svn://10.0.0.236/trunk@217292 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-21 07:03:23 +00:00
mats.palmgren%bredband.net
14e7266121 Rename IsSplittable() to GetSplittableType(). b=349973 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@217227 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-20 03:52:34 +00:00
uriber%gmail.com
c44fa5a890 Always set wordLen to -1 before calling tx.GetNextWord() from AddInline[Min|Pref]Width, so that GetNextWord() will look at the entire content. bug=363732, r=smontagu sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@217098 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-17 16:57:15 +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
uriber%gmail.com
47d6cf40cf Bug 314519: Caret skips blank lines using right-arrow key in some cases of preformatted text. Take 2. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@216887 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-12 18:12:46 +00:00
roc+%cs.cmu.edu
3d86905040 Bug 357351. Assertion should be #ifdef MOZ_CAIRO_GFX only. Debug-only change.
git-svn-id: svn://10.0.0.236/trunk@216835 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-11 00:09:50 +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
Olli.Pettay%helsinki.fi
2d30ed18cd Bug 340564, Print/Print Preview does not print text in <input text> or <textarea>, p=sharparrow, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@215069 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-10 00:55:11 +00:00
gavin%gavinsharp.com
cfa5421ae3 Bug 355349: remove dead code from nsTextFrame.cpp, patch by Gerald <gerald_leder@gmx.at>, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@214782 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-06 16:18:35 +00:00
roc+%cs.cmu.edu
c423eac088 Fixing Mac bustage
git-svn-id: svn://10.0.0.236/trunk@213838 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-19 02:17:51 +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
roc+%cs.cmu.edu
f59ad5c466 Bug 354451. Fix uppercasing of &szlig; and possibly other regressions from bug 345071. r=smontagu,sr=rbs
git-svn-id: svn://10.0.0.236/trunk@212981 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-02 05:38:34 +00:00
uriber%gmail.com
7de18fd0a8 Do the correction of caret position due to trimmed whitespace only when the caret is logically after the whitespace. bug=336408 r=rbs sr=roc
git-svn-id: svn://10.0.0.236/trunk@212288 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-25 11:39:10 +00:00
roc+%cs.cmu.edu
8d851a39b2 Bug 351268. Remove nsIFrame::AdjustFrameSize, it's unused. r=smontagu,sr=rbs
git-svn-id: svn://10.0.0.236/trunk@212018 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-19 21:04:06 +00:00
bzbarsky%mit.edu
b869f56794 Reinstate reflow count painting when it's needed. Bug 352851, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@211969 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-19 04:26:20 +00:00
smontagu%smontagu.org
a898ca275a When text is displayed from right to left natively, reverse the coordinates of selection decoration to match. Bug 349352, r=uriber, sr=bz
git-svn-id: svn://10.0.0.236/trunk@210006 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-13 08:10:19 +00:00
uriber%gmail.com
78cfa593e6 Refactor nsIFrame::PeekOfset to use iteration instead of recursion, plus some more related refactoring. bug=300131 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@209768 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-11 20:43:01 +00:00
uriber%gmail.com
fcf4d1b5af Backing out bug 300131 until I figure out how to deal with the bustage.
git-svn-id: svn://10.0.0.236/trunk@209689 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-11 08:03:28 +00:00
uriber%gmail.com
09e8c4f558 Refactor nsIFrame::PeekOfset to use iteration instead of recursion, and some related refactoring. bug=300131 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@209685 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-11 06:39:56 +00:00
bzbarsky%mit.edu
7db942a02d Remove some unnecessary members and code. Bug 335477, patch by Marc Liddell
<marcldl+mozbugs@gmail.com>, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@208413 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-25 16:46:22 +00:00
roc+%cs.cmu.edu
173a1877ef Bug 345071. Fix PrepareUnicodeText to handle words in the current textnode that extend past the end of the frame. r=smontagu,sr=rbs
git-svn-id: svn://10.0.0.236/trunk@207534 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-16 01:57:06 +00:00
masayuki%d-toybox.com
3f887ada2c Bug 346417 RTL justify code is wrong in nsTextFrame r=smontagu, sr=roc
git-svn-id: svn://10.0.0.236/trunk@206705 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-07 06:27:57 +00:00
gavin%gavinsharp.com
3da5c71c49 Bug 338368: fix uninitialized variable used in nsTextFrame::PaintAsciiText, patch by Nickolay Ponomarev <asqueella@gmail.com>, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@206568 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-04 14:29:48 +00:00
cvshook%sicking.cc
365266c686 Bug 344050: Kill nsITextContent and move the methods to nsIContent. r/sr=jst
git-svn-id: svn://10.0.0.236/trunk@203078 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-19 04:36:36 +00:00
aaronleventhal%moonset.net
ac34f7235e Bug 334353. Duplicate insert/delete events. r=evan.yan, sr=roc
git-svn-id: svn://10.0.0.236/trunk@203071 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-19 01:56:54 +00:00
uriber%gmail.com
cc251423d1 Clean up nsPeekOffsetStruct. bug=343763. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@201994 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-13 06:06:29 +00:00
aaronleventhal%moonset.net
5c15d496c9 Bug 342596. Allow start/end of word to be specified for PeekOffset(). Necessary for upcoming nsIAccessibleText::GetText[At|Before|After]Offset() methods. r=uriber, sr=roc
git-svn-id: svn://10.0.0.236/trunk@201906 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-11 22:11:02 +00:00
uriber%gmail.com
01ebf6856f Limit the fix for bug 337135 to the -moz-pre-wrap case only. bug=343390, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@201480 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-03 07:12:42 +00:00
uriber%gmail.com
a8c46f2589 Allow removing multiple trimmed whitespace characters when painting text. bug=337135 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@201089 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-28 12:14:48 +00:00
roc+%cs.cmu.edu
bd9175c940 Bug 237085. Move string subdivision code to gfx so we can efficiently make it metrics-dependent. r=smontagu,sr=rbs
git-svn-id: svn://10.0.0.236/trunk@200963 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-26 22:18:23 +00:00
roc+%cs.cmu.edu
d5ea80116c Bug 338251. Create safe wrappers for gfx text functions and use them. r=smontagu,sr=rbs
git-svn-id: svn://10.0.0.236/trunk@199574 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-09 03:29:32 +00:00
brettw%gmail.com
dc205d57ee Bug 336679 r+sr=roc the text/lines disappears when spellchecking Unicode text and focus is lost
git-svn-id: svn://10.0.0.236/trunk@196561 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-15 19:20:32 +00:00