Commit Graph

1111 Commits

Author SHA1 Message Date
Frédéric Wang
9238ff9ce9 Bug 757125 - Make updateOperatorDictionary.pl read mirrorable property. r=karlt 2012-05-28 21:09:25 -04:00
Frédéric Wang
0478d8a546 Bug 757703 - Restore support for non-zero unitless values in mpadded. r=karlt 2012-05-27 23:32:51 -04:00
Gervase Markham
82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Andrii Zui
c2a63c0b43 Bug 745535 - Implement AttributeChanged on nsMathMLmactionFrame. r=karlt 2012-05-18 13:35:43 -04:00
Ryan VanderMeulen
18deb8a052 No Bug - Re-alphabetize mathml crashtest list. DONTBUILD 2012-05-17 09:46:16 -04:00
Frédéric Wang
a38bf63fa9 Bug 716349 - Crashtest. r=karlt 2012-05-17 09:38:32 -04:00
Frédéric Wang
6fb9d09b88 Bug 716349 - Prevent invalid metrics for mspace. r=karlt 2012-05-17 09:37:55 -04:00
Frédéric Wang
e8578a7176 Crashtest for bug 398038. r=karlt 2012-05-15 18:30:15 -04:00
Frédéric Wang
2118333bb9 Bug 677036 - Unify parsing of length and mpadded attributes. r=karlt 2012-05-15 18:30:14 -04:00
François Wang
99fdbe540a Bug 736010 - Make downloaded fonts usable in nsMathMLChar. r=karlt 2012-03-26 17:49:44 +02:00
Frédéric Wang
a2468269dd Bug 657279 - maction: transmit automatic data when the selected child changes. r=karlt 2012-04-28 11:02:22 -04:00
Matt Woodrow
2b1ae85346 Bug 749055 - Add index parameter to nsDisplayMathMLCharForeground. r=roc 2012-04-27 12:24:54 +12:00
Andrii Zui
42a0a68e10 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
2dbf57356e 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
7c34e38876 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
cfb9998a09 Bug 729924 - statusline actiontype should use the second child as a message. r=karlt 2012-03-29 11:50:02 +02:00
Phil Ringnalda
9b1872fcc9 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
c8ae7cd529 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
23b7cab793 Bug 738957 - Remove the nsMathMLForeignFrameWrapper class and related files. r=karlt 2012-03-26 09:59:54 +02:00
Frédéric Wang
047e2a762d Bug 732834 - Use MathJax fonts in mathematical text part 2. r=karlt 2012-03-09 20:52:14 -05:00
Frédéric Wang
57f0e07437 Bug 732834 - Use MathJax fonts in mathematical text part 1. r=karlt 2012-03-09 20:52:13 -05:00
François Wang
c81bc40e1b Bug 320294 - Remove space between mi with mathvarian normal. r=karlt 2012-03-06 21:58:20 +01:00
Frédéric Wang
675ef1ca01 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
c7c71e1da2 Bug 701758 - Add stretchy operator table for MathJax fonts. r=karlt 2012-02-28 18:40:38 -05:00
Jonathan Watt
f36738d918 Bug 416581, part 1 - Move mLanguage from nsStyleVisibility to nsStyleFont. r=dbaron. 2012-01-24 13:09:55 +00:00
Jonathan Watt
26a5795109 Bug 719408 - Remove broken paths from Makefile.in files in layout. r=bernd.mielke. 2012-01-23 16:58:52 +00:00
Benjamin Stover
dc9cd57308 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
ec70dcfbda 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
78d0f2c7ca Bug 515530 - Remove nsHTMLContainerFrame. r=roc 2011-12-27 21:18:48 +01:00
Frédéric Wang
24ca2d1c34 Bug 708072 - Add test page for stretchy and large operators, r=karlt 2011-12-06 13:24:00 -08:00
Frédéric Wang
96e7ae00c7 Mirroring of operators for arabic math (Bug 208309) - part 2. r=karlt 2011-12-21 17:22:00 -05:00
Frédéric Wang
630d4a18be Mirroring of operators for arabic math (Bug 208309) - part 1. r=karlt 2011-12-21 17:22:00 -05:00
Frédéric Wang
f7965294ab 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
d2d546b146 Overall Directionality of formulas (bug 534963). r=karlt 2010-01-05 11:22:31 +01:00
Frédéric Wang
05ba069e25 Add a directionality flag on MathML frames (bug 534963). r=karlt 2010-01-03 18:52:33 +01:00
Mats Palmgren
498185f3f0 Bug 619273 - Move the selection state bit from frames to content nodes. r=smaug 2011-12-20 10:15:41 +01:00
Masayuki Nakano
0f825bbcf1 Bug 706406 <maction> should use system event group r=smaug+karlt 2011-12-01 16:40:51 +09:00
Boris Zbarsky
19437ca0c9 Bug 667576. Handle visited colors correctly in MathML. r=dbaron 2011-10-29 03:04:20 -04: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
Frédéric Wang
a11f9aab66 Bug 356870 - Allow mlabeltdr to be used in mtable; r=karlt 2011-09-27 03:13:23 +01:00
Frédéric Wang
57152238b5 Bug 398505 - Remove nonstandard actiontype "restyle" of maction; r=karlt 2011-09-14 08:51:24 +01:00
Mats Palmgren
15fc2f321d 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
6c3d3da0c3 Bug 669028 part.13 layout should use mozilla::LookAndFeel rather than nsILookAndFeel r=roc 2011-09-09 11:27:13 +09:00
Atul Aggarwal
6ed7527e17 Bug 678708 - nsMathMLmactionFrame::MouseListener::HandleEvent may abort in debug mode; r=karlt 2011-08-31 13:16:13 +01: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
L. David Baron
056a511714 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
b3f49b92ba 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
84b8b6bf64 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
d2b6891283 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
d68cbdf102 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
c9d5ac8edc Bug 668204 - Merge nsMathMLmunderFrame and nsMathMLmoverFrame into nsMathMLmunderoverFrame. r=karlt 2011-08-13 17:22:12 +02:00
Ms2ger
3fea5b3901 Bug 677101, part c - Reduce nsIDOMText.h inclusions; r=volkmar 2011-08-11 15:29:58 +02:00
Frédéric Wang
a3ea06bbc7 Bug 601436 - mtable 'align' attribute: negative rownumbers are wrongly interpreted. r=roc 2011-08-07 01:29:00 -04:00
Frédéric Wang
3514baef42 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
03b8e81191 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
da0a470d47 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
c9ae4d40a0 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
f82cd17bcb 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
456ebe41a9 Bug 672444 - Remove unused variable 'oldValue' in nsMathMLmpaddedFrame::UpdateValue; r=karlt 2011-07-29 14:38:45 +02:00
Jonathan Hage
d14defe899 Bug 669719 - support the displaystyle attribute on the <math/> element. r=roc 2011-07-12 12:06:34 -04:00
Florian Scholz
ee3ef5b0c8 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
fa91e535e7 Bug 557474 - mpadded tests. r=karlt 2011-07-03 09:56:35 +02:00
Jonathan Hage
f354fcf4bd Bug 557474 - Add support for the voffset attribute, part 2. r=karlt 2011-07-03 09:54:25 +02:00
Jonathan Hage
d9982f34ed Bug 557474 - Add support for the voffset attribute, part 1. r=karlt 2011-07-03 09:54:01 +02:00
Jonathan Hage
1ad17ada67 Bug 557474 - Do not allow lspace as a pseudounit. r=karlt 2011-07-03 09:53:17 +02:00
Daniel Cazacu
c2b4bebe39 Bug 648140 - Check some namespaces in nsMathMLContainerFrame.cpp. r=fred.wang 2011-07-01 12:20:35 +02:00
Jonas Sicking
bd6dbea0b9 Bug 664058: Remove Add/RemoveEventListenerByIID from mathml code. r=smaug 2011-06-28 10:59:14 -07:00
Frédéric Wang
5dceff6e2c Do not underline MathML links (bug 504324). r=roc. 2011-06-24 14:54:37 +02:00
Mounir Lamouri
e42912f4f7 Merge last green changeset of mozilla-inbound into mozilla-central. 2011-06-23 11:15:52 +02:00
Florian Scholz
9c230f2329 Bug 603106 - Make mfrac linethickness="medium" use the default linethickness; r=karlt 2011-06-23 10:30:21 +02:00
Frédéric Wang
90b2837d9e 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
8b6c701ead 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
9188cd4d18 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
4a4bdf1e3a Bug 650530 - Implement names for negative spaces; r=karlt
--HG--
extra : rebase_source : 73161560d3c781c81c780995c0abda5bf63c780c
2011-06-22 11:55:05 -04:00
Jonathan Hage
2a523bc1a6 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
0b957680dd Add crashtest from bug 541620 2011-06-20 11:42:05 -07:00
Masayuki Nakano
29305dc449 Bug 663041 layout should use mozilla::Preferences r=roc 2011-06-12 11:30:16 +09:00
Dominic Fandrey
968bf5196a Bug 645398 - Substitute PR_(MAX|MIN|ABS|ROUNDUP) macro calls; r=roc 2011-06-02 14:56:50 +02:00
Jesse Ruderman
c2f9576474 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
81e97ecb69 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
06e7bea554 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
91238e76b1 Bug 316661 - Part A - Remove null-checks before delete. r=bsmedberg 2011-05-17 16:01:36 +02:00
Frédéric Wang
9ce65b6bd0 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
8b4f6eb2f4 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
d52d2ea9a3 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
a5b58ee5ef 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
e16a3317ed 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
26afc4334e 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
f42c3f4575 assertion test for bug 654928
--HG--
extra : rebase_source : ee5ee93f130842c175ffc09ae1e71874f8345eef
2011-05-10 17:58:05 +12:00
Karl Tomlinson
b8560710cc 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
c3d4c659c7 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
c3bb00b6f0 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
a258b90bee Bug 651567: Remove unused variable 'xHeight' from nsMathMLmunderFrame. r=karlt 2011-04-21 10:08:11 -07:00
Zack Weinberg
8648dcc368 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
92fcae3d0b 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
1c5c997eb5 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
3c866720cc Bug 641426. Part 1: Create Point and Size templates. r=joe,sr=cjones 2011-04-19 15:07:21 +12:00
Zack Weinberg
ef90e52c10 Bug 174055, part 6: eliminate pointless nsresult return values. 2011-04-07 21:18:43 -07:00
Zack Weinberg
5731d401c8 Bug 174055, part 5: prune unused and unimplemented methods. 2011-04-07 20:07:27 -07:00
Zack Weinberg
b6b73ad75a Bug 174055, part 4: mechanical fixups outside gfx. 2011-04-07 18:05:49 -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
642f35826e Bug 648197 (1/2): remove the #ifdef ALERT_MISSING_FONTS blocks in nsMathMLChar.cpp. 2011-04-07 14:47:04 -07:00
Zack Weinberg
1628ea1551 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
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
f8eccd9ec7 Bug 266236 part 7: Simplify calling convention of SetClipRect and SetClipRegion.
--HG--
rename : gfx/src/nsThebesRenderingContext.cpp => gfx/src/nsRenderingContext.cpp
rename : gfx/src/nsThebesRenderingContext.h => gfx/src/nsRenderingContext.h
extra : rebase_source : b1c68e23a4fa67cdc09b151ad39d7560cdd8baf7
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
Zack Weinberg
4e540ce52f Bug 266236 part 4: Aggressively prune unused methods and dead #ifdefs from nsRenderingContext.
--HG--
rename : gfx/src/nsThebesRenderingContext.cpp => gfx/src/nsRenderingContext.cpp
rename : gfx/src/nsThebesRenderingContext.h => gfx/src/nsRenderingContext.h
extra : rebase_source : b2911406bbe1b5995d1a501c59e02b5fffefa390
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
Frédéric Wang
d5dde90b81 Bug 569124 - Make the math element support the attributes of mstyle. r=karlt 2011-04-09 23:36:31 -04:00
Frédéric Wang
e14021d292 b=605605 Uninitialised value used in nsMathMLChar r=karlt
--HG--
extra : transplant_source : _G%B6%C6%C6q%C0a%F0f-%CD%AF%FB%FE%F0%BAYc%D5
2011-03-25 16:38:59 +13:00
Frédéric Wang
9024614d36 Bug 21479 - Embellished operators - add rules for mstyle, mphantom, mpadded and mrow. r=karlt
--HG--
extra : transplant_source : %CDr%F474%A9%FD%80%D2%FC%AEJ%B6%93%E9%23%ECO%25z
2011-03-25 16:38:59 +13:00
Frédéric Wang
bccb667cb7 b=534970 updateOperatorDictionary.pl: add private data mirrorable r=karlt npotb
--HG--
extra : transplant_source : %B1%15%00%1A%DA%1A%F33%9B.x%E5%7F%EB%EDf%3F%1E%D7%F7
2011-03-25 16:38:58 +13:00
Frédéric Wang
961e833ae7 MathML Operator Dictionary: remove obsolete infix entries for coproduct, wedge and vee (bug 534970). r=karlt
--HG--
extra : transplant_source : f%0D%EA%DCP%B4%E0%B4%5B%D3%8DA%DF%D31%0A%8D%12%8A%2C
2011-03-25 16:38:58 +13:00
Frédéric Wang
2f90d7af7e MathML Operator Dictionary: fix three conflicts for symmetric or fence (bug 534970). r=karlt
--HG--
extra : transplant_source : %0A%B7XXNy%A7%04G%03%9Db%CC%7D%1C%A0%3D2%DE%BC
2011-03-25 16:38:58 +13:00
Frédéric Wang
8dd5a60ed6 MathML Operator Dictionary: fix conflicts for entries becoming accent (bug 534970). r=karlt
--HG--
extra : transplant_source : %EAn%3B%8A%B7%9Fs%BE%06%0C%EB%F17%7E%D7%CD%7E%8AG%C2
2011-03-25 16:38:58 +13:00
Frédéric Wang
ea6150c5dc MathML Operator Dictionary: add new fence, accent and largeop entries (bug 534970). r=karlt
--HG--
extra : transplant_source : %83%23%CB%EB%E9%D1%A7%27%86%87%08%82p%07%08%F9%82%BAz%8C
2011-03-25 16:38:58 +13:00
Frédéric Wang
70abd7dd65 MathML Operator Dictionary: fix space conflicts (bug 534970). r=karlt 2011-03-28 14:52:03 +13:00
Frédéric Wang
f8381ad954 MathML Operator Dictionary: add new entries which are neither stretchy nor largeop (bug 534970). r=karlt
--HG--
extra : transplant_source : %C61f%073%C9n%96%27%94%27%2A%7D%21%E3%06%3DK%A0%1D
2011-03-25 16:38:58 +13:00
Frédéric Wang
e91c34ca20 MathML Operator Dictionary: sort entries of the dictionary and remove minsize attributes (bug 534970). r=karlt
--HG--
extra : transplant_source : %97%AB%E6%8A%CA%D0Y%CB%C6%02%F5%3Fo%10%CF%A7%C7%D9r%CA
2011-03-25 16:38:58 +13:00
Craig Topper
678b9c7c11 Bug 576831 part 4. Remove nsICSSStyleRule and use mozilla::css::StyleRule instead. r=bzbarsky
--HG--
rename : layout/style/nsCSSStyleRule.cpp => layout/style/StyleRule.cpp
rename : layout/style/nsICSSStyleRule.h => layout/style/StyleRule.h
2011-03-10 21:48:57 -05:00
Robert O'Callahan
f38f22f331 Bug 602757. Part 5: Change HasText to GetComponentAlphaBounds. r=tnikkel,sr=dbaron,a=blocking 2011-01-03 14:48:09 +13:00
Shawn Wilsher
f1db0ae444 Merge mozilla-central into Places 2010-11-17 10:55:34 -08:00
Shawn Wilsher
deaabcb2a2 Merge mozilla-central to Places 2010-11-10 09:38:08 -08:00
Frédéric Wang
3202a9a3a8 Use u23AF instead of uE10B for stix extenders (bug 594244) r=karlt a=bsmedberg
--HG--
extra : rebase_source : fa67187d67b23489ceff8185cb61f1c12e17ad5e
2010-11-11 11:34:59 +13:00
Matt Woodrow
8a60164429 Bug 594983. Look inside display sublists to determine whether there is text for the layer. r=roc,a=blocking 2010-10-11 13:58:20 +13:00
L. David Baron
5a012f3090 Fix miscellaneous reflow methods to use new overflow area APIs. (Bug 542595, patch 19) r=roc a2.0=blocking2.0:beta8 2010-10-06 21:25:46 -07:00
Robert O'Callahan
7be62af7f1 Bug 584282. Use nsDisplayItem::ToReferenceFrame() instead of calling nsDisplayListBuilder::ToReferenceFrame, wherever possible. r=tnikkel,a=dbaron
--HG--
extra : rebase_source : 730ba8640cb37bd8484ff069b5d6fd46d9bc3e84
2010-08-13 22:01:58 +12:00
Robert O'Callahan
33a0aec926 Bug 584282. Add nsDisplayItem::mToReferenceFrame and initialize it in the constructor. r=tnikkel,a=dbaron
--HG--
extra : rebase_source : 496cbde7c495eb8872c3d0ffc0ca4c57c2a6a777
2010-08-13 22:01:13 +12:00
Frédéric Wang
2534d3f9fc Bug 414277 - scale stretchy operators when there is no glyph of suitable size. r=karlt a=dbaron
--HG--
extra : rebase_source : 325e318cbb27537229c9c14015133ba9222f4d29
2010-08-20 15:44:07 +12:00
Frédéric Wang
edb8d38e0c MathML Operator Dictionary: add private data integral (bug 534970). r=karlt a=dbaron
--HG--
extra : rebase_source : d4e1f0e8d80cc1cafa630c89f730d4f30e686766
2010-08-20 15:43:10 +12:00
Frédéric Wang
10be8e68cb MathML Operator Dictionary: update some entries whose stretchiness has changed (bug 534970). r=karlt a=dbaron
--HG--
extra : rebase_source : f6a56bd7e60f05d59c5a7571e1e888bb0b1edca1
2010-08-20 15:41:49 +12:00
Frédéric Wang
91de9e2cdb add private data integral (bug 534970) a=npotb 2010-11-08 09:34:44 +13:00
Frédéric Wang
06ce11a8ea Add a perl script to compare MathML operator dictionaries and check validity of our private data (bug 534970) 2010-11-08 09:32:54 +13:00
Ms2ger
7fdca7f763 Bug 538965 - part b: compress whitespace in MathML mfenced's open and close attributes; r=karlt a=bsmedberg 2010-11-05 11:57:51 +01:00
Ms2ger
7b04f77d8b Bug 538965 - part a: make nsMathMLmfencedFrame::CreateFencesAndSeparators return void; r=karlt a=bsmedberg 2010-11-05 11:57:39 +01:00
Frédéric Wang
b40094b647 Bug 524275 - Make nsStretchDirection available for any operators. r=karlt a=dbaron
--HG--
extra : rebase_source : 0df9e11112d215ce4158574622e1b67faf668b08
2009-11-21 22:11:05 +01:00
Frédéric Wang
7d5f56c2e5 MathML Operator Dictionary: make operator with a stretchy form use the same direction for all their forms (bug 534970). r=karlt a=dbaron
--HG--
extra : rebase_source : 74c2ded175993d3cdf9a21be586302727e60a613
2010-08-20 15:38:08 +12:00
Frédéric Wang
691ce60937 MathML Operator Dictionary: add entries for stretchy fences (bug 534970). r=karlt a=dbaron
--HG--
extra : rebase_source : e70fe8ac89cb77e0c71d7305d2ff4004fe7cf3df
2010-08-20 15:36:06 +12:00
Frédéric Wang
a9ee9244b5 MathML Operator Dictionary: add entries for vertical and horizontal arrows (bug 534970). r=karlt a=dbaron
--HG--
extra : rebase_source : 6ace7c7366574544cfe68967c2b562a11d5b820b
2010-08-20 15:33:36 +12:00
Frédéric Wang
24af5d319f MathML Operator Dictionary: remove infix entries for N-ary Union and Intersection (bug 534970). r=karlt a=dbaron
--HG--
extra : rebase_source : d6bbaf616bc013037915769bb9716ee21e33a0df
2010-08-20 15:32:22 +12:00
Robert O'Callahan
3133bff6c6 Bug 537890. Part 10: Fix nsPresContext and nsIDeviceContext unit-conversion methods to be explicit about using CSS logical units instead of physical units. r=dbaron 2010-08-13 21:58:04 +12:00
Robert O'Callahan
c0a3a641e0 Bug 537890. Part 4: Make points be a fixed number of CSS pixels. r=dbaron 2010-08-13 21:58:01 +12:00
Michael Ventnor
56ba116210 Bug 564991. Part 3: Create unique nsDisplayItem types for every single display item. r=tnikkel 2010-07-16 09:07:49 +12:00
Michael Kohler
10548f19c5 Bug 506041 - Correct misspellings in source code (Patch 3)
r=timeless

--HG--
extra : rebase_source : 1917c999a5865676ffb7ec3c2834c3e091bb64dc
2010-07-07 15:33:52 +02:00
Jesse Ruderman
3aa2e3fa71 Add bug numbers for all remaining asserts() annotations in crashtests and reftests 2010-07-01 19:33:56 -07:00
Boris Zbarsky
43f065f6ae Bug 494117 part 1. Rename eRestyle_Self to eRestyle_Subtree. r=dbaron 2010-06-18 12:23:05 -04:00
Frédéric Wang
0824cf30df Bug 569195 - Add support for STIX Fonts 1.0. r=karlt
--HG--
rename : layout/mathml/mathfontSTIXSize1.properties => layout/mathml/mathfontSTIXSizeOneSym.properties
extra : rebase_source : 81a64bf6f150e759937ea6869a8786d08ebae686
2010-06-11 10:15:43 +12:00
Jesse Ruderman
aedb18a96b Add a bunch of crashtests 2010-06-08 17:53:08 -07:00
Frederic Wang
789249b40a Bug 563365 - nsMathMLOperators::LookupOperators retrieves only the first form found. r=karlt 2009-11-21 23:25:55 +01:00
Boris Zbarsky
1b6aa7ce33 Bug 562700 part 2. Change the restyle-event functions to take Element. r=dbaron 2010-05-14 13:04:51 -04:00
Mitchell Field
0fd15d94da Bug 564950 - Make more use of mozilla::services, r=surkov, jst, neil, smontagu, roc, joshmoz, gavin, shaver 2010-05-14 18:24:41 +09:00
Michael Kohler
6c0f59f4a6 Bug 506041 Part 2: Correct misspellings in source code
r=timeless
2010-05-13 14:19:50 +02:00
Frederic Wang
ef884ea7fd Bug 556767 - (semantics) Improve/Complete implementation of <semantics/>. r=roc 2010-05-12 12:11:59 +02:00
Craig Topper
b08d6c5ef5 Remove nsICSSStyleSheet and replace all uses with nsCSSStyleSheet. (Bug 239008) r=dbaron 2010-05-11 13:41:47 -07:00
L. David Baron
c4eb38acd9 Annotate remainder of crashtest mainfests (all but one test) with the tests that are known to assert. (Bug 472557) 2010-05-06 09:28:01 -07:00
Justin Dolske
e4b6d4e7a3 Bug 563114 - Remove nsINonBlockingAlertService. r=karlt, r=bsmedberg, sr=roc 2010-05-04 17:41:07 -07:00
Frédéric Wang
b2d744914f Bug 562464 - Remove perl script layout/mathml/mathml-css.pl. r=karlt 2010-05-02 12:48:23 +02:00
timeless@mozdev.org
e11069426e Bug 562420 - unused variable border in nsDisplayMathMLCharDebug::Paint, r=karlt 2010-04-28 12:36:00 -07:00
Boris Zbarsky
b2fa9fd079 Bug 562688 part 12. Eliminate eELEMENT usage in the rest of layout except layout/style. r=dbaron 2010-04-30 09:12:06 -04:00
Mitchell Field
f544d71a9d Bug 560095 - Use mozilla::services::GetObserverService(). r=biesi,dveditz,gavin,josh,jst,mrbkap,roc,sdwilsh,shaver,sicking,smontagu,surkov 2010-04-29 18:59:13 +02:00
Frédéric Wang
2b362f6a2d Bug 407101 - MathML STIX fonts: more variants and composite chars for stretchy accents, r=karlt
--HG--
extra : rebase_source : 030868edf640f7c3e27a982392d1a2772934fe54
2010-04-29 09:32:27 +12:00
Frédéric Wang
62cb88ed53 b=557085 Remove directory mozilla/src/layout/mathml/doc r=karlt
--HG--
extra : rebase_source : 1a72bb9263b9d40514ad29e6567f491f35e215b1
2010-04-21 15:43:57 +12:00
Frédéric Wang
e12daec6ab Bug 213932 - add more entries in the MathML Operator Dictionary. r=karlt
--HG--
extra : rebase_source : 4aa186a3bd0b9217ea28f96afef6d4b097f83d8b
2010-04-21 15:41:48 +12:00
Frédéric Wang
3f30d03eb6 Bug 534965 - [MathML3] Add support for the madruwb notation. r=karlt
--HG--
extra : rebase_source : c4d0c73e88e0ec8e3fe0d1a04132f25a78836506
2010-04-21 15:38:15 +12:00
Craig Topper
8b8747d605 Bug 557416: Remove unnecessary includes and forward declarations of nsPresContext. r=roc 2010-04-10 16:10:12 -04:00
Ehren Metcalfe
a791e19cc4 Bug 556446: Remove dead code in layout. r=roc,bz 2010-04-03 07:36:19 -04:00
L. David Baron
e4ae9159cc Use the appropriate color based on visitedness for 'outline-color'. (Bug 147777) r=zweinberg 2010-04-02 18:58:26 -07:00
L. David Baron
712030c86e Use the appropriate color based on visitedness for nsCSSRendering::PaintBorder users of the 'border-*-color' properties. (Bug 147777) r=zweinberg 2010-04-02 18:58:26 -07:00
L. David Baron
109a546aaa Make PaintBackgroundWithSC and related methods operate on nsStyleContext* rather than const nsStyleBackground*. (Bug 147777) r=zweinberg 2010-04-02 18:58:26 -07:00
Zack Weinberg
8a8adc758b Bug 494117 preliminary refactor: Search-and-replace 'ReStyle' with 'Restyle' throughout layout. r=roc 2010-03-31 17:43:32 -07:00
Robert O'Callahan
0fd1837981 Bug 551660. Switch layout code from using nsPropertyTable to FramePropertyTable. r=mats,sr=dbaron 2010-03-29 14:46:55 +13:00
Frédéric Wang
cd74cd48d1 b=407101 STIX n-ary ops and angle brackets r=karlt 2009-10-22 13:05:35 +02:00
Saint Wesonga
385bd7f8b5 Bug 537916 - MathML mfenced: Whitespaces in separators are not ignored. r=roc 2010-03-23 09:27:43 +01:00
Craig Topper
3d7073c4a5 Bug 253889: DeCOMtaminate nsIPresShell r=roc 2010-03-20 17:54:19 -04:00
Frédéric Wang
af2f349608 Bug 475518 - MathML layout code should use _moz* attributes instead of -moz-* attributes. r=karlt, sr=bz
--HG--
extra : rebase_source : 34bb7055d4deaad9a0ee55aa40b9bcbdd19153ea
2010-03-10 13:49:33 +01:00
Frédéric Wang
9c6aff4a11 Bug 519126 - MathML Operator Dictionary: improve the syntax of mathfont.properties. r=karlt 2009-09-27 22:32:54 +02:00
Jonathan Kew
365fbafa0d Bug 524107 - part 1 - pass original value of 'lang' to gfx text code rather than only a 'langGroup' value, to allow language-specific font rendering. r=roc sr=mats 2010-02-24 09:57:44 -08:00
Frédéric Wang
cfe6666e8d b=536438 Fix creation of keys in GetFontExtensionPref r=karlt 2010-02-18 13:51:33 +13:00
Ehren Metcalfe
f51debd939 b=536438 add missing breaks to switch statement r=fred.wang 2010-02-18 13:49:56 +13:00
Karl Tomlinson
dda6be68cd backout 4dc8bdb7af6d due to 355548-2 reftest failure 2010-02-02 20:29:59 +13:00
Frédéric Wang
6cd600a985 b=219873 make math elements display:inline-block so that their height includes their children r=roc 2010-02-02 19:00:06 +13:00
Frédéric Wang
967da5c71c Bug 118743 - <mfrac bevelled="true"> doesn't shift baselines. r=karlt 2009-10-07 11:31:45 +02:00
Simon Montagu
681d9954dd Remove intl/uconv/ucvmath. Bug 483116, r=Masatoshi Kimura <YV03354@nifty.ne.jp> 2009-12-21 00:47:08 -08:00
Boris Zbarsky
5132d64872 Bug 525608 part 3. Change all style set consumers that ask for a pseudo style context to indicate what they're actually asking for (pseudo-element, anonymous box, or xul tree thing). r=dbaron 2009-12-11 02:37:40 -05:00
Boris Zbarsky
03a58e11a7 Bug 525608 part 2. Change the CSS parser to not allow anon box selectors with more than the anon box name in them. Store the pseudo type in pseudo-element selectors. Enforce that all non-anon-box pseudo selectors have an mNext that selects the element they apply to. r=dbaron 2009-12-11 02:37:40 -05:00
Boris Zbarsky
8202b90f61 Backing out bug 525608 and bug 525952 2009-12-10 18:28:08 -08:00
Boris Zbarsky
6eb3c28de7 Bug 525608 part 3. Change all style set consumers that ask for a pseudo style context to indicate what they're actually asking for (pseudo-element, anonymous box, or xul tree thing). r=dbaron 2009-12-10 14:36:05 -08:00
Boris Zbarsky
197fdecd49 Bug 525608 part 2. Change the CSS parser to not allow anon box selectors with more than the anon box name in them. Store the pseudo type in pseudo-element selectors. Enforce that all non-anon-box pseudo selectors have an mNext that selects the element they apply to. r=dbaron 2009-12-10 14:36:05 -08:00
Timothy Nikkel
a700ed5231 Bug 488771. Stop nsMathMLmactionFrame from inheriting from nsISupports and a bit more cleanup. r=roc
--HG--
extra : rebase_source : 395ac33113c9cf44c1c97efb3b7e6dcf6514eefa
2009-11-03 16:43:39 -06:00
Boris Zbarsky
7813eeb6d1 Bug 525295. Rename nsStyleContext::GetPseudoType to GetPseudo. r=dbaron 2009-10-29 17:17:56 -04:00
Daniel Holbert
1ac2adcf94 bug 522779: use nsTArray::Contains() instead of checking nsTArray::IndexOf() against various sentinel values, in three places in layout. r=dbaron 2009-10-16 15:49:30 -07:00
Robert O'Callahan
c3acb8ce31 Bug 476547. Make lquote and rquote actually work, especially when there are dynamic changes, by finding the correct text frames to modify and notifying the text frame that the DOM text has changed. r=karlt 2009-10-07 17:28:41 +13:00
Taras Glek
1d126be6cd Bug 515777 - move css files, hiddenWindow.html to jar r=bsmedberg sr=bz
--HG--
extra : rebase_source : c6ba6e900ceed210620d47f70c9b962a808a29fe
2009-10-12 12:31:50 -07:00
Taras Glek
387de8cf2e Backed out changeset e22bef491d84 2009-10-08 16:43:55 -07:00
Taras Glek
d07c55d805 Bug 515777 - move css files, hiddenWindow.html to jar r=bsmedberg sr=bz 2009-10-08 11:22:50 -07:00
Boris Zbarsky
ba8c31506f Bug 512336. Make frame lists doubly-linked. r=roc,fantasai 2009-10-02 12:27:37 -04:00
Robert O'Callahan
c2f7a1e950 Bug 513082. Instead of passing aDirtyRect to nsDisplayItem::Paint, have nsDisplayList::OptimizeVisibility (renamed to ComputeVisibility) compute the intersection of the visible region with the bounds of each display item and store the result in the item's mVisibleRect. This lets us do less work to paint display items which have a small intersection with the visible region but a large intersection with the bounding-box of the visible region. r=dbaron
--HG--
extra : rebase_source : 76db4b87ef9e5a6e9de7677edc08c26e2cbc462e
2009-09-07 12:35:14 +12:00
David Zbarsky
3d96b7b4a7 Bug 488249. Replace IsNodeOfType(eHTML) checks with namespace checks. r+sr=jst 2009-08-24 16:02:07 -04:00