Commit Graph

336 Commits

Author SHA1 Message Date
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