Commit Graph

428 Commits

Author SHA1 Message Date
Ryan VanderMeulen
86511bf718 No Bug - Re-alphabetize mathml crashtest list. DONTBUILD 2012-05-17 09:46:16 -04:00
Frédéric Wang
86e8d70fbd Bug 716349 - Crashtest. r=karlt 2012-05-17 09:38:32 -04:00
Frédéric Wang
42068c9eeb Bug 716349 - Prevent invalid metrics for mspace. r=karlt 2012-05-17 09:37:55 -04:00
Frédéric Wang
7bfaa7db08 Crashtest for bug 398038. r=karlt 2012-05-15 18:30:15 -04:00
Frédéric Wang
b55dc91e7f Bug 677036 - Unify parsing of length and mpadded attributes. r=karlt 2012-05-15 18:30:14 -04:00
François Wang
4880412be8 Bug 736010 - Make downloaded fonts usable in nsMathMLChar. r=karlt 2012-03-26 17:49:44 +02:00
Frédéric Wang
b207847234 Bug 657279 - maction: transmit automatic data when the selected child changes. r=karlt 2012-04-28 11:02:22 -04:00
Matt Woodrow
239be1bb0b Bug 749055 - Add index parameter to nsDisplayMathMLCharForeground. r=roc 2012-04-27 12:24:54 +12:00
Andrii Zui
effbdbf675 Bug 739556 - maction: selection attribute is taken into account only with actiontype="toggle". r=karlt 2012-04-24 19:49:59 -04:00
Frédéric Wang
c99aefe86b Bug 732834 - fix an error in the MathML stylesheet. r=karlt
--HG--
extra : rebase_source : 19e6787233ac4a7075152bb188b4f127e582be51
2012-04-17 13:01:10 +12:00
Robert O'Callahan
d0dd680745 Bug 733607. Restructure logic to compute snapped bounds of display items in layer coordinates. Moves responsibility for computing snapped bounds from within the display items to callers of GetBounds/GetOpaqueRegion. r=tnikkel
Previously we snapped the results of nsDisplayItem::GetBounds and
nsDisplayItem::GetOpaqueRegion internally. By tracking which display items were
inside transforms, we disabled snapping quite conservatively whenever an ancestor
had a transform, which is undesirable.

With this patch, we don't snap inside GetBounds or GetOpaqueRegion, but just return
a boolean flag indicating whether the item will draw with snapping or not. This flag
is conservative so that "true" means we will snap (if the graphics context has a transform
that allows snapping), but "false" means we might or might not snap (so it's always safe
to return false).

FrameLayerBuilder takes over responsibility for snapping item bounds. When it converts
display item bounds to layer pixel coordinates, it checks the snap flag returned from
the display item and checks whether the transform when we draw into the layer will be
a known scale (the ContainerParameters scale factors) plus integer translation. If both
are true, we snap the item bounds when converting to layer pixel coordinates. With
this approach, we can snap item bounds even when the items have ancestors with active
transforms.
2012-04-10 23:24:18 +12:00
Andriy Zui
b8deeea10e Bug 729924 - statusline actiontype should use the second child as a message. r=karlt 2012-03-29 11:50:02 +02:00
Phil Ringnalda
6e9250f387 Back out 0cb85ff0f764 (bug 738568), 9949bb092303 (bug 730209), 095fd525afa7 (bug 729924), dcf8929a8115 (bug 633602) because of widely scattered and unclear bustage on a CLOSED TREE 2012-03-28 22:37:46 -07:00
Andriy Zui
9d294c8dd9 Bug 729924 - maction: statusline actiontype should use the second child as a message. r=karlt 2012-03-28 21:00:14 -04:00
Ehren Metcalfe
c449b4f621 Bug 738957 - Remove the nsMathMLForeignFrameWrapper class and related files. r=karlt 2012-03-26 09:59:54 +02:00
Frédéric Wang
066d1dc1f2 Bug 732834 - Use MathJax fonts in mathematical text part 2. r=karlt 2012-03-09 20:52:14 -05:00
Frédéric Wang
c64ce5863c Bug 732834 - Use MathJax fonts in mathematical text part 1. r=karlt 2012-03-09 20:52:13 -05:00
François Wang
a9c8ff3349 Bug 320294 - Remove space between mi with mathvarian normal. r=karlt 2012-03-06 21:58:20 +01:00
Frédéric Wang
7e47b7aa6b Bug 701758 - Add page to convert MathJax font table into our own format. r=karlt 2012-02-28 18:40:38 -05:00
Frédéric Wang
68030b7e1d Bug 701758 - Add stretchy operator table for MathJax fonts. r=karlt 2012-02-28 18:40:38 -05:00
Jonathan Watt
cb807222d1 Bug 416581, part 1 - Move mLanguage from nsStyleVisibility to nsStyleFont. r=dbaron. 2012-01-24 13:09:55 +00:00
Jonathan Watt
85a481fa48 Bug 719408 - Remove broken paths from Makefile.in files in layout. r=bernd.mielke. 2012-01-23 16:58:52 +00:00
Benjamin Stover
0a52de4032 Bug 524925 - Recompute overflow without reflowing for transforms. part=1/6 r=dbaron
Add an extra change hint, UpdateOverflow, that can be used to specify that
a frame's overflow areas may have changed and that they need to be recalculated.
When a transform on a frame changes, instead of marking it for reflow, set this
hint instead.

There is an added virtual function on nsIFrame, UpdateOverflow, which is called
recursively on a frame when the corresponding hint is set, to allow it to
update its overflow areas.
2011-06-15 14:03:49 -07:00
Frédéric Wang
e36834e460 munder, mover, munderover: add support for the align attribute (bug 557476). r=karlt
--HG--
extra : rebase_source : 84702b0b078b0c85b10f9a168fbf64c1210a80ce
2012-01-05 11:20:39 +13:00
Mats Palmgren
9cc6cc3865 Bug 515530 - Remove nsHTMLContainerFrame. r=roc 2011-12-27 21:18:48 +01:00
Frédéric Wang
b86d2ec84c Bug 708072 - Add test page for stretchy and large operators, r=karlt 2011-12-06 13:24:00 -08:00
Frédéric Wang
987ee97832 Mirroring of operators for arabic math (Bug 208309) - part 2. r=karlt 2011-12-21 17:22:00 -05:00
Frédéric Wang
1484de6566 Mirroring of operators for arabic math (Bug 208309) - part 1. r=karlt 2011-12-21 17:22:00 -05:00
Frédéric Wang
a88f323fc8 Make lspace/rspace in mo behave as leading/trailing spaces (bug 534963). r=karlt 2011-12-21 17:21:59 -05:00
Frédéric Wang
7799b62af4 Overall Directionality of formulas (bug 534963). r=karlt 2010-01-05 11:22:31 +01:00
Frédéric Wang
c7129c18d6 Add a directionality flag on MathML frames (bug 534963). r=karlt 2010-01-03 18:52:33 +01:00
Mats Palmgren
1e2a52a8bd Bug 619273 - Move the selection state bit from frames to content nodes. r=smaug 2011-12-20 10:15:41 +01:00
Masayuki Nakano
1ccc442fa2 Bug 706406 <maction> should use system event group r=smaug+karlt 2011-12-01 16:40:51 +09:00
Boris Zbarsky
39a93f53d5 Bug 667576. Handle visited colors correctly in MathML. r=dbaron 2011-10-29 03:04:20 -04:00
Ehsan Akhgari
2a602a5685 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
d8e503c38b 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
Frédéric Wang
3bf1a006a2 Bug 356870 - Allow mlabeltdr to be used in mtable; r=karlt 2011-09-27 03:13:23 +01:00
Frédéric Wang
c0d070af99 Bug 398505 - Remove nonstandard actiontype "restyle" of maction; r=karlt 2011-09-14 08:51:24 +01:00
Mats Palmgren
ba8355dd94 Bug 685154 - Cleanup nsIFrame::GetParentStyleContextFrame and related code. r=roc
Make nsCSSFrameConstructor::ConstructTable return a null frame if
creating the inner table frame fails.  Simplify some code since we can
now depend on the invariant that a properly created outer table frame
always has a non-null inner table frame.
2011-09-12 09:08:07 -07:00
Masayuki Nakano
d9869bfccf Bug 669028 part.13 layout should use mozilla::LookAndFeel rather than nsILookAndFeel r=roc 2011-09-09 11:27:13 +09:00
Atul Aggarwal
7ac21a6a10 Bug 678708 - nsMathMLmactionFrame::MouseListener::HandleEvent may abort in debug mode; r=karlt 2011-08-31 13:16:13 +01:00
Mats Palmgren
6894179e71 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
L. David Baron
16759869c5 Remove overflow handling that should have been removed along with the standards-mode text-shadow of text-decoration handling in bug 403524, changeset 83b2648ee442. (Bug 680505, patch 1) r=roc
Since this affects only the *visual* overflow and not the *scrollable*
overflow, this patch should result in no behavior changes, since the
necessary visual overflow is added in
nsTextFrame::UnionAdditionalOverflow (since the text frame now draws the
shadows of text decorations, just like it draws text decorations
themselves).
2011-08-20 21:35:56 -04:00
L. David Baron
22f0790155 Remove the multiple-parameter versions of nsRenderingContext::SetFont. (Bug 678671, patch 5) r=roc
This changes the only remaining callers (in nsMathMLChar) to pass the
correct language, which they were not previously doing, which should
improve the correctness of font selection and also reduce the number of
unique font metrics objects requested (which helps nsFontCache
effectiveness).  Those callers, however, remain the odd font users
within all of layout.
2011-08-14 10:08:04 -07:00
L. David Baron
0cd491390d Replace all uses of nsLayoutUtils::SetFontFromStyle with GetFontMetricsForFrame or GetFontMetricsForStyleContext and remove SetFontFromStyle. (Bug 678671, patch 2) r=roc
There was nothing wrong with SetFontFromStyle, except that it's just one
more API to think about (and one more API to audit and modify for font
inflation work to happen in bug 627842).
2011-08-14 10:08:04 -07:00
L. David Baron
2c717f398d Switch lots of callers to using nsLayoutUtils::GetFontMetricsForFrame and nsLayoutUtils::GetFontMetricsForStyleContext. (Bug 678671, patch 1) r=roc
This changes a number of callers that were previously bypassing the use
of the correct language (with either no language or the charset-detected
language on the pres context via nsPresContext::GetMetricsFor) and/or
the correct user font set to pass the correct values, which should
improve the correctness of the behavior of whatever they were using the
fonts for, and also reduce the number of unique sets of font metrics
requested (which helps nsFontCache effectiveness).
2011-08-14 10:08:04 -07:00
Jonathan Hage
0292adecf2 Bug 669713 - Increment the scriptlevel of the over child in <munderover accent=true> when rendered as a supscript; r=karlt 2011-08-14 11:17:22 +02:00
Jonathan Hage
822cfb4c1d Bug 668204 - Merge nsMathMLmunderFrame and nsMathMLmoverFrame into nsMathMLmunderoverFrame. r=karlt 2011-08-13 17:22:12 +02:00
Ms2ger
d377c55ed2 Bug 677101, part c - Reduce nsIDOMText.h inclusions; r=volkmar 2011-08-11 15:29:58 +02:00
Frédéric Wang
85e373a27c Bug 601436 - mtable 'align' attribute: negative rownumbers are wrongly interpreted. r=roc 2011-08-07 01:29:00 -04:00
Frédéric Wang
71dfe7521a b=557481 Change comments about TeX/Mathematica fonts to STIX/Asana fonts r=karlt
--HG--
extra : transplant_source : %92%3D%40%EE%90%16%21%EE%0F%E2%2C%B9m4%40%F9%AC%D2%3D%B8
2011-08-05 13:06:36 +12:00
Frédéric Wang
72793dfd70 b=669932 munderover: do not add space above/below when the over/under script is empty r=karlt
--HG--
extra : transplant_source : f%2B%7D%0A%8E%3F%3A%F5%B3I%E0%86%5E%99%E1%5D%D9%AEJ%C4
2011-08-05 13:04:43 +12:00
Frédéric Wang
d3d9a1c981 b=669932 take into account the base child vertical metrics for the computation of the munderover ascent/descent. r=karlt
--HG--
extra : transplant_source : %B7%0DP%06xl%02t%24%AF%2B%EAiM%29%CC%A5%0C%9F%DE
2011-08-05 12:59:12 +12:00
Frédéric Wang
04012253b4 b=669932 munderover: consider underscript vertical metrics during the underscript attachment phase instead of the overscript attachment phase. r=karlt
--HG--
extra : transplant_source : %B6%29%E1%1B%D4%0D%84fV%B9%1F%16%15%3Cu%A4%22%A0%94%F1
2011-08-05 12:57:27 +12:00
Vitor Menezes
cf291058cb Bug 403524: Remove the standards-mode text-decoration code and use the quirks-mode code in all modes. r=dbaron 2011-08-03 11:30:58 -07:00
Nigel Babu
08eba5f725 Bug 672444 - Remove unused variable 'oldValue' in nsMathMLmpaddedFrame::UpdateValue; r=karlt 2011-07-29 14:38:45 +02:00
Jonathan Hage
07f13c231b Bug 669719 - support the displaystyle attribute on the <math/> element. r=roc 2011-07-12 12:06:34 -04:00
Florian Scholz
2d8057d437 b=668969 size fences for empty mfenced in the same way as for mfenced with child(ren) occupying no space r=karlt
--HG--
extra : rebase_source : ca173f8830e5d87a6132d04f0df72aec6458f96e
2011-07-11 16:11:28 +12:00
Jonathan Hage
1ea265fc04 Bug 557474 - mpadded tests. r=karlt 2011-07-03 09:56:35 +02:00
Jonathan Hage
5eef61e37f Bug 557474 - Add support for the voffset attribute, part 2. r=karlt 2011-07-03 09:54:25 +02:00
Jonathan Hage
afcbeab43d Bug 557474 - Add support for the voffset attribute, part 1. r=karlt 2011-07-03 09:54:01 +02:00
Jonathan Hage
fa434b9582 Bug 557474 - Do not allow lspace as a pseudounit. r=karlt 2011-07-03 09:53:17 +02:00
Daniel Cazacu
3c41d98423 Bug 648140 - Check some namespaces in nsMathMLContainerFrame.cpp. r=fred.wang 2011-07-01 12:20:35 +02:00
Jonas Sicking
3aa83ba84d Bug 664058: Remove Add/RemoveEventListenerByIID from mathml code. r=smaug 2011-06-28 10:59:14 -07:00
Frédéric Wang
81ac5db5e4 Do not underline MathML links (bug 504324). r=roc. 2011-06-24 14:54:37 +02:00
Mounir Lamouri
3c638f1884 Merge last green changeset of mozilla-inbound into mozilla-central. 2011-06-23 11:15:52 +02:00
Florian Scholz
8d778c04d5 Bug 603106 - Make mfrac linethickness="medium" use the default linethickness; r=karlt 2011-06-23 10:30:21 +02:00
Frédéric Wang
ecb832b98f Bug 407439 - Support for Asana Math font in MathML. r=karlt
--HG--
extra : rebase_source : 829d002f8d1e448d5d4b13893046873b4bb34c44
2011-06-22 11:49:26 -04:00
Frédéric Wang
6762a2aaf2 support drawing non-BMP characters for stretchy operators (bug 407439). r=karlt
--HG--
extra : rebase_source : 8a0351a8a0b45de4e783050608e513582b8a345c
2011-06-22 11:49:11 -04:00
Frédéric Wang
b1082b4246 Always start the lookup of largeop variants at size=1 (bug 584332). r=karlt
--HG--
extra : rebase_source : 05bc57d2c0b0989f887e42d0d52a7a993e27972a
2011-06-22 11:48:56 -04:00
Jonathan Hage
9c55c33c76 Bug 650530 - Implement names for negative spaces; r=karlt
--HG--
extra : rebase_source : 73161560d3c781c81c780995c0abda5bf63c780c
2011-06-22 11:55:05 -04:00
Jonathan Hage
cd773d5fa7 Bug 557084 - Remove deprecated attributes and empty <mrow/>'s in mozilla/src/layout/mathml/tests/; r=fred.wang
--HG--
extra : rebase_source : 70b0187bd38c92d91df5bec8713ebe7d2ae4b14d
2011-06-22 11:53:07 -04:00
Jesse Ruderman
438a5d6dc3 Add crashtest from bug 541620 2011-06-20 11:42:05 -07:00
Masayuki Nakano
f96e0ef619 Bug 663041 layout should use mozilla::Preferences r=roc 2011-06-12 11:30:16 +09:00
Dominic Fandrey
0ab2f46136 Bug 645398 - Substitute PR_(MAX|MIN|ABS|ROUNDUP) macro calls; r=roc 2011-06-02 14:56:50 +02:00
Jesse Ruderman
6038ea693b crash test for bug 655451
--HG--
extra : transplant_source : %3BLxy%2C%80%04%C0V%9D%FF%85%1C-%90%EE%5E%C4%C4U
2011-05-30 09:21:16 +12:00
Karl Tomlinson
3a2515796d b=655451 record first of math frame continuations as mstyle ancestor r=bz
--HG--
extra : transplant_source : sg%609%81c%AE%8A%E0%F9%DF9M%BEn%B7%19%90%B4%10
2011-05-30 09:21:12 +12:00
Karl Tomlinson
8f0f24593e b=657041 initialize with NS_MATHML_STRETCH_ALL_CHILDREN_VERTICALLY for when InheritAutomaticData does not get called r=fred
--HG--
extra : transplant_source : %E3%07S3%ABv%EC%B67%5C%25%29CH%12%99%8C%B43P
2011-05-19 11:56:14 +12:00
Ed Morley
d260544670 Bug 316661 - Part A - Remove null-checks before delete. r=bsmedberg 2011-05-17 16:01:36 +02:00
Frédéric Wang
d4870de08c mathvariant on mstyle not applied to mi (bug 569125). r=karlt
--HG--
extra : rebase_source : bdce878ef359b11ada93c4e378855f8bde445243
2011-05-13 09:37:03 +12:00
Frédéric Wang
e569786c9d Support for attributes "accent" and "accentunder" on mstyle (bug 569125). r=karlt
--HG--
extra : rebase_source : 349a7d0fa10c165404592576fb9eb31d95b2dbb7
2011-05-13 09:31:52 +12:00
Frédéric Wang
4aca96362b Support for attribute "open", "close" and "separators" on mstyle (bug 569125). r=karlt
--HG--
extra : rebase_source : f2e27dae9a993d0b8b707feb2a88b03570e5955d
2011-05-13 09:31:48 +12:00
Frédéric Wang
7572d1dc05 Support for attribute "notation" on mstyle (bug 569125). r=karlt
--HG--
extra : rebase_source : 58564e2ab4a41244beb224f214ac0b963ef2c0d8
2011-05-13 09:31:34 +12:00
Frédéric Wang
0711edd192 Support for attribute bevelled on mstyle (bug 569125). r=karlt
--HG--
extra : rebase_source : c7e921ba17bb26d10310d65c8da88d1f183023ba
2011-05-13 09:31:07 +12:00
Frédéric Wang
5404068fed Support for attribute "selected" on mstyle (bug 569125). r=karlt
--HG--
extra : rebase_source : 7da767a2d114d17b4fb44dc632451307d07de216
2011-05-12 20:18:13 +12:00
Karl Tomlinson
044845b9b6 assertion test for bug 654928
--HG--
extra : rebase_source : ee5ee93f130842c175ffc09ae1e71874f8345eef
2011-05-10 17:58:05 +12:00
Karl Tomlinson
a7fbcdab37 b=654928 don't assume that the embellished operator is the first child r=fred
--HG--
extra : rebase_source : 8eb1a001b99c13df914a877cca6758e023ba9e31
2011-05-13 12:01:08 +12:00
Craig Topper
cc15a2a6e3 Bug 648925 - Part 1: Change uses of nsICSSRule to css::Rule. r=bzbarsky 2011-04-07 18:23:46 -07:00
Frédéric Wang
fe04ad36c7 MathML Operator dictionary: fix conflicts and add entries for bars and quadruple arrows (bug 414294). r=karlt 2011-04-29 17:39:22 -04:00
Daniel Holbert
72f118ff38 Bug 651567: Remove unused variable 'xHeight' from nsMathMLmunderFrame. r=karlt 2011-04-21 10:08:11 -07:00
Zack Weinberg
51864c09d8 Bug 651017, part 1: minimize inclusion of ns*DeviceContext.h; move the printing error codes to nsIDeviceContextSpec.h; os2 small widget cleanup.
--HG--
extra : rebase_source : 5b7cebe68f71a760463e3522b159c7cde8a72f5e
2011-04-16 18:22:41 -07:00
Robert O'Callahan
d4c414cf18 Bug 641426. Part 8: Replace gfxRect::Outset/Inset with Inflate/Deflate. Also slip in a conversion constructor from nsIntRect to gfxRect. r=tnikkel 2011-04-19 15:07:51 +12:00
Robert O'Callahan
307547d062 Bug 641426. Part 3: Convert gfxRect::pos/size to x/y/width/height. r=joe,sr=cjones 2011-04-19 15:07:21 +12:00
Robert O'Callahan
17b91a87af Bug 641426. Part 1: Create Point and Size templates. r=joe,sr=cjones 2011-04-19 15:07:21 +12:00
Zack Weinberg
52c99aabb7 Bug 174055, part 6: eliminate pointless nsresult return values. 2011-04-07 21:18:43 -07:00
Zack Weinberg
624a6e3ce5 Bug 174055, part 5: prune unused and unimplemented methods. 2011-04-07 20:07:27 -07:00
Zack Weinberg
42ead75834 Bug 174055, part 4: mechanical fixups outside gfx. 2011-04-07 18:05:49 -07:00
Zack Weinberg
299386f14c Bug 174055, part 1: minimize inclusion of nsI(Thebes)FontMetrics.h. 2011-04-07 18:04:41 -07:00
Zack Weinberg
a2b5c4bfbb Bug 648197 (1/2): remove the #ifdef ALERT_MISSING_FONTS blocks in nsMathMLChar.cpp. 2011-04-07 14:47:04 -07:00
Zack Weinberg
f5a0843ac7 Bug 266236 part 9: Move nsBoundingMetrics to its own header and prune inclusions of nsRenderingContext.h.
--HG--
rename : gfx/src/nsThebesRenderingContext.cpp => gfx/src/nsRenderingContext.cpp
rename : gfx/src/nsThebesRenderingContext.h => gfx/src/nsRenderingContext.h
extra : rebase_source : 92660748436f03475e011184e2828f1db0ad63e0
2011-04-07 18:04:40 -07:00