114 Commits

Author SHA1 Message Date
bzbarsky%mit.edu
25bd42e2df Bug 491547. Special case creating a bidi continuation inside a floating first letter frame. Patch by Timothy Nikkel <tnikkel@gmail.com>. r=roc,smontagu a=dveditz
git-svn-id: svn://10.0.0.236/trunk@258929 18797224-902f-48f8-a5cc-f745e15eee43
2009-11-09 17:00:04 +00:00
uriber%gmail.com
cd8d2d277d Only join ancestor inline frames for frames that are last children. bug=424631, r=smontagu, sr=dbaron, blocking1.9=vladimir
git-svn-id: svn://10.0.0.236/trunk@248714 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-27 19:27:32 +00:00
reed%reedloden.com
4514a9fe24 Bug 423676 - "weirdness with layout and selection of mixed-direction text" [p=uriber@gmail.com (Uri Bernstein) r=smontagu sr=roc a1.9b5=schrep]
git-svn-id: svn://10.0.0.236/trunk@248465 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-24 07:30:49 +00:00
uriber%gmail.com
e10a604edf follow-up on bug 423130 to fix Windows breakage
git-svn-id: svn://10.0.0.236/trunk@248354 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-21 08:39:16 +00:00
uriber%gmail.com
7334998169 In bidi resolution, convert inline bidi continuations not at the end of a bidi run into fluid continuations. bug=423130 r=smontagu sr=dbaron a19b5=dsicore
git-svn-id: svn://10.0.0.236/trunk@248352 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-21 08:17:41 +00:00
smontagu%smontagu.org
f76fc4aba8 When creating a bidi continuation for a frame with fluid continuations, set the length of all the frames in the continuation chain to zero except the last one. Bug 409375, r+sr+blocking1.9=roc
git-svn-id: svn://10.0.0.236/trunk@244457 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-30 04:13:06 +00:00
roc+%cs.cmu.edu
d109a56eb2 Bug 411870. nsBidiPresUtils needs to track the current line across block continuation boundaries. r=smontagu
git-svn-id: svn://10.0.0.236/trunk@244408 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-29 23:39:39 +00:00
roc+%cs.cmu.edu
483e3cd22a Bug 411870 backout again
git-svn-id: svn://10.0.0.236/trunk@244232 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-28 19:10:27 +00:00
roc+%cs.cmu.edu
04c1c0e95b Bug 411870. Bidi resolution needs to scan through block continuations when tracking the current line for frames. r=smontagu
git-svn-id: svn://10.0.0.236/trunk@244221 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-28 18:16:22 +00:00
roc+%cs.cmu.edu
f073d362e1 backing out 411870
git-svn-id: svn://10.0.0.236/trunk@244186 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-28 06:28:31 +00:00
roc+%cs.cmu.edu
80cdf2108f Bug 411870. Make bidi resolution track lines across block continuation boundaries. r=smontagu
git-svn-id: svn://10.0.0.236/trunk@244179 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-28 05:07:14 +00:00
smontagu%smontagu.org
4c83980d8b Percentage margins thrown on the floor during bidi reordering. Bug 413542, r+sr=dbaron, blocking1.9=schrep
git-svn-id: svn://10.0.0.236/trunk@244127 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-27 06:54:08 +00:00
smontagu%smontagu.org
97c9daa858 Collect frames from all block continuations in the buffer for bidi resolution. Bug 408292. r+sr=roc, a=schrep
git-svn-id: svn://10.0.0.236/trunk@241838 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-20 10:06:14 +00:00
smontagu%smontagu.org
fc717f9044 Make sure that the offsets in a textframe are up-to-date before creating a bidi continuation. Bug 406675, r=uriber, sr=roc, blocking1.9=schrep
git-svn-id: svn://10.0.0.236/trunk@240970 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-13 07:51:27 +00:00
smontagu%smontagu.org
8ca4fde8e5 Do AdjustOffsetsForBidi after RemoveBidiContinuation so that we have up-to-date information about which continuations are fluid and which are non-fluid. Bug 397961, r=uriber, sr+blocking1.9=roc
git-svn-id: svn://10.0.0.236/trunk@239148 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-11 19:34:06 +00:00
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