4723 Commits

Author SHA1 Message Date
roc+%cs.cmu.edu
fb4e268f6f Bug 384836. Avoid using a stale gfxContext, by not holding onto one in nsTransformedTextRun, passing in a gfxContext when required instead. r=pavlov,smontagu
git-svn-id: svn://10.0.0.236/trunk@228740 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-26 04:25:01 +00:00
mrbkap%gmail.com
1d33ba9743 Don't depend on undefined behavior (sign extension on right shift). bug 385259, r=mats.palmgren sr=jst
git-svn-id: svn://10.0.0.236/trunk@228721 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-25 21:53:21 +00:00
roc+%cs.cmu.edu
3158edcc6d Bug 385344. Always reconstruct textruns for next-in-flows of firstline/firstletter frames. Also, be more careful looping over text in AddInlinePrefWidthForFlow. r=smontagu
git-svn-id: svn://10.0.0.236/trunk@228666 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-25 03:41:07 +00:00
roc+%cs.cmu.edu
82c06fab3c Bug 385234. Iterate through textframe continuations properly in AddInlinePref/MinWidth. r=smontagu
git-svn-id: svn://10.0.0.236/trunk@228561 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-22 00:17:30 +00:00
roc+%cs.cmu.edu
f174142813 Bug 382105. Clean up PeekOffsetWord to exit early without setting *aOffset if there is nowhere to go in the requested direction. Also, ignore *aSawBeforeType when we're checking for punctuation. r=smontagu
git-svn-id: svn://10.0.0.236/trunk@228560 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-22 00:13:05 +00:00
dbaron%dbaron.org
cd6e9c2d37 Make text-indent contribute to intrinsic widths, and handle negative text-indent and negative margin properly by distinguishing forced and optional breaks when accumulating minimum widths. b=368155 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@228548 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-21 22:33:10 +00:00
roc+%cs.cmu.edu
eab2fd3300 Bug 367177. (Re)enabling new-textframe.
git-svn-id: svn://10.0.0.236/trunk@228396 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-20 19:49:46 +00:00
jwalden%mit.edu
f42533923d C++ and/or gcc sucks for not allowing commas at the end of enums; this compiled in Visual Studio.
git-svn-id: svn://10.0.0.236/trunk@228364 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-20 05:24:09 +00:00
jwalden%mit.edu
d6e7fed8d4 Move frame bit #defines into an anonymous enum, to aid debuggers in determining their values, since the two I've used can't do so, at least not with the default build options. rs=roc
git-svn-id: svn://10.0.0.236/trunk@228360 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-20 05:12:35 +00:00
dbaron%dbaron.org
5d738bf573 Back out patch to make mousethrough attribute apply to all elements. b=380094 a=roc
git-svn-id: svn://10.0.0.236/trunk@228273 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-18 23:22:46 +00:00
dbaron%dbaron.org
26a84c5172 Handle the vertical resizing in the first pass reflow correctly when we've previously done a special height reflow. b=381507 r=dholbert sr=roc
git-svn-id: svn://10.0.0.236/trunk@228269 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-18 23:19:39 +00:00
m_kato%ga2.so-net.ne.jp
c18f24ebf5 bug 328547 support mozilla/layout on WinXP x64 build. r=cbiesinger/sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@228201 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-17 14:00:30 +00:00
sharparrow1%yahoo.com
b12e3b26ae Bug 381385: get rid of unneeded members of nsFloatCache (saves about 50 bytes footprint per float). r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@228176 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-16 20:27:46 +00:00
roc+%cs.cmu.edu
b34fb6b766 Bug 382105. Yet another word caret movement fix to ensure we stop at punctuation.
git-svn-id: svn://10.0.0.236/trunk@228109 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-15 05:37:08 +00:00
roc+%cs.cmu.edu
4da3ac4c3c Backing out new textframe landing because of Windows bustage.
git-svn-id: svn://10.0.0.236/trunk@228003 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-13 22:31:32 +00:00
roc+%cs.cmu.edu
ef5f02965d Bug 367177. Turn on new textframe. Lord, have mercy upon us.
git-svn-id: svn://10.0.0.236/trunk@227997 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-13 20:20:20 +00:00
roc+%cs.cmu.edu
71ee0a4b22 Not part of the build (barely). Don't skip updating per-char arrays for characters that are cluster continuations (in small-caps code).
git-svn-id: svn://10.0.0.236/trunk@227994 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-13 18:28:38 +00:00
roc+%cs.cmu.edu
0235ebf43c Not part of the build (barely). Don't allow PeekOffsetWord to break before the first cluster. Avoids a fencepost error in ClusterIterator where going backwards we might try to look at one past the end of mWordBreaks.
git-svn-id: svn://10.0.0.236/trunk@227993 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-13 18:25:14 +00:00
roc+%cs.cmu.edu
e44d46c9e3 Not part of the build (barely). Fix intrinsic-min-widths properly for preformatted white-space... the previous checkin messed up the check for newline characters.
git-svn-id: svn://10.0.0.236/trunk@227959 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-13 10:58:44 +00:00
roc+%cs.cmu.edu
74b18bc016 Not Part Of The Build (barely). Clean up function names and comments. Also fix an unreported regression where we failed to take preformatted newlines into account when computing text intrinsic-min-width.
git-svn-id: svn://10.0.0.236/trunk@227956 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-13 09:06:28 +00:00
roc+%cs.cmu.edu
cc6c87fe7c Landing textframe updates: Use word-based textrun cache; rewritten PeekOffsetWord; adjust textframe content-offsets and content-lengths when CharacterDataChanged fires; search backwards for textrun scanning/creation start point, instead of all the way back to the start of the block; ensure that we pass the correct start iterator to PropertyProvider in TrimTrailingWhiteSpace.
git-svn-id: svn://10.0.0.236/trunk@227903 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-12 21:01:12 +00:00
dbaron%dbaron.org
875b2f29f1 Implement correct intrinsic width calculation (for container) for elements with specified height properties and an intrinsic ratio. b=364066 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@227882 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-12 18:27:28 +00:00
smontagu%smontagu.org
b435fce1d2 Clear textruns during bidi resolution. Not Part of the Build. Bug 382429, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@227421 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-03 06:53:10 +00:00
joshmoz%gmail.com
a068cff59f need to set plugin window x and y coords in CG mode. b=382765 r=sfraser sr=roc
git-svn-id: svn://10.0.0.236/trunk@227418 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-02 22:02:57 +00:00
roc+%cs.cmu.edu
06b20ed603 Bug 382279. Disable ligatures when letter-spacing is in effect. Also, avoid adding space inside ligatures if the gfx backend doesn't respect our disabling of ligatures. r=pavlov
git-svn-id: svn://10.0.0.236/trunk@227312 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-31 05:01:57 +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
mats.palmgren%bredband.net
9457661ae7 Check LL_GOTLINEBOX before using mLineBox. b=382396 r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@227254 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-30 15:08:50 +00:00
smontagu%smontagu.org
9e8d8775fc Do bidi resolution during GetPrefWidth() and GetMinWidth() as well as Reflow(). Bug 365130, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@227109 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-28 14:40:56 +00:00
roc+%cs.cmu.edu
2186b49ba4 Not part of the build. Don't trim whitespace if wrapping is disabled --- in min-width and pref-width calculations.
git-svn-id: svn://10.0.0.236/trunk@227094 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-28 02:38:21 +00:00
roc+%cs.cmu.edu
0fa63b69a3 Not part of the build. Don't trim whitespace if wrapping is disabled. Don't compress a space that's preceded by an incompressible space.
git-svn-id: svn://10.0.0.236/trunk@227093 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-28 02:20:58 +00:00
roc+%cs.cmu.edu
9c129ee094 Not part Of The Build. Bug 381228. Fix handling of case where the text is not part of a block.
git-svn-id: svn://10.0.0.236/trunk@226934 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-24 03:06:37 +00:00
preed%mozilla.com
df84bd3fdb Bug 381695: TextFrame feature makefile switch needs to pick up its setting from environment. r=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@226929 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-24 02:13:04 +00:00
roc+%cs.cmu.edu
f5f8e45b5c (Not Part Of The Build). Fix incorrect treatment of first character always as uppercase, even when it isn't, when building a small-caps textrun ...
git-svn-id: svn://10.0.0.236/trunk@226865 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-23 09:37:52 +00:00
roc+%cs.cmu.edu
26dc3b7da6 Bug 380625. (Not Part Of The Build). Fix cluster count for trimmed spaces.
git-svn-id: svn://10.0.0.236/trunk@226864 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-23 09:36:16 +00:00
roc+%cs.cmu.edu
e2bd8901bc Not Part Of The Build (new textframe). IsInBounds uses incorrect logic and produces spurious warnings.
git-svn-id: svn://10.0.0.236/trunk@226853 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-23 04:08:38 +00:00
sharparrow1%yahoo.com
7645b7424a Bug 381645: Remove nsBoxFrame::GetContentOf. r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@226846 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-23 03:48:43 +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
sharparrow1%yahoo.com
d387c5a846 Bug 381621: Get rid of nsBoxFrame::AddRef/Release, plus a few misc cleanups. r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@226807 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-22 20:34:00 +00:00
sharparrow1%yahoo.com
1e238506ce Bug 377391: Parts of a rectangle with CSS outline remains, when changing rectangle size. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@226705 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-21 10:06:08 +00:00
sharparrow1%yahoo.com
66ceed1300 Bug 45631: text-indent: n% doesn't incrementally reflow correctly. r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@226704 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-21 09:55:27 +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
dbaron%dbaron.org
4c4eee1f57 Don't propagate line layout in reflow state when we're not in the line. b=320502 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@226608 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-18 06:04:04 +00:00
mats.palmgren%bredband.net
d3ccb57da7 NPOTB. Add missing rendering context null-checks. b=380502 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@226571 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-17 10:52:20 +00:00
roc+%cs.cmu.edu
aea782973d Not Part Of The Build. 1) Round font underline/overline/strikeout offsets and sizes to device pixels to try to ensure consistent visual offsets and sizes even when the baseline point is not pixel-aligned. 2) snap the text baseline y coordinate to the nearest pixel, because the decoration lines will be snapped themselves and we need the gaps to remain consistent. 3) fix bug in selection-decoration x coordinate which was forgetting to include the frame x-offset.
git-svn-id: svn://10.0.0.236/trunk@226505 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-16 05:21:41 +00:00
roc+%cs.cmu.edu
c3efcf148b Not Part Of The Build. Fix underline/strikeout positioning in new text frame --- simple appunits/pixels confusion.
git-svn-id: svn://10.0.0.236/trunk@226491 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-15 23:41:41 +00:00
dbaron%dbaron.org
7cd747c7c6 Fix vertical resizing for quirks mode percentage heights. b=380004 Patch by Daniel Holbert <dholbert@mozilla.com>. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@226479 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-15 21:53:32 +00:00
roc+%cs.cmu.edu
68e11bba0d NPOTB, new-text-frame. Fix mouse events targeting after the end of a textframe.
git-svn-id: svn://10.0.0.236/trunk@226421 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-15 05:23:19 +00:00
roc+%cs.cmu.edu
1cbda9367a Back out enabling of new text frame... its time has not yet come
git-svn-id: svn://10.0.0.236/trunk@226414 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-15 03:58:10 +00:00
roc+%cs.cmu.edu
1b45e462ab Bug 380692. Change gfxTextRun API so the textrun copies text, if necessary, instead of the caller having to do it. r=vlad
git-svn-id: svn://10.0.0.236/trunk@226413 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-15 03:56:48 +00:00
Olli.Pettay%helsinki.fi
7a1f7182a1 Bug 363089, Remove nsIDOMEventReceiver (this time passes mochitest), r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@226373 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-14 09:13:09 +00:00