Граф коммитов

142 Коммитов

Автор SHA1 Сообщение Дата
Christoph Kerschbaumer c209162622 Bug 1222297 - Use channel->Open2() in netwerk/base/nsNetUtil.cpp (r=sicking) 2015-11-08 18:54:38 -08:00
Birunthan Mohanathas 9985829ecc Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Seth Fowler bbd8f63e67 Bug 1209765 (Part 8) - Support sync decoding and track draw results when drawing borders in MathML code. r=tn 2015-10-22 19:54:49 -07:00
Nathan Froyd 01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Nicholas Nethercote a37228e1fe Bug 1207944 (part 4) - Use SetColor(const Color&) when setting from an nscolor. r=jwatt.
In various places SetColor() gets passed an nscolor. These are converted
(either implicitly or explicitly) to a gfxRBGA, and then to a gfx::Color.

This patch changes all these cases to avoid the middle step, by (a)
constructing a gfx::Color directly instead of an nscolor, or (b) by converting
an nscolor with Color::FromABGR().

--HG--
extra : rebase_source : ae423a422b37ada8ca0cb6f130350b4a71d58fc4
2015-09-23 23:41:30 -07:00
Frédéric Wang 9eb9060846 Bug 1174143 - Remove private tables for Standard Symbols L and MathJax fonts. r=karlt
--HG--
extra : rebase_source : d9868dabd15f0b9da9162e0b12e292e2754ab626
2015-06-12 10:43:00 -04:00
Frédéric Wang 2d8a6ecf05 Bug 947654 - Use font.*.x-math font preferences for MathML. r=karl, r=heycam
This also rearranges the list of default fonts and changes the preferred font to Latin Modern Math on all platforms.

--HG--
extra : rebase_source : 806b5f8ffcf5305e55f67c60756c438987646fd5
2015-05-25 02:40:00 +02:00
Frédéric Wang 6c069218c1 Bug 1156463 - Add a preference option to disable the scale transform applied to MathML operators. r=karl
--HG--
extra : rebase_source : 58f08a9ec0d3c8c9843d5fd0c3eccf81cc7e11d1
2015-04-25 00:48:00 +02:00
Ehsan Akhgari 883849ee32 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -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 MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Robert O'Callahan 9a9d89d206 Bug 1139709. Remove unused parameters from nsMathMLChar::GetMaxWidth. r=mats
--HG--
extra : rebase_source : a2c7cc22ab0ca688cb935f470056f97409b58fe3
2015-03-05 14:46:40 +13:00
Seth Fowler a1186f0369 Bug 1128769 (Part 5) - Record the last draw result for various less common frame types and use it to decide whether to sync decode. r=tn 2015-02-09 23:27:40 -08:00
Ehsan Akhgari 81bc9cdcd9 Bug 1118427 - Mark virtual overridden functions as MOZ_OVERRIDE in layout; r=roc 2015-01-07 10:07:36 -05:00
Frédéric Wang b60cd30c4b Bug 619521 - Part 3: Send a notification for missing math fonts. r=jkitch 2014-11-11 02:37:00 -05:00
Jonathan Kew b77ae133f8 Bug 619521 - Part 1: Send a notification of any scripts for which font coverage is lacking. r=jdaggett 2014-12-22 16:35:54 +00:00
Jonathan Kew a896eab424 Bug 1108616 - part 2 - Add an explicitLanguage field to gfxFontStyle, and pass it down from callers. r=dbaron 2014-12-23 12:50:10 +00:00
Jonathan Watt 9910919cdd Bug 1103623 - Port most remaining gfxContext::Fill() calls to Moz2D. r=mattwoodrow 2014-11-24 00:04:33 +00:00
Frédéric Wang 7bd964a4d4 Bug 1002526 - Part 2 - Pass the font inflation parameter to nsMathMLChar. b=1002526. r=karl 2014-10-25 08:30:00 +02:00
Jonathan Watt a0f005a778 Bug 1088625, part 1 - Add lots of missing nsFontMetrics.h and gfxTextRun.h includes 2014-10-24 16:28:14 +01:00
Jonathan Watt 09f54bbbb9 Bug 1086708 - Rename the snapping variant of NSRectToRect to NSRectToSnappedRect. r=mattwoodrow 2014-10-22 12:29:06 +01:00
Jonathan Watt e3bd1068b9 Bug 1085167, part 2 - Get rid of nsRenderingContext's DeviceContext and any need for it to know about app-units-per-device-pixel. r=mattwoodrow
--HG--
extra : rebase_source : d8fb804f03a1cc4635d6acd7f66f5f21962de6d3
2014-10-20 10:55:49 +01:00
Jonathan Watt b8b833765e Bug 1083753, part 2 - Port the code that uses nsRenderingContext::FillRect(nsRect) to Moz2D. r=mattwoodrow 2014-10-19 13:22:22 +01:00
Jonathan Kew 244c38ec06 Bug 1077371 - Remove unnecessary null-checks on the result of gfxFontGroup::GetFirstValidFont. r=jdaggett 2014-10-06 15:14:49 +01:00
Jonathan Kew 4a06c41b0a Bug 1065002 pt 2 - Add an orientation field to nsFontMetrics. r=jdaggett 2014-09-30 07:38:35 +01:00
John Daggett 3570b54018 Bug 998869 part 2 - switch to GetFontAt(0) to GetFirstValidFont(). r=jfkthame 2014-09-25 12:16:53 +09:00
Christoph Kerschbaumer a541b9a730 Bug 1038756: Callsites creating a channel in /layout/mathml/ (r=roc) 2014-09-21 09:41:03 -07:00
Jonathan Kew 5cadcfeab8 bug 1057331 - add orientation flags to gfxShapedText/gfxTextRun and to glyph runs within the text run, and split glyph runs on orientation changes. r=jdaggett 2014-09-16 12:25:45 +01:00
Jonathan Watt 93e59c8bd5 Bug 1064084, part 1 - Convert all consumers of gfxContext::Translate() to use gfxContext::SetMatrix()/Multiply(). r=Bas 2014-09-11 07:57:38 +01:00
Ehsan Akhgari 252de863a5 Bug 1048243 - Fix more bad implicit constructors in gfx; r=jrmuizel 2014-08-05 17:58:40 -04:00
Anuj Agarwal 728d8f73ed Bug 1029138 - Removed dangerous public destructor of nsGlyphTableList. r=froydnj 2014-06-25 09:28:00 +02:00
Frédéric Wang 9e0eb3a436 Bug 961365 - Part 1: Add helper functions to access MATH constants and use them to get the AxisHeight. r=jfkthame 2014-07-01 23:29:00 -04:00
Mats Palmgren 3ffa9baecc Bug 1028460 - part 3, Change the return type for Get*SkipSides(). r=roc 2014-06-28 10:13:13 +00:00
Phil Ringnalda 811c3783d4 Back out 5 changesets (bug 1028460, bug 1031444) for somehow breaking asmjscache/test/test_cachingBasic.html on Android 2.2
Backed out changeset 0b5918ec6521 (bug 1031444)
Backed out changeset 663ff18cd4a1 (bug 1028460)
Backed out changeset ae01b3919c8c (bug 1028460)
Backed out changeset 316c8dfeca9b (bug 1028460)
Backed out changeset e237b2c61ea2 (bug 1028460)
2014-06-28 22:01:28 -07:00
Mats Palmgren 4e879335f7 Bug 1028460 - part 3, Change the return type for Get*SkipSides(). r=roc 2014-06-28 10:13:13 +00:00
Benoit Jacob e1b7dbca34 Bug 1028588 - Fix dangerous public destructors in layout/ - r=dbaron 2014-06-23 18:40:01 -04:00
John Daggett f029151a97 Bug 280443 p5 - fixup problem with MathML stretchy fallback. r=fredw 2014-06-06 15:09:24 +09:00
John Daggett 8259cc74f5 Bug 280443 p3 - use fontlist struct in gfx. r=roc,fredw 2014-06-06 15:09:23 +09:00
Birunthan Mohanathas 19bebbc68d Bug 869836 - Part 2: Use AppendLiteral instead of `Append(NS_LITERAL_STRING(...))`. r=ehsan 2014-05-22 06:48:50 +03:00
Anuj Agarwal 39e590b309 Bug 848725 - limited the scale factors at the end of nsMathMLChar::StretchInternal and added crashtests. r=fredw. 2014-05-12 01:32:00 +02:00
Frédéric Wang ccac92dd48 Bug 1007093 - Merge the *.properties tables for the STIXGeneral set. r=karl 2014-05-07 06:22:00 +02:00
Frédéric Wang 4f8bf082e9 Bug 1005657 - For the Unicode table, check that all the glyphs are found and come from the same font. r=karlt 2014-05-07 23:25:00 -04:00
Birunthan Mohanathas 5f1fde8824 Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
Frédéric Wang 061d40b53c Bug 1000745 - Part 2: Remove font.mathfont-glyph-tables. r=karlt 2014-04-24 02:41:00 -04:00
Frédéric Wang db47d2fc12 Bug 1000745 - Part 1: Remove obsolete font.mathfont-family* preferences. r=karlt 2014-04-24 02:33:00 -04:00
Frédéric Wang 2e2f1b2079 Bug 960115 - No longer scale stretchy operators when a variant of any size is found. r=karlt 2014-04-23 00:28:00 -04:00
Frédéric Wang dd936cd2e4 Bug 407059 - Part 4: Use gfxHarfbuzzShaper::GetGlyphHAdvance() for math operators. r=jfkthame 2014-04-23 06:57:42 -07:00
Frédéric Wang cec6c49525 Bug 407059 - Part 2: Make nsMathMLChar use the MATH table. r=karlt 2014-04-23 06:57:42 -07:00
Frédéric Wang 94bbbf60fd Bug 407059 - Part 0: Remove the Truncate() calls from nsMathMLChar::StretchEnumContext. r=karlt 2014-04-23 06:57:41 -07:00
Ryan VanderMeulen 0691160cfe Backed out 5 changesets (bug 407059) for reftest asserts.
Backed out changeset 21fee1261f2e (bug 407059)
Backed out changeset c940a2d399c4 (bug 407059)
Backed out changeset 77593dd1b044 (bug 407059)
Backed out changeset cfcbc731d4db (bug 407059)
Backed out changeset d8244f3ecdcb (bug 407059)
2014-04-22 11:00:13 -04:00
Frédéric Wang b7d34cd584 Bug 407059 - Part 4: Use gfxHarfbuzzShaper::GetGlyphHAdvance() for math operators. r=jfkthame 2014-04-22 08:44:04 -04:00
Frédéric Wang 3444023245 Bug 407059 - Part 2: Make nsMathMLChar use the MATH table. r=karlt 2014-04-22 08:44:03 -04:00