Commit Graph

366 Commits

Author SHA1 Message Date
Ryan VanderMeulen
202bd53a55 Backout the bug 754202 backout due to orange. 2012-06-10 19:37:47 -04:00
Robert O'Callahan
823baaf3a9 Bug 731293. Remove nsFrameManager parameter from nsLayoutUtils::GetParentOrPlaceholderFor. r=mats 2012-06-09 00:22:25 +12:00
Gervase Markham
cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Simon Montagu
69b1c3af14 Make unicode-bidi: [-moz-]plaintext apply to inline elements. Bug 746987, r=roc 2012-05-09 11:44:52 +03:00
Simon Montagu
73dfb2e5ca Fix some cases where a bidi-isolated element was never going through bidi resolution. Bug 731594, r=roc 2012-05-08 09:22:38 -07:00
Simon Montagu
d0537bf655 Check for orphaned non-fluid continuations after deleting content. Bug 730562, r=roc 2012-03-21 16:50:54 -07:00
Simon Montagu
58e8a369c1 Check for orphaned fluid continuations after deleting content. Bug 726460, r=roc 2012-03-21 16:50:37 -07:00
Simon Montagu
3190b675d1 Add a mParagraphDepth member to BidiParagraphData and cache it on frames to track nested bidi-isolated paragraphs. Use mParagraphDepth (* 2 + isRTL in order to keep LTR even and RTL odd) as the initial paragraph embedding level instead of pushing a stack of embedding codes. Pass the <bdi> frame instead of its first-child to BidiParagraphData::Reset and save a call to GetParent(). Split inline ancestors before and after bidi-isolated paragraphs, in the same way that we currently do between runs in different directions. This required also adding code to SplitInlineAncestors to handle situations where the parent frame is being split before its first child or after its last child. In JoinInlineAncestors, prevent frames that belong to paragraphs isolated from one another from being rejoined. Bug 712600, r=ehsan, roc 2012-01-11 21:26:02 +02:00
Mats Palmgren
f75f749d7b Bug 728908 - Make the Overflow lines property have both a nsLineList and a nsFrameList for fast access to the last frame, eliminate SetNextSibling calls, and to support GetChildList(kOverflowList). part 1/2 r=bz 2012-03-08 02:57:37 +01:00
Nathan Froyd
20f5ce545a Bug 731615 - Eliminate duplicate headers in layout. rs=smontagu 2012-02-29 10:57:47 -05:00
Jonathan Kew
5bec55def1 bug 721821 - make nsBidiPresUtils::WriteReverse aware of clusters, so that diacritics in RTL text display correctly in SVG text. r=smontagu 2012-02-28 21:24:04 +00:00
Simon Montagu
ae8c10885a Treat <wbr> like ZERO WIDTH SPACE during bidi resoltion. Bug 729047, r=ehsan 2012-02-25 23:12:55 -08:00
Jonathan Kew
1464b7b653 bug 724826 pt 1 - move various Unicode property tables from gfx to intl. r=smontagu 2012-02-24 10:15:46 +00:00
Simon Montagu
7e8bb083a6 Make elements with unicode-bidi: plaintext and no strong directional characters default to left-to-right. Bug 726420, r=ehsan 2012-02-22 00:30:32 -08:00
Simon Montagu
d85d3f9a6d Remove unnecessary test for next sibling. Bug 722137, r=roc 2012-01-30 11:05:28 -08:00
Simon Montagu
4b2a9d0c1f Make continuations non-fluid when the end of a bidi paragraph is forced by a preformatted newline. Bug 698335, r=roc 2012-01-15 06:56:04 -08:00
Mats Palmgren
8fe75b1c1b Bug 515530 - Remove nsHTMLContainerFrame. r=roc 2011-12-27 21:18:48 +01:00
Simon Montagu
2c32d2db8e Ensure that Reset is always called before using the subparagraph. Bug 707098, r=roc 2011-12-07 12:07:42 +02:00
Simon Montagu
75fc2f1f76 Test for next-continuations before doing bidi resolution. Bug 704837, r=roc 2011-11-24 16:16:42 +02:00
Simon Montagu
584c63c6b8 Test the containing frame for continuations, not the child. Bug 698706, r=roc 2011-11-07 16:26:50 +02:00
Simon Montagu
29233c7d3e Zero the saved frame when creating a new line iterator for a new column. Bug 695861, r=roc 2011-11-03 11:35:04 +02:00
Simon Montagu
4a6c2d5beb Implement unicode-bidi: -moz-plaintext in layout. Bug 662288, r=roc 2011-10-18 14:51:58 +02:00
Simon Montagu
59366e99b2 Remove unnecessary method argument. Bug 613149, r=roc 2011-10-18 14:51:57 +02:00
Simon Montagu
356d72cd24 Implement unicode-bidi: -moz-isolate in layout. Bug 613149, r=roc 2011-10-18 14:51:57 +02:00
Simon Montagu
ad59178831 Support for unicode-bidi: -moz-isolate and -moz-plaintext in style system. Bug 613149, r=dbaron 2011-10-18 14:51:57 +02:00
Ehsan Akhgari
478ad1a412 Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Michael Wu
0fe7772ece Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones 2011-09-28 23:19:26 -07:00
Mats Palmgren
4e2a044a66 Bug 653649 - New way of getting child lists from frames. (part 4/5) r=roc
Remove the nsIAtom* child list names and use child list ID enum instead.
2011-08-24 22:54:30 +02:00
Ehsan Akhgari
55e3539e97 Bug 667512 - Do not return a bogus visual frame if we don't have any visual frames in reality; r=smontagu 2011-07-26 09:05:15 -04:00
Simon Montagu
1f18554f1f Make all nsBidiPresUtils methods static. Bug 624798, r=roc 2011-04-13 12:23:49 +03:00
Simon Montagu
8954e7b081 Don't resolve bidi paragraph in preformatted text until we really get to the end of the line. Bug 670226, r=roc 2011-07-12 10:34:52 +03:00
Simon Montagu
c2c508d0fc Make sure that bidi continuation chains don't go beyond the end of the paragraph. Bug 668941, r=roc 2011-07-12 10:34:46 +03:00
Ed Morley
9e9b3d13c1 Bug 661584 - Substitute final PR_(MAX|MIN|ABS|ROUNDUP) macro calls; r=roc 2011-07-03 11:53:40 +02:00
Simon Montagu
393248aa2d Don't overshoot the end of the sibling chain when copying text for bidi resolution. Bug 665837, r=roc 2011-06-27 19:30:04 +03:00
Simon Montagu
29777e0fd7 Don't overshoot the last sibling when iterating frames. Bug 663295 (whitespace change with correct bug number) 2011-06-15 10:51:36 +03:00
Simon Montagu
5547639c9c Force newlines only at 0xa, not 0xd. Bug 663662, r=roc 2011-06-15 10:45:57 +03:00
Simon Montagu
7ad7f56db8 Include continuations of frames with no newline. Bug 582181, r=roc 2011-06-15 10:45:57 +03:00
Simon Montagu
f38c8b378d Don't overshoot the last sibling when iterating frames. Bug 66329, r=roc 2011-06-15 10:45:57 +03:00
Simon Montagu
523dc487a7 Bug 263359 part 4: resolve paragraph on encountering line breaks in preformatted elements. r=roc 2011-04-11 11:00:28 +03:00
Simon Montagu
1336f90c90 Bug 263359/Bug 229367: resolve paragraph on encountering <br> or embedded block elements. r=roc 2011-04-11 10:59:30 +03:00
Simon Montagu
1eb730990c Bug 263359 part 2.5: cache lines per frame in TraverseFrames. r=roc 2011-06-09 09:29:08 +03:00
Simon Montagu
418f703123 Bug 263359 part 2: split nsBidiPresUtils::Resolve into Resolve and ResolveParagraph. r=roc 2011-04-11 10:59:30 +03:00
Simon Montagu
5d58ea8dde Bug 263359 part 1.5: remove nsDirectionalFrame. r=roc 2011-04-11 10:59:30 +03:00
Simon Montagu
c52ad68305 Bug 263359 part 1: refactor bidi resolution code, combining InitLogicalArray and CreateBlockBuffer. r=roc 2011-04-11 10:59:30 +03:00
Simon Montagu
b5f2348b59 Back out bug 263359 and bug 624798 because of performance regressions (bug 650189) 2011-04-27 11:47:18 +03:00
Jonathan Watt
be79dfa52e Bug 649726 - Move nsHTMLContainerFrame static view methods to nsContainerFrame. r=bz. 2011-04-19 12:55:11 +01:00
Zack Weinberg
5fabf32602 Bug 174055, part 7: remove unnecessary members from nsFontMetrics. 2011-04-08 08:32:29 -07:00
Zack Weinberg
e93c385aef Bug 174055, part 1: minimize inclusion of nsI(Thebes)FontMetrics.h. 2011-04-07 18:04:41 -07:00
Zack Weinberg
c6e8ebe0e0 Bug 266236 part 8: Change nsRenderingContext::GetDeviceContext and ::GetFontMetrics to return bare pointers. 2011-04-07 18:04:40 -07:00
Zack Weinberg
fc6685866d Bug 266236 part 6: Change out-parameters to return values and remove a bunch of default parameters that were never called with non-default values. 2011-04-07 18:04:40 -07:00