Simon Montagu
64497f2835
The test for bidi isolated subparagraphs should be > 0, not > 1. Bug 859093, r=roc
2013-04-08 23:25:34 -07:00
Boris Zbarsky
a68da9e914
Bug 852501 part 4. Make CreateContinuingFrame infallible. r=dholbert
2013-03-19 21:47:49 -04:00
L. David Baron
c5b9eee040
Bug 781360 patch 3: Rename {nsIFrame,nsStyleContext,nsComputedDOMStyle}::GetStyle* to Style*, since they can never return null. r=dholbert
...
Except for the changes in:
layout/generic/nsIFrame.h (part)
layout/style/nsComputedDOMStyle.h (all)
layout/style/nsRuleNode.cpp (part)
layout/style/nsStyleContext.cpp (part)
layout/style/nsStyleContext.h (part)
(see patch 3b in the bug), this patch was written with the sed script:
s/\<GetStyle\(Font\|Color\|List\|Text\|Visibility\|Quotes\|UserInterface\|TableBorder\|SVG\|Background\|Position\|TextReset\|Display\|Content\|UIReset\|Table\|Margin\|Padding\|Border\|Outline\|XUL\|SVGReset\|Column\)\>/Style\1/g
2013-02-16 13:51:02 -08:00
L. David Baron
d282c8380c
Bug 841789, patch 2: Fix callers that are going through the style context to get style structs rather than using the nsIFrame shortcuts. r=dholbert
...
This is just a code simplification that I noticed while reading through
patch 1.
2013-02-15 21:38:34 -08:00
L. David Baron
50d4e367af
Bug 841789, patch 1: Rename nsIFrame::GetStyleContext() to nsIFrame::StyleContext() since it can never return null. r=dholbert
...
This makes it conform to our convention that getters returning pointers
that can never be null do not begin with "Get".
2013-02-15 21:38:33 -08:00
Simon Montagu
59d34932f8
Check for fluid continuations up the parent chain and make them non-fluid. Bug 818454, r=roc
2013-02-11 23:45:55 -08:00
Simon Montagu
5b19c8df48
Reapply the patch from bug 722137 to fix bug 826163, r=roc, sec-approval=dveditz
2013-02-11 23:45:52 -08:00
Mats Palmgren
b7ae90666d
Bug 786533 - Replace NS_MIN/NS_MAX with std::min/std::max and #include <algorithm> where needed. r=ehsan
2013-01-15 13:22:03 +01:00
Chris Peterson
63e242521e
Bug 829344 - Part 4: Fix gcc -Wlogical-op warnings from PRBool/bool conversion. r=ehsan
2013-01-10 17:56:51 -08:00
Jonathan Kew
6d18ba3e6c
bug 818454 - backout change from bug 722137, no longer needed. r=smontagu
2012-12-12 20:55:09 +00:00
Simon Montagu
e826974c31
Don't split inlines with bidi-isolated kids unnecessarily when they don't have siblings. Bug 793233, r=roc
2012-10-25 01:36:37 -07:00
David Zbarsky
45f6f3a578
Bug 799407: Enable FAIL_ON_WARNINGS in more of layout/ r=roc
2012-10-15 01:42:40 -04:00
David Zbarsky
2798f40d68
Backout 784bb7c5ea9c (Bug 799407) for bustage
2012-10-15 02:14:34 -04:00
David Zbarsky
b26a495b99
Bug 799407: Enable FAIL_ON_WARNINGS in more of layout/ r=roc
2012-10-15 01:42:40 -04:00
David Zbarsky
4085f74a3f
[Bug 799407] Fix build warnings in layout r=roc
2012-10-10 01:00:05 -04:00
Simon Montagu
fba947c973
Don't forget to empty the buffer after ResolveParagraph. Bug 788086, r=roc
2012-09-04 00:46:43 -07:00
Ehsan Akhgari
e368dc9c85
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Simon Montagu
ea7a4c97c7
Don't split inline ancestors of bidi frames if we don't have any child frames after the split. Bug 779003, r=roc
2012-08-13 20:51:36 -07:00
Cameron McCormack
7670328c6c
Bug 655877 - Part 16: Treat all values of display other than 'none' as 'inline' in SVG text frames. r=roc
2012-08-02 21:38:51 +10:00
Cameron McCormack
d7e9a93257
Bug 655877 - Part 14: Ignore float in SVG text frames. r=roc
2012-08-02 21:38:49 +10:00
Aryeh Gregor
d0ad5a7d0c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Mats Palmgren
c64a09bff4
Bug 764541. r=smontagu
2012-06-21 12:51:38 +02:00
Ryan VanderMeulen
5f2a19ee6e
Revert c39d36167b99 due to a horribly munged backout.
2012-06-10 19:44:50 -04:00
Ryan VanderMeulen
6d6c4efbab
Backout the bug 754202 backout due to orange.
2012-06-10 19:37:47 -04:00
Robert O'Callahan
7b4d308d3c
Bug 731293. Remove nsFrameManager parameter from nsLayoutUtils::GetParentOrPlaceholderFor. r=mats
2012-06-09 00:22:25 +12:00
Gervase Markham
82ff7027aa
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Simon Montagu
d794821277
Make unicode-bidi: [-moz-]plaintext apply to inline elements. Bug 746987, r=roc
2012-05-09 11:44:52 +03:00
Simon Montagu
79230875d9
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
314a9d32f7
Check for orphaned non-fluid continuations after deleting content. Bug 730562, r=roc
2012-03-21 16:50:54 -07:00
Simon Montagu
45be3cde72
Check for orphaned fluid continuations after deleting content. Bug 726460, r=roc
2012-03-21 16:50:37 -07:00
Simon Montagu
5a201aafa0
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
f2b543f7d7
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
68a79f10ae
Bug 731615 - Eliminate duplicate headers in layout. rs=smontagu
2012-02-29 10:57:47 -05:00
Jonathan Kew
adfa2f07b4
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
ddfcd4253d
Treat <wbr> like ZERO WIDTH SPACE during bidi resoltion. Bug 729047, r=ehsan
2012-02-25 23:12:55 -08:00
Jonathan Kew
c7fa86d451
bug 724826 pt 1 - move various Unicode property tables from gfx to intl. r=smontagu
...
--HG--
rename : gfx/thebes/gfxUnicodeProperties.h => intl/unicharutil/public/nsUnicodeProperties.h
rename : gfx/thebes/gfxUnicodeScriptCodes.h => intl/unicharutil/public/nsUnicodeScriptCodes.h
rename : gfx/thebes/gfxUnicodeProperties.cpp => intl/unicharutil/src/nsUnicodeProperties.cpp
rename : gfx/thebes/gfxUnicodePropertyData.cpp => intl/unicharutil/src/nsUnicodePropertyData.cpp
rename : gfx/thebes/genUnicodeScriptData.pl => intl/unicharutil/tools/genUnicodePropertyData.pl
2012-02-24 10:15:46 +00:00
Simon Montagu
72285af510
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
13b7185e53
Remove unnecessary test for next sibling. Bug 722137, r=roc
2012-01-30 11:05:28 -08:00
Simon Montagu
67def118d9
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
78d0f2c7ca
Bug 515530 - Remove nsHTMLContainerFrame. r=roc
2011-12-27 21:18:48 +01:00
Simon Montagu
7ebbe876bb
Ensure that Reset is always called before using the subparagraph. Bug 707098, r=roc
2011-12-07 12:07:42 +02:00
Simon Montagu
83dc6b0d97
Test for next-continuations before doing bidi resolution. Bug 704837, r=roc
2011-11-24 16:16:42 +02:00
Simon Montagu
47421feaee
Test the containing frame for continuations, not the child. Bug 698706, r=roc
2011-11-07 16:26:50 +02:00
Simon Montagu
928f8e82ad
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
23fcb4824f
Implement unicode-bidi: -moz-plaintext in layout. Bug 662288, r=roc
2011-10-18 14:51:58 +02:00
Simon Montagu
96745d8bdd
Remove unnecessary method argument. Bug 613149, r=roc
2011-10-18 14:51:57 +02:00
Simon Montagu
8920dd6e82
Implement unicode-bidi: -moz-isolate in layout. Bug 613149, r=roc
2011-10-18 14:51:57 +02:00
Simon Montagu
738e432597
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
92064e6d3f
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
d2b70213ac
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
...
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Mats Palmgren
f1c56f2e22
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
12d902137b
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
c5979d144a
Make all nsBidiPresUtils methods static. Bug 624798, r=roc
2011-04-13 12:23:49 +03:00
Simon Montagu
56e2d64dbc
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
b3069512b5
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
acfd91cd49
Bug 661584 - Substitute final PR_(MAX|MIN|ABS|ROUNDUP) macro calls; r=roc
2011-07-03 11:53:40 +02:00
Simon Montagu
9cada4d324
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
ebb4d3b611
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
e7e3561393
Force newlines only at 0xa, not 0xd. Bug 663662, r=roc
2011-06-15 10:45:57 +03:00
Simon Montagu
e5fa7e72ec
Include continuations of frames with no newline. Bug 582181, r=roc
2011-06-15 10:45:57 +03:00
Simon Montagu
1f51f3536b
Don't overshoot the last sibling when iterating frames. Bug 66329, r=roc
2011-06-15 10:45:57 +03:00
Simon Montagu
f15e63b59e
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
bd31151e86
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
03eab42cad
Bug 263359 part 2.5: cache lines per frame in TraverseFrames. r=roc
2011-06-09 09:29:08 +03:00
Simon Montagu
8a9c0b3f06
Bug 263359 part 2: split nsBidiPresUtils::Resolve into Resolve and ResolveParagraph. r=roc
2011-04-11 10:59:30 +03:00
Simon Montagu
2fcf206e42
Bug 263359 part 1.5: remove nsDirectionalFrame. r=roc
2011-04-11 10:59:30 +03:00
Simon Montagu
5deaf7deba
Bug 263359 part 1: refactor bidi resolution code, combining InitLogicalArray and CreateBlockBuffer. r=roc
2011-04-11 10:59:30 +03:00
Simon Montagu
f213cf876f
Back out bug 263359 and bug 624798 because of performance regressions (bug 650189)
2011-04-27 11:47:18 +03:00
Jonathan Watt
a5b747bfa7
Bug 649726 - Move nsHTMLContainerFrame static view methods to nsContainerFrame. r=bz.
2011-04-19 12:55:11 +01:00
Zack Weinberg
d856f0c057
Bug 174055, part 7: remove unnecessary members from nsFontMetrics.
2011-04-08 08:32:29 -07:00
Zack Weinberg
9f143f420f
Bug 174055, part 1: minimize inclusion of nsI(Thebes)FontMetrics.h.
2011-04-07 18:04:41 -07:00
Zack Weinberg
86131020a5
Bug 266236 part 8: Change nsRenderingContext::GetDeviceContext and ::GetFontMetrics to return bare pointers.
...
--HG--
rename : gfx/src/nsThebesRenderingContext.cpp => gfx/src/nsRenderingContext.cpp
rename : gfx/src/nsThebesRenderingContext.h => gfx/src/nsRenderingContext.h
extra : rebase_source : 36dd32d715cb75e99cd3a69e460c000c1777d6a6
2011-04-07 18:04:40 -07:00
Zack Weinberg
ab24450ef1
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.
...
--HG--
rename : gfx/src/nsThebesRenderingContext.cpp => gfx/src/nsRenderingContext.cpp
rename : gfx/src/nsThebesRenderingContext.h => gfx/src/nsRenderingContext.h
extra : rebase_source : 0511852e51c2ad4d4833d6f8f2f61d46130a7151
2011-04-07 18:04:40 -07:00
Jan Küchler
c510bc3046
Bug 266236 part 3: Mechanical rename of nsIRenderingContext and nsThebesRenderingContext to nsRenderingContext. Mechanical substitution of nsRefPtr<nsRenderingContext> for nsCOMPtr<nsRenderingContext>.
...
--HG--
rename : gfx/src/nsThebesRenderingContext.cpp => gfx/src/nsRenderingContext.cpp
extra : rebase_source : 34884bfcafd885feaf73300bc7246cd192062a48
2011-04-07 18:04:40 -07:00
Jan Küchler
ebb2f0c7ec
Bug 266236 part 1: Preliminary API cleanup on nsIRenderingContext.
...
--HG--
extra : rebase_source : a21ffad484f47103e403b8316eae5fdfd815c2cb
2011-04-07 18:04:39 -07:00
Simon Montagu
c808d636dc
Make all nsBidiPresUtils methods static. Bug 624798, r=roc
2011-04-13 12:23:49 +03:00
Simon Montagu
be2fe407f5
Tweak to the patch for bug 263359 to prevent regressing bug 644768, r=roc
2011-04-11 11:00:33 +03:00
Simon Montagu
68606724e4
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
c112e2354d
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
8e3b653b0c
Bug 263359 part 2: split nsBidiPresUtils::Resolve into Resolve and ResolveParagraph. r=roc
2011-04-11 10:59:30 +03:00
Simon Montagu
030f555e66
Bug 263359 part 1.5: remove nsDirectionalFrame. r=roc
2011-04-11 10:59:30 +03:00
Simon Montagu
90fff54b37
Bug 263359 part 1: refactor bidi resolution code, combining InitLogicalArray and CreateBlockBuffer. r=roc
2011-04-11 10:59:30 +03:00
Simon Montagu
e1109b7657
Debugging code for Bidi resolution. NPOTDB
2011-04-11 10:59:29 +03:00
Ehsan Akhgari
119ec44c6b
Back out bug 263359 because it has caused bug 645119
2011-03-25 18:15:29 -04:00
Simon Montagu
72d30eea0f
Bug 263359 part 5: optimization -- don't do bidi resolution if the text is monodirectional. r=roc
2011-03-24 11:28:45 +02:00
Simon Montagu
2ed359ac6d
Bug 263359 part 4: resolve paragraph on encountering line breaks in preformatted elements
2011-03-24 11:28:45 +02:00
Simon Montagu
ec7706761d
Bug 263359 part 3: resolve paragraph on encountering <br> or embedded block elements
2011-03-24 11:28:44 +02:00
Simon Montagu
0fc4771947
Bug 263359 part 2: split nsBidiPresUtils::Resolve into Resolve and ResolveParagraph. r=roc
2011-03-24 11:28:44 +02:00
Simon Montagu
53a261431c
Bug 263359 part 1.5: remove nsDirectionalFrame.
2011-03-24 11:28:44 +02:00
Simon Montagu
bfef246b4b
Bug 263359 part 1: refactor bidi resolution code, combining InitLogicalArray and CreateBlockBuffer. r=roc
2011-03-24 11:28:44 +02:00
Simon Montagu
ac0eb6cddb
Debugging code for Bidi resolution. NPOTDB
2011-03-24 11:28:44 +02:00
Robert O'Callahan
fc3314bc13
Bug 613696. Always use the presshell's reference rendering context to create textruns when we draw text via nsIThebesFontMetrics::DrawString, to be consistent with the textruns we measure during reflow. r=dbaron,a=blocking
2011-01-17 09:23:33 +13:00
Peter Van der Beken
a5d2efc280
Fix for bug 624722 (nsBidiPresUtils should participate in CC).; r=ehsan a=roc
2011-01-11 14:19:00 -05:00
Simon Montagu
3bd533614c
Basic bidi support for SVG. Bug 620446, r=roc, a=roc
2011-01-04 00:52:17 -08:00
Simon Montagu
4421d80c31
Don't include floats in bidi resolution and reordering, unless they are first-letters. Bug 588739, r+a=roc
2010-09-06 17:33:18 +03:00
Simon Montagu
e2d46b52f2
Check that frame offsets are within content. Bug 579655, r=roc, blocking2.0=dsicore
2010-08-10 10:08:59 +03:00
Simon Montagu
f0880461a6
Don't make bidi continuations out of empty text frames. Bug 572582, r=roc
2010-06-20 22:33:34 -07:00
Simon Montagu
54129bed48
When bidi resolving makes a frame's continuations non-fluid, make sure that its parents also have non-fluid continuations. Bub 534367, r=roc
2010-06-13 20:16:55 -07:00
Vladimir Vukicevic
73cbd73f4a
b=566447; add presshell memory reporter; r=bz
2010-05-31 19:19:35 -07:00
Simon Montagu
85a1e8061a
Don't split frames in bidi resolution that have the same resolved directionality but different character types. Bug 399850, r=ehsan, roc
2010-05-10 23:14:05 -07:00