Birunthan Mohanathas
735ccdd101
Bug 968520 - Add mozilla::fallible to Fallible{Auto,}TArray::SetLength calls. r=froydnj
2015-05-18 13:50:35 -07:00
Eric Rahm
67b91ff53a
Bug 1162748 - Remove instances of #ifdef PR_LOGGING in graphics. r=froydnj
...
PR_LOGGING is now always defined, we can remove #ifdefs checking for it.
2015-05-08 14:37:01 -07:00
Mike Hommey
924c9eb636
Bug 1134923 - Remove NS_Alloc/NS_Realloc/NS_Free. r=nfroyd
...
They are kept around for the sake of the standalone glue, which is used
for e.g. webapprt, which doesn't have direct access to jemalloc, and thus
still needs a wrapper to go through the xpcom function list and get to
jemalloc from there.
2015-05-01 09:40:30 +09:00
Mike Hommey
c39e359c7d
Bug 1138293 - Use malloc/free/realloc/calloc instead of moz_malloc/moz_free/moz_realloc/moz_calloc. r=njn
...
The distinction between moz_malloc/moz_free and malloc/free is not
interesting. We are inconsistent in our use of one or the other, and
I wouldn't be surprised if we are mixing them anyways.
2015-03-31 12:32:49 +09: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
Jonathan Kew
cddb282cdf
Bug 1142952 - Update OTS to latest upstream revision; now at e779d45e7a96d3b97ed3d2b76db7478cb86fdd8b. r=jdaggett
2015-03-19 11:11:30 +00:00
John Daggett
16051fe356
Bug 935862 p2 - add various userfont lookup methods. r=heycam
2015-03-06 17:44:18 +09:00
John Daggett
31457df5b4
Bug 1135308 - add pref for disabling font cache. r=m_kato
2015-02-23 09:32:04 +09:00
John Daggett
97f2b28880
Bug 1127209 - cleanup downloadable font logging. r=m_kato
2015-01-29 16:44:59 +09:00
John Daggett
6f795700cb
Bug 475891 - support unicode-range when matching userfonts (non-linux). r=jfkthame
2014-11-06 13:42:50 +09:00
John Daggett
556a622173
Bug 1083599 - fixup small problem with userfont logging. r=m_kato
2014-10-17 09:15:29 +09:00
Jonathan Kew
ca024fe34c
Bug 1074809
- For OTS warning (rather than failure) messages, only log the first occurrence of any given message per font. r=jdaggett
2014-10-10 14:50:52 +01:00
Jonathan Kew
b2782ecfb8
Bug 1074223 - Update OTS to pick up fixes for upstream issues 35, 37. Current rev: c24a839b1c66c4de09e58fabaacb82bf3bd692a4. r=jdaggett
2014-10-09 08:43:30 +01:00
Eric Rahm
8d715a7fe4
Bug 806819 - Part 3: Remove redundant FORCE_PR_LOG entries. r=ehsan
2014-10-08 13:17:32 -07:00
Wes Kocher
445e1466e9
Backed out 5 changesets (bug 806819) for WinXP test failures on a CLOSED TREE
...
Backed out changeset 009ae35b0c67 (bug 806819)
Backed out changeset 5a57f87f5061 (bug 806819)
Backed out changeset f06cd735b5b3 (bug 806819)
Backed out changeset e25a2a8d4af4 (bug 806819)
Backed out changeset 70a167982c3f (bug 806819)
2014-10-06 16:32:50 -07:00
Eric Rahm
80d2b8bba6
Bug 806819 - Part 3: Remove redundant FORCE_PR_LOG entries. r=ehsan
...
--HG--
extra : rebase_source : c96eea1c12ea8c19314393f0e8b4b57a4316a61d
2014-10-06 13:08:20 -07:00
Jonathan Kew
21fd93a194
Bug 1064737 pt 3 - Read metadata from a WOFF2 font if present. r=jdaggett
2014-10-04 11:46:54 +01:00
Jonathan Kew
0d2cfaf334
Bug 1064737 pt 2 - Support for WOFF2 as a webfont format. r=jdaggett
2014-10-04 11:36:05 +01:00
Cameron McCormack
103bb77e68
Bug 1028497 - Part 25: Support loading of fonts from ArrayBuffer{,View}s. r=bzbarsky,jdaggett
2014-10-02 12:32:09 +10:00
Cameron McCormack
d045185df5
Bug 1028497 - Part 14: Rename some methods to talk about UserFontEntry instead of FontFace. r=jdaggett
...
How that we have a class named "FontFace", it's a bit confusing for some
of the gfxUserFontSet methods to have "FontFace" in their names, so I'm
renaming them to mention "UserFontEntry" instead.
2014-10-02 12:32:07 +10:00
Cameron McCormack
4649da6d47
Bug 1028497 - Part 6: Have a FontFace::Entry class extending gfxUserFontEntry that can inform the FontFaceSet about loading. r=jdaggett
...
We can't make FontFace inherit from gfxUserFontEntry, since the former
is cycle collected. So instead, we have a small class that inherits
from it that will override its virtual methods and forward things on to
the FontFace object.
We make gfxUserFontSet::CreateFontFace virtual so we can override it to
produce instances of our gfxUserFontEntry subclass.
2014-10-02 12:32:06 +10:00
Cameron McCormack
f5f01b6fc2
Bug 1028497 - Part 4: Move the nsUserFontSet object into FontFaceSet. r=jdaggett
...
This (a) moves ownership of the gfxUserFontSet into FontFaceSet, (b) moves
nearly all of the functionality of nsUserFontSet into FontFaceSet, and (c)
adds a class that inherits from gfxUserFontSet so that we can override some
of its virtual functions and delegate them to the FontFaceSet.
2014-10-02 12:32:05 +10:00
John Daggett
b0dafb656a
Bug 998869 part 5 - lazily load userfonts (non-linux). r=jfkthame
2014-09-25 12:16:54 +09:00
John Daggett
245a756e02
Bug 998869 part 3 - rename userfont class methods. r=heycam
2014-09-25 12:16:53 +09:00
Christoph Kerschbaumer
7a5f6bc06f
Bug 1038756: Callsites creating a channel in /gfx/ (r=roc)
2014-09-21 09:45:49 -07:00
Ehsan Akhgari
d3f6eb924f
Bug 1064354 - Fix more bad implicit constructors in gfx; r=jrmuizel
2014-09-08 20:48:12 -04:00
John Daggett
123c797bde
Bug 1062058 part 3 - make userfont entry a container of the platform font entry. r=heycam
2014-09-08 16:23:20 +09:00
John Daggett
53967d717d
Bug 1062058 part 2 - rename userfont classes and adjust flags. r=heycam
2014-09-08 16:23:20 +09:00
John Daggett
6f2c0ee7ec
Bug 1062058 part 1 - avoid passing around proxy font entry object. r=heycam
2014-09-08 16:23:19 +09:00
Frédéric Wang
3ca9ad3ae3
Bug 1057488 - Part 3: Update OTS to 97d043dd8977751835ca8d33d773ae8416e456d5. r=jfkthame
...
--HG--
extra : rebase_source : a040d22b1758ae60b7bbafecbe35d0dc9891365a
2014-08-23 10:12:00 -04:00
Michael Wu
0861dbb935
Bug 1036394 - Use CRC32 to query hidden fonts, r=jfkthame
2014-08-04 12:26:55 -04:00
Nicholas Nethercote
a7cf4142b4
Bug 1050009 - Initialize pldhash tables with a length, not a capacity. r=roc.
...
* * *
imported patch rm-dummy-params
--HG--
extra : rebase_source : c25987eb11bae197218d5fc53b77def19afa36ac
2014-08-06 06:31:21 -07:00
Cameron McCormack
d134a8e4ee
Bug 1031206 - Part 1: Split out creation and addition of font faces in gfxUserFontSet. r=jdaggett
2014-07-23 15:05:50 +10:00
Makoto Kato
3708a1ba13
Bug 984033 - Large OOM in nsStreamLoader::WriteSegmentFun. r=honza
2014-07-17 17:37:33 +09:00
Cameron McCormack
e01446872c
Bug 1031202 - Factor out gfxMixedFontFamily lookup/creation into a helper function. r=jdaggett
2014-07-09 17:08:55 +10:00
Cameron McCormack
e369e9f112
Bug 1031187 - Part 2: Use family name from proxy rather than gfxMixedFontFamily when logging. r=jdaggett
2014-07-09 17:08:55 +10:00
Cameron McCormack
21933d916f
Bug 1031187 - Part 1: Set mFamilyName eagerly on proxy and non-proxy gfxFontEntrys. r=jdaggett
2014-07-09 17:08:54 +10:00
Jonathan Kew
5379855aa6
Bug 754215 - Refactor user-font loading code in preparation for lazier downloading. r=jdaggett
2014-07-09 17:08:52 +10:00
Carsten "Tomcat" Book
5cee26c6d4
Backed out changeset 0af811dfc164 (bug 754215)
2014-07-09 13:44:16 +02:00
Carsten "Tomcat" Book
1bf2972cd9
Backed out changeset 091a5ced91cd (bug 1031187)
2014-07-09 13:44:14 +02:00
Carsten "Tomcat" Book
e338c2088b
Backed out changeset dc4ff3a5afd1 (bug 1031187)
2014-07-09 13:44:11 +02:00
Carsten "Tomcat" Book
2d4e060456
Backed out changeset 30954594c1dd (bug 1031202)
2014-07-09 13:43:51 +02:00
Cameron McCormack
493349d4b5
Bug 1031202 - Factor out gfxMixedFontFamily lookup/creation into a helper function. r=jdaggett
2014-07-09 21:04:15 +10:00
Cameron McCormack
a5140bd518
Bug 1031187 - Part 2: Use family name from proxy rather than gfxMixedFontFamily when logging. r=jdaggett
2014-07-09 21:04:14 +10:00
Cameron McCormack
c700698740
Bug 1031187 - Part 1: Set mFamilyName eagerly on proxy and non-proxy gfxFontEntrys. r=jdaggett
2014-07-09 21:04:10 +10:00
Jonathan Kew
4895b59a06
Bug 754215 - Refactor user-font loading code in preparation for lazier downloading. r=jdaggett
2014-07-09 21:03:19 +10:00
Jonathan Kew
f424c317f4
bug 1030829 part 1 - support 'persistent' entries that will not be flushed from the user-font cache. r=roc
2014-06-30 19:05:28 +01:00
Cameron McCormack
8bf79a894b
Bug 1031205 - Make gfxUserFontSet methods take already-parsed language override values. r=jdaggett
2014-06-30 14:25:21 +10:00
Cameron McCormack
364e126c76
Bug 1031199 - Disallow aWeight = 0 when calling gfxUserFontSet::AddFontFace. r=jdaggett
2014-06-30 14:25:11 +10:00
Jonathan Kew
28268f14ed
bug 1030067 - ignore the principal when caching data-URI fonts, to allow sharing across pages with the same CSS. r=bzbarsky
2014-06-27 16:19:28 +01:00
Frédéric Wang
111e726228
Bug 1020927 - Part 2: Update OTS to bf4afceb8b441f3a219dd7cfea5613c18183836c so that we fix the compile warnings. r=jfkthame
2014-06-05 11:09:00 -04:00
Honza Bambas
4b98e16e4c
Bug 999577 - disable addon access to cache v1 IDLs, r=michal+jduell
2014-06-05 20:14:07 +02:00
Ryan VanderMeulen
006487470f
Backed out changeset d405928cb934 (bug 999577) and changeset 940d041073c7 (bug 938186) for xpcshell failures.
...
CLOSED TREE
2014-06-05 13:32:04 -04:00
Honza Bambas
995070a4f7
Bug 999577 - disable addon access to cache v1 IDLs, r=michal+jduell
2014-06-05 18:27:38 +02:00
Makoto Kato
d38288b73d
Bug 889401 - Part 2. Render color glyph using COLR/CPAL. r=jfkthame
2014-05-26 19:07:24 +09: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
John Daggett
c14d659b10
Bug 964613 - check userfont sets for enabled/disabled local fonts when platform fontlist changes occur. r=jfkthame
2014-04-17 23:17:22 +09:00
Ehsan Akhgari
4b12513f89
Bug 969866 - Use fallible allocations in some places in our font/text shaping code; r=jfkthame
...
It seems like the sizes for these data structures can be controlled from
Web content, and we are already prepared to deal with OOM conditions,
except that we are using infallible allocations by mistake.
2014-02-08 13:10:07 -05:00
Frédéric Wang
e272dd0b19
Part 5 - Remove MOZ_OTS_REPORT_ERRORS, whitelist Graphite/SVG tables and use SetMessageCallback. b=941019, r=jfkthame.
2014-01-31 15:09:20 +00:00
Ehsan Akhgari
1b83407ce9
Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
...
This patch was automatically generated by the following script:
#!/bin/bash
# Command to convert PRUnichar to char16_t
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*modules/libmar*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name prtypes.h \
! -name Char16.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 PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Phil Ringnalda
022d398c91
Back out d280a1c64f76 (bug 939585) for Mac build bustage
...
CLOSED TREE
2013-11-24 18:02:14 -08:00
Benoit Girard
49ae528201
Bug 939585 - Build gfx/thebes in unified mode. r=ehsan,bjacob
2013-11-21 14:22:45 -05:00
Ehsan Akhgari
eff9a278ad
Bug 924221 - Minimize the #includes in gfx/thebes; r=bjacob
...
--HG--
extra : rebase_source : af198eb9b9739ce718ba0d16c385624a722cde51
2013-10-07 19:15:59 -04:00
John Daggett
f751ca2a58
Bug 838105 - add debug logging code for userfont cache. r=birtles
2013-09-19 10:56:49 +09:00
Jonathan Kew
bdfea7f41f
Bug 838105 - don't rely on key lookup to remove items from the user font cache, as the principal could have changed. r=jdaggett
2013-09-18 11:48:38 +01:00
Jonathan Kew
757c2d5ea1
bug 871961 pt 4 - on xpcom-shutdown notification, release any SVG-glyphs documents held by fonts. r=roc
2013-05-22 23:48:55 +08:00
Robert O'Callahan
03e7828db2
Bug 910989. Remove nsTHashtable::Init, fallible allocation, and MT hashtables. r=ehsan,bsmedberg
...
--HG--
extra : rebase_source : 0787130b1814c74bfb38dc178de94022f0b2e64e
2013-09-02 20:41:57 +12:00
Jonathan Kew
964fc5670a
bug 879963 - preserve in-progress font loaders when updating the user font set, and avoid adding duplicate face entries to a user font family. r=dbaron,jdaggett
2013-08-12 10:07:55 +01:00
Birunthan Mohanathas
c742394e75
Bug 784739 - Switch from NULL to nullptr in gfx/thebes/; r=ehsan
2013-07-31 11:44:31 -04:00
Jonathan Kew
510c284680
backout bug 879963 (changesets 4a3befee43f1, 09c9359bdd43, 32ffcd6db605) due to Nightly crashiness, see bug 896200.
2013-07-23 09:38:57 +01:00
Jonathan Kew
50ab64699b
bug 879963 - part 2 - avoid adding duplicate face entries to a user font family. r=dbaron
2013-07-17 12:53:31 +01:00
Ehsan Akhgari
192bc42d5e
Bug 895141 - Remove useless prlong.h inclusions from the tree; r=jcranmer
2013-07-18 12:06:38 -04:00
Jonathan Kew
e18800113e
backout changesets d8f3694dd6df (bug 871961 pt 2) and b77d5e403c3d (bug 871961 pt 4) for making the browser crashy. r=me
2013-05-25 21:06:59 +08:00
Jonathan Kew
64135bae96
bug 871961 pt 4 - on xpcom-shutdown notification, release any SVG-glyphs documents held by fonts. r=roc
2013-05-22 23:48:55 +08:00
Jonathan Kew
f2868384ce
bug 874349 - cached webfonts that were loaded in private browsing mode should not leak out to normal windows. r=ehsan,roc
2013-05-22 14:42:30 +08:00
Jonathan Kew
a80c470dd2
bug 862222 pt 2 - empty the webfont cache in response to cacheservice:empty-cache notification. r=roc
2013-05-22 12:39:47 +08:00
Jonathan Kew
224eec2ee6
bug 862222 pt 1 - bypass the webfont cache when force-reloading the page. r=roc
2013-05-22 12:39:39 +08:00
John Daggett
3cb7865e73
Bug 856784 - null-check mUserFontData before use. r=jkew
2013-04-03 11:01:41 +09:00
Jonathan Kew
c8a9d651b2
bug 844133 - eliminate the MOZ_GRAPHITE configure option. r=ted
2013-02-22 16:52:20 +00:00
John Daggett
74c397a0f6
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
Jonathan Kew
f752845e1e
bug 833283 - remove the option to bypass OTS for downloaded fonts. r=jdaggett
2013-01-23 16:41:18 +00:00
Jonathan Kew
b366d014bc
bug 826288 - remove the obsolete aFamily parameter from gfxFontEntry constructor. r=roc
2013-01-04 14:01:44 +00:00
Jonathan Kew
531d3c6676
bug 825504 - fix gfxPangoFontGroup::FindFamilyNameAt for user fonts, to resolve MathML fonts breakage. r=roc
2013-01-02 22:27:49 +00:00
Jonathan Kew
a03d1dc724
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
Jonathan Kew
a294160dcc
bug 816483 - cache instantiated user fonts and share them across pages that use the same resources. r=roc
2012-12-10 09:31:07 +00:00
Andrew Quartey
d21a5d8004
Bug 792581 - part 23: Replace LL_INIT and LL_UDIVMOD macros. r=ehsan
2012-11-01 20:57:25 -04:00
Nathan Froyd
4c61ef9ec5
Bug 806618 - rewrite PR_NewLogModule calls to not generate static initializers; r=ehsan
2012-10-29 19:32:10 -04:00
Andrew Quartey
ceaa3c8f60
Bug 792581 - part 9: Replace LL_ADD with mathematical plus operator. r=ehsan
2012-10-05 01:05:27 -04:00
Andrew Quartey
816b3752e7
Bug 792581 - part 1: Replace LL_IS_ZERO macro with standard relation. r=ehsan
2012-10-03 10:13:18 -04:00
Randell Jesup
65539ef89c
Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg
2012-09-01 22:35:17 -04:00
Ehsan Akhgari
e368dc9c85
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
Aryeh Gregor
d0ad5a7d0c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Jonathan Kew
02f1aeb65f
bug 670901 pt 3 - add OTS message callback and enable error reporting in our build. r=jdaggett
2012-05-29 23:44:50 +01:00
Doug Turner
d19adf44a5
backout 664a8855fde5
2012-05-29 17:39:53 -07:00
Jonathan Kew
3340060c7b
bug 670901 pt 3 - add OTS message callback and enable error reporting in our build. r=jdaggett
2012-05-29 23:44:50 +01:00
Gervase Markham
82ff7027aa
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Jonathan Kew
248ae5fed9
bug 739858 - cancel any in-progress loaders for @font-face rules that have been discarded when the font set is updated. r=jdaggett
2012-04-26 18:50:41 +01:00
Jonathan Kew
9fa44a2247
bug 739858 - don't try to actually load a font if the proxy has been detached from its family. r=jdaggett
2012-04-26 18:48:05 +01:00
Ed Morley
55e83a7ae7
Backout 476998cbd69f & f8654d020b1a (bug 739858) for compilation failures
2012-04-26 19:09:20 +01:00
Jonathan Kew
a39295d6c1
bug 739858 - cancel any in-progress loaders for @font-face rules that have been discarded when the font set is updated. r=jdaggett
2012-04-26 18:50:41 +01:00