99 Commits

Author SHA1 Message Date
tglek%mozilla.com
1b2f5bc689 Clean up prbool misuse in layout. bug 398312, r+sr+a=dbaron
git-svn-id: svn://10.0.0.236/trunk@237496 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-10 00:00:06 +00:00
smontagu%smontagu.org
653d01afa8 Only substitute real frame for placeholder frame when it is an inline container. Bug 394239, r+sr+a=roc
git-svn-id: svn://10.0.0.236/trunk@233794 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-03 14:30:38 +00:00
smontagu%smontagu.org
3cb99550e5 Remove cruft from nsBidiPresUtils. Bug 393962, r+sr+a=roc
git-svn-id: svn://10.0.0.236/trunk@233303 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-29 09:19:16 +00:00
smontagu%smontagu.org
89881448e9 Detect placeholders when building the array of frames for bidi resolution and add the real frames to the array. Bug 384527, r+sr=roc, b=dbaron
git-svn-id: svn://10.0.0.236/trunk@233301 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-29 08:21:38 +00:00
mats.palmgren%bredband.net
d8dd7baf9e Remove nsDirectionalFrame::QueryInterface(), add GetFrameName(), and some other minor cleanup. b=385921 r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@230586 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-22 14:43:23 +00:00
smontagu%smontagu.org
59d7d0ac45 Move SymmSwap and other character-related Bidi utility methods from layout to intl/unicharutil. Bug 385539, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@229091 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-01 05:56:11 +00:00
roc+%cs.cmu.edu
e5b5169706 Bug 383551. Clean up IsInlineFrame, nsStyleDisplay::IsBlockLevel and related methods. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@228806 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-27 02:31:35 +00:00
emaijala%kolumbus.fi
3e76729ba1 Patch for bug 382480: Crash at nsBidiPresUtils::ProcessText
r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@227402 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-02 07:09:26 +00:00
mats.palmgren%bredband.net
c4a1707993 Incremental reflow bug with direction:rtl and bidi-override. b=375716 r=uriber sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@225999 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-06 10:29:58 +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
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
uriber%gmail.com
f45d42ada7 Abort early from ReorderFrames in case of an empty line frame, to avoid crashing later. bug=367015, r+sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@218426 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-16 07:09:49 +00:00
uriber%gmail.com
2147de52fc Don't bidi-split line frames. bug=364839, r+sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@218277 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-13 18:20:28 +00:00
mats.palmgren%bredband.net
e7c2c3f107 Plug a leak of nsDirectionalFrames. b=365909 r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@217904 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-06 21:02:05 +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
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
uriber%gmail.com
7a3b5b4bcb Don't descend into bidi leaves in InitContinuationStates(). bug=348711 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@207706 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-17 07:50:35 +00:00
uriber%gmail.com
a84d95cf24 Create bidi embedding only around inline containers (with a specified direction), not around inline replaced elements. bug=169139 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@206709 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-07 07:40:28 +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
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
dveditz%cruzio.com
f869942298 Bug 284219: add EnsureStringLength() helper function to nsReadableUtils.h to
simplify OOM checks when growing an nsAString. r/sr=darin


git-svn-id: svn://10.0.0.236/trunk@200610 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-22 19:07:30 +00:00
uriber%gmail.com
816ab1e15e Bug 328168: Horizontal paddings, borders and margins on multi-frame bidi inlines appear in the wrong places. Patch by Haamed Gheibi <gheibi@gmail.com>. r=roc+uriber, sr=roc.
git-svn-id: svn://10.0.0.236/trunk@199957 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-15 08:16: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
uriber%gmail.com
8b9a1f9460 Allow searching a line for a frame starting from a given point, to improve performance of forward-moving searches. Used in bidi resolution. bug=339935, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@199496 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-08 08:41:51 +00:00
uriber%gmail.com
513d992a17 Bug 339699: Reduce number of calls to nsLineBox::Contains from nsBidiPresUtils::Resolve. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@198727 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-31 10:21:34 +00:00
uriber%gmail.com
17fe458f2c Set NS_FRAME_IS_BIDI on skipped fluid continuations. bug=333433 r=smontagu sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@194007 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-10 17:05:01 +00:00
roc+%cs.cmu.edu
b6ebd9961d Bug 328926. Remove aPresContext parameter from nsIFrame::Destroy, nsIFrame::SetInitialChildList and nsIFrame::RemovedAsPrimaryFrame. patch by Marc Liddell, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@193976 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-10 00:16:29 +00:00
roc+%cs.cmu.edu
140fbb3377 Bug 330934. Set a nsIFrame's stylecontext in its constructor, to ensure that there's always one available for GetPresContext() to use even if Init hasn't been called. Patch by Marc Liddell, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@193022 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-26 21:30:36 +00:00
uriber%gmail.com
83e152722a Mark lines for which bidi continuations were created or removed dirty, instead of marking everything dirty when continuations removed. bug=330373 r=roc sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@192444 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-15 20:52:02 +00:00
pavlov%pavlov.net
b5c7a440ef backing out roc's patch for bug 328926 due to crash running tests on vc8 machines.
git-svn-id: svn://10.0.0.236/trunk@192407 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-15 06:43:36 +00:00
roc+%cs.cmu.edu
6e36f2c733 Bug 328926. Remove aPresContext parameter from Destroy and SetInitialChildList. patch by Marc Liddell, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@192399 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-15 03:14:02 +00:00
uriber%gmail.com
25b961e38c In EnsureBidiContinuation, leave fluid continuations alone, and only re-use non-fluid continuations as bidi continuations. bug=329878 r=smontagu sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@192243 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-12 22:09:28 +00:00
uriber%gmail.com
5447fb4d4c Set bidi attributes on frames being converted to in-flows in nsBidiPresUtils::RemoveBidiContinuation(). bug=330269 r=smontagu sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@192242 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-12 21:58:47 +00:00
uriber%gmail.com
f5b58f9e8a Attempt to fix WINNT bustage from previous check-in
git-svn-id: svn://10.0.0.236/trunk@192221 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-12 10:18:17 +00:00
uriber%gmail.com
3db5a70f41 Do away with geometry in nsFrameList::GetPrev[Next]VisualFor() and nsLineIterator::CheckLineOrder(). Instead use new helper methods in nsBidiPresUtils for determining visual order of the top level of frames in a line. bug=303884 r=smontagu sr=roc
git-svn-id: svn://10.0.0.236/trunk@192220 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-12 09:49:48 +00:00
uriber%gmail.com
776e2d47ef Reparent views when splitting inline ancestors. bug=329762 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@191981 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-08 18:12:07 +00:00
uriber%gmail.com
725bb30f45 Change RemoveBidiContinuation() to convert bidi continuations into in-flows instead of actually remove them, in attempt to impreove performance. bug=319930 r=smontagu sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@191966 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-08 09:02:42 +00:00
uriber%gmail.com
9abc8fa432 Bug 299065: Bidi resolution needs to split inlines in addition to text frames. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@190744 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-21 21:33:47 +00:00
bmlk%gmx.de
96b4e23583 don't allocate nsDirectionalFrame on heap, bug 315321 patch by Marc Liddell r=roc sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@185646 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-03 15:44:43 +00:00
roc+%cs.cmu.edu
c4e0410c6e Bug 313817. DeCOMtaminate more NS_New*Frame functions. r+sr=roc, patch by Marc Liddell
git-svn-id: svn://10.0.0.236/trunk@184129 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-04 02:38:33 +00:00
smontagu%smontagu.org
78b654a4ba Move the workaround for Windows displaying right-to-left presentation forms as left-to-right into Windows-specific code. Bug 204272, r+sr=rbs, a=chofmann
git-svn-id: svn://10.0.0.236/trunk@175045 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-23 08:03:24 +00:00
bzbarsky%mit.edu
2bea98552c Remove prescontext args for some nsIFrame methods
(Append/Insert/Remove/ReplaceFrames) and for some methods in table land.  Patch
by Vidar Braut Haarr <bugmail@q1n.org>, r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@168894 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-07 01:58:25 +00:00
smontagu%smontagu.org
a3c18ef60c Right-to-left text is sometimes reversed when changing text size. Bug 248447, patch by Lina Kemmel <lkemmel@il.ibm.com>, r=me, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@168299 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-25 13:37:28 +00:00
bugzilla%arlen.demon.co.uk
fecf3858a6 Bug 162081 Wrong letter is underlined as accesskey / mnemonic when widget direction is RTL
p=mozilla-bugzilla@future.shiny.co.il r/sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@164598 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-29 12:28:19 +00:00
roc+%cs.cmu.edu
ab88d1e1ac Bug 259032. DeCOMtaminate nsIFrame::GetNext/PrevInFlow. r+sr=roc, patch by Will Levine
git-svn-id: svn://10.0.0.236/trunk@162269 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-14 02:28:03 +00:00
bryner%brianryner.com
ff2bc0b69e Trying again to land support for content node properties (bug 253888). r=jst, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@161182 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-24 18:50:29 +00:00
bryner%brianryner.com
2ac3245dec Backing out 253888 again due to Tp regression plus another problem I noticed (frame properties not getting destroyed on frame destruction)
git-svn-id: svn://10.0.0.236/trunk@161116 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-22 07:10:50 +00:00
bryner%brianryner.com
0501b2872a Second try at landing support for content node properties (bug 253888). r=jst, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@161115 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-22 04:58:44 +00:00
bryner%brianryner.com
03c6a8279c Backing out bug 253888 until I can figure out how to fix the crash
git-svn-id: svn://10.0.0.236/trunk@161097 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-21 06:27:54 +00:00