Commit Graph

501 Commits

Author SHA1 Message Date
Gregory Szorc
16f0413b0c Merge mozilla-central into build-system
Only conflict was configure.in amd was due to context, not
changed lines themselves.
2013-02-25 22:09:18 -08:00
Gregory Szorc
4f23f29382 Bug 784841 - Part 18t: Convert /layout; f=Ms2ger rs=ted 2013-02-25 12:47:22 -08:00
Mohit Gahlot
ead362c499 Bug 823939 - <mmultiscripts> now doesnt consider base followed by only <mprescripts> and no (presubscript presuperscript) pair as invalid-markup. r=fredw, r=Pike 2013-01-28 00:00:25 +05:30
Martijn Wargers
9c6441567b Bug 400157 - Crash test. 2013-02-23 11:38:14 +01:00
L. David Baron
4f4296979b Bug 404077: Annotate known assertions in mochitests. 2013-02-25 18:39:21 -08:00
John Daggett
12fa6f3e69 Bug 833169 - fixup idents and trim out redundant initialization. r=karlt 2013-02-18 14:19:40 +09:00
John Daggett
d043403e24 Bug 833169 - add font family name to font entries and use in user font cache key. r=jkew 2013-02-18 11:22:55 +09:00
L. David Baron
5ef4421fa5 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
Robert O'Callahan
013943dc4f Bug 840902. Part 2: Remove nsresults from various display list methods. r=mattwoodrow
--HG--
extra : rebase_source : de498510bf8d85d9b0b2fab0137ef3be01c9adfa
2013-02-15 00:12:27 +13:00
Robert O'Callahan
a2485753ff Bug 840902. Part 1: Stop checking the results of various display list methods. r=mattwoodrow
--HG--
extra : rebase_source : 50a3d6809ef76a25a3d02d91f2873d9ba11fdc56
2013-02-15 00:08:08 +13:00
L. David Baron
b387f0fbea 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
Daniel Holbert
ba0e8e72f0 Bug 836957 part 1: Remove unnecessary nsIFrame::GetSkipSides() overrides whose implementations are in .h files. r=mats 2013-02-04 08:17:11 -08:00
Sunny
2c7422f72e Bug 832900 - Fix MathML elements creation tests. r=fredw 2013-01-23 18:30:48 -05:00
Ehsan Akhgari
5cdf011633 Bug 833191 - Disable PGO on mathml; a=me 2013-01-21 23:01:42 -05:00
Mats Palmgren
d5826be6d7 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
Ehsan Akhgari
129c4cd7fd Bug 579517 follow-up: Remove NSPR types that crept in 2013-01-07 18:21:50 -05:00
James Kitchener
e46ce2013d Bug 411227 - Update ParseNumericValue behavior and change tests to support unitless values in script(min)size. r=fredw 2013-01-06 22:24:13 -05:00
Masatoshi Kimura
ecc812a3c0 Bug 824247 - Part 3: Disable FAIL_ON_WARNINGS on not-yet-warning-free directories on MSVC. r=ted 2013-01-03 00:56:38 +09:00
rfw2nd@gmail.com
6ef1d8a861 Bug 553917 - Test for presence of MathML error messages in the Error Console. r=karlt 2012-12-27 11:12:06 -05:00
rfw2nd@gmail.com
5dbe2f8398 Bug 553917 - Add helper methods and logic for error logging to MathML module. r=karlt 2012-12-27 11:12:05 -05:00
Jonathan Kew
813a2e26db bug 821442 - eliminate the unreliable mFamily back-pointer in gfxFontEntry, and instead pass/track font family explicitly where needed. r=roc 2012-12-19 09:42:25 +00:00
Trevor Saunders
55821aa041 bug 781409 - remove nsITableLayout r=roc,davidb 2012-08-08 09:05:17 -04:00
Saurabh Anand
151d13c7a5 Bug 818817 - Fix some compiler warnings, r=Ms2ger 2012-12-09 22:53:19 +05:30
Mats Palmgren
e6ad33709d Bug 817574 - Replace NS_ABS with std::abs. r=roc 2012-12-04 13:33:33 +01:00
Frédéric Wang
a22c3930fc Bug 585142 - Remove old MathML tests that have been moved to MDN. r=karlt 2012-12-03 20:26:14 -05:00
Frédéric Wang
b1c60e3209 Bug 459363 - Fix computation of intrinsic width for <mspace> and <mpadded> elements. r=karlt 2012-11-29 17:52:02 -05:00
Ehsan Akhgari
27d839024f Bug 810355 - Convert nsDidReflowStatus into an enum class; r=dholbert 2012-11-13 22:47:33 -08:00
Frédéric Wang
9d65979632 Bug 487587 - In mathml formulas, the content of many <mo> elements is not highlighted when selected. r=roc 2012-11-10 17:09:26 -05:00
Jacek Szpot
bea8356b2c Bug 792180 - Replace NS_{UN,}LIKELY with MOZ_{UN,}LIKELY; r=ehsan 2012-10-26 15:32:10 +02:00
David Zbarsky
d70685476e [Bug 799407] Fix build warnings in layout r=roc 2012-10-10 01:00:05 -04:00
Matt Woodrow
c900597192 Bug 539356 - Part 9a - Add new display list invalidation API to nsDisplayItem and implement it. r=roc 2012-08-29 17:39:01 +12:00
Ed Morley
5a3b322459 Revert mozilla-inbound to e4dd1fa6d222 for crashes and test failures on a CLOSED TREE 2012-09-27 16:34:46 +01:00
Matt Woodrow
49d4c24594 Bug 539356 - Part 9 - Implement DLBI. r=roc,bz,jwatt 2012-08-29 17:38:58 +12:00
Arnaud Sourioux
b20a9a4654 Bug 733186: Annotate ~1000 methods with MOZ_OVERRIDE in /layout r=dholbert r=dbaron 2012-09-14 09:10:08 -07:00
L. David Baron
74b4279416 Rename nsChangeHint_ReflowFrame to nsChangeHint_AllReflowHints to make it clearer that it's the one that contains multiple bits. (Bug 789592, patch 2) r=bzbarsky 2012-09-07 15:57:06 -07:00
Frédéric Wang
02f4dfdb6c Bug 560100 - Map MathML attributes lquote/rquote to style. r=karlt 2012-09-03 08:13:03 -04:00
Randell Jesup
29ac5c0b8c Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Ehsan Akhgari
3c78f81f54 Bug 785720 - Move the MathML token frame leading/trailing whitespace trimming logic to nsTextFrame; r=roc 2012-08-30 21:32:02 -04:00
Ehsan Akhgari
8c296bbcd4 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
Frédéric Wang
4f50a4158f Bug 781494 - Remove support for composite char from nsMathMLChar. r=karlt 2012-08-20 20:14:20 -04:00
Aryeh Gregor
963057b5ac Bug 782252 - Use NS_FAILED instead of boolean test for ToInteger()/ToFloat(); r=ehsan 2012-08-13 16:49:48 +03:00
Frédéric Wang
e9e43ea8e1 Bug 781494 - Remove dead code from nsGlyphTable::ElementAt. r=karlt 2012-08-10 11:29:59 -04:00
Frédéric Wang
5aaea2b46c Bug 781494 - Change line length in nsMathMLChar to be 80 characters or less. r=karlt 2012-08-10 11:29:59 -04:00
Frédéric Wang
b5a9d0aa63 Bug 781494 - Remove dead code from nsMathMLChar. r=karlt 2012-08-10 11:29:59 -04:00
Ms2ger
331accfcb4 Bug 780387 - Part b: Stop using PRIntn; r=bsmedberg 2012-08-09 09:09:40 +02:00
Mike Hommey
c1b35e7b2a Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Aryeh Gregor
2e7996f8d1 Bug 777292 - Convert incorrect conversions to nsresult and fix named constants; r=ehsan 2012-07-27 16:59:29 +03:00
Ehsan Akhgari
c80897316e Merge the nullptr conversion from mozilla-central into mozilla-inbound 2012-07-30 10:28:15 -04:00
Aryeh Gregor
57c0ad57fb Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Aryeh Gregor
8df95f44f7 Bug 777292 - Remove unreached return; r=ehsan 2012-07-27 17:03:25 +03:00
Mohit Sinha
2c46427704 Bug 771904 - Allow whitespaces at the begining of mtable@align attribute. r=fredw 2012-07-26 21:17:23 -04:00
Nathan Froyd
5b30baa4c3 Bug 370750 - consolidate mochitest files installation; r=glandium
With assistance on the patch from Ms2ger, Waldo, and Mossop.
2012-07-03 16:49:02 -04:00
Ehsan Akhgari
6ef72aef93 Backout changeset f568fc280fb0 (bug 539356) because of performance and correctness regressions 2012-07-03 20:24:55 -04:00
David Zbarsky
cd3c58ee76 Bug 763350 - Clean up some includes in content/ and dom/ r=smaug 2012-07-01 16:45:59 -07:00
Matt Woodrow
1f0dbc7c74 Bug 539356 - Part 9 - Implement DLBI. r=roc,bz,jwatt 2012-06-30 15:06:11 +12:00
Frédéric Wang
559349a569 Bug 662756 - The default value for attributes lspace/rspace of <mo> should be thickmathspace. r=karlt 2012-06-26 15:42:56 -07:00
Jonathan Watt
9ac7bb2267 Bug 767388 - Kill NS_DEBUG. r=bz.
--HG--
extra : rebase_source : d045208a26345712dbb4628c973c616cd9504f28
2012-06-25 20:59:42 +01:00
Ehsan Akhgari
217735f725 Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (layout parts); r=roc
--HG--
extra : rebase_source : 9f3da1b47dcb9d7cc950488b9b70aa682b6984de
2012-06-18 23:26:34 -04:00
Andrii Zui
679a82df3f Bug 749044 - Selection attribute on maction is now considered by default. Checking for a rendering error in maction has been added. r=karlt 2012-06-12 20:05:58 -04:00
Ed Morley
7d13aab294 Backout 61fd66629c4f, 7c8121f8d3af & 2a2e9cf8fd41 (bug 539356), e31a5e6545d3 (bug 761884), 85fa80bd9792, a284ccb25b83, 2865904db9fc, 34e07b09c426, e9b3d41e0360, cef00ebcd6c8, f943b729ac14 & 783f298401b6 (bug 539356), 330a086f1570 (bug 741682), d80219c8842c (bug 739671), e8c96b4fd4da, 313af486e68d, 0adc41ff56dc, 0cd288a38085, f1d43208825c, 4859876972f3, eec8ef3ebe48, f7f29fcd1845, 6079b229d306, f23c3a7e7ce0, 9824458a41e2 & 6748b5496059 (bug 539356) for mochitest-4 orange & talos regressions on multiple platforms 2012-06-11 10:08:32 +01:00
Matt Woodrow
5076b975a0 Bug 539356 - Part 9 - Implement DLBI. r=roc,bz,jwatt
* * *
Bug 539356 - Part 9a - Add new display list invalidation API to nsDisplayItem and implement it. r=roc
* * *
Bug 539356 - Part 9b - Add new frame invalidation API. r=roc
* * *
Bug 539356 - Part 9c - Remove old invalidation code. r=bz
* * *
Bug 539356 - Part 9d - Make SVG support the new invalidation model. r=jwatt
* * *
Bug 539356 - Part 9e - FrameLayerBuilder changes for display list invalidation. r=roc
* * *
Bug 539356 - Part 9f - Compute the invalid area of the layer tree and pass this to the widget. r=roc
* * *
Bug 539356 - Part 9g - Modify MozAfterPaint code to work with the new invalidation model. r=roc
2012-06-11 16:45:30 +12:00
Ryan VanderMeulen
d805e1bc72 Backout Bug 749044 due to Android reftest failures 2012-06-09 16:03:31 -04:00
Andrii Zui
fa2577e7fc Bug 749044 - Selection attribute on maction is now considered by default. Checking for a rendering error in maction has been added. r=karlt 2012-06-09 14:22:41 -04:00
Frédéric Wang
edf2fd63de Bug 760707 - Allow layout/mathml/updateOperatorDictionary.pl to download and convert the W3C dictionary. r=karlt 2012-06-09 12:24:57 -04:00
Frédéric Wang
49e442146f Bug 755525 - Remove some tests from layout/mathml/tests/. r=karlt 2012-06-09 12:24:57 -04:00
Frédéric Wang
9a7e0a1967 Bug 755525 - Remove some tests from layout/mathml/tests/various.xml + merge it with maxwell.xml. r=karlt 2012-06-09 12:24:57 -04:00
Frédéric Wang
78cb488a91 Bug 755525 - Update layout/mathml/tests/various.xml to use the new maction syntax. r=karlt 2012-06-09 12:24:57 -04:00
Frédéric Wang
d4058d69bf Bug 742273 - Remove obsolete MathML tables for stretchy characters. r=karlt 2012-06-09 12:24:57 -04:00
Frédéric Wang
403e0906fd Bug 757125 - Make more MathML operators mirrorable. r=karlt 2012-05-28 21:09:43 -04:00
Frédéric Wang
f2594ad94f Bug 757125 - Make updateOperatorDictionary.pl read mirrorable property. r=karlt 2012-05-28 21:09:25 -04:00
Frédéric Wang
dac58862a4 Bug 757703 - Restore support for non-zero unitless values in mpadded. r=karlt 2012-05-27 23:32:51 -04:00
Gervase Markham
87620f5676 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Andrii Zui
db9255f7c8 Bug 745535 - Implement AttributeChanged on nsMathMLmactionFrame. r=karlt 2012-05-18 13:35:43 -04:00
Ryan VanderMeulen
77b638fcd1 No Bug - Re-alphabetize mathml crashtest list. DONTBUILD 2012-05-17 09:46:16 -04:00
Frédéric Wang
766d42ee44 Bug 716349 - Crashtest. r=karlt 2012-05-17 09:38:32 -04:00
Frédéric Wang
9af6e1413a Bug 716349 - Prevent invalid metrics for mspace. r=karlt 2012-05-17 09:37:55 -04:00
Frédéric Wang
c4aee25f52 Crashtest for bug 398038. r=karlt 2012-05-15 18:30:15 -04:00
Frédéric Wang
f2d30807ae Bug 677036 - Unify parsing of length and mpadded attributes. r=karlt 2012-05-15 18:30:14 -04:00
François Wang
dbc000ab3a Bug 736010 - Make downloaded fonts usable in nsMathMLChar. r=karlt 2012-03-26 17:49:44 +02:00
Frédéric Wang
b3284f1002 Bug 657279 - maction: transmit automatic data when the selected child changes. r=karlt 2012-04-28 11:02:22 -04:00
Matt Woodrow
7474fc8aa3 Bug 749055 - Add index parameter to nsDisplayMathMLCharForeground. r=roc 2012-04-27 12:24:54 +12:00
Andrii Zui
5a9d116b2c 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
c811a0d504 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
833e8a244f 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
a06636a98d Bug 729924 - statusline actiontype should use the second child as a message. r=karlt 2012-03-29 11:50:02 +02:00
Phil Ringnalda
b4da60b42d 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
ffe33e0344 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
7ae994745c Bug 738957 - Remove the nsMathMLForeignFrameWrapper class and related files. r=karlt 2012-03-26 09:59:54 +02:00
Frédéric Wang
93b0cefeae Bug 732834 - Use MathJax fonts in mathematical text part 2. r=karlt 2012-03-09 20:52:14 -05:00
Frédéric Wang
9b38e509b2 Bug 732834 - Use MathJax fonts in mathematical text part 1. r=karlt 2012-03-09 20:52:13 -05:00
François Wang
a6c7300ff7 Bug 320294 - Remove space between mi with mathvarian normal. r=karlt 2012-03-06 21:58:20 +01:00
Frédéric Wang
e142af82d9 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
9f8a15a143 Bug 701758 - Add stretchy operator table for MathJax fonts. r=karlt 2012-02-28 18:40:38 -05:00
Jonathan Watt
9fb3c8bb9f Bug 416581, part 1 - Move mLanguage from nsStyleVisibility to nsStyleFont. r=dbaron. 2012-01-24 13:09:55 +00:00
Jonathan Watt
ce855218a3 Bug 719408 - Remove broken paths from Makefile.in files in layout. r=bernd.mielke. 2012-01-23 16:58:52 +00:00
Benjamin Stover
a371dc7830 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
2d502354f9 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
ecaac9ba30 Bug 515530 - Remove nsHTMLContainerFrame. r=roc 2011-12-27 21:18:48 +01:00
Frédéric Wang
9db5265c42 Bug 708072 - Add test page for stretchy and large operators, r=karlt 2011-12-06 13:24:00 -08:00
Frédéric Wang
6924fc7b66 Mirroring of operators for arabic math (Bug 208309) - part 2. r=karlt 2011-12-21 17:22:00 -05:00