Commit Graph

52 Commits

Author SHA1 Message Date
Jonathan Kew
5088360b94 bug 847344 - refactor gfxFont/gfxFontEntry and associated classes for more efficient use of HarfBuzz and Graphite shaper APIs. r=roc 2013-05-16 17:29:20 +01:00
Jonathan Kew
5b0a5b3a20 bug 699331 - pt 1 - replace hardcoded font-loader constants with prefs to allow easier tuning. r=jdaggett 2013-04-26 08:40:44 +01:00
Makoto Kato
d75d999182 Bug 857957 - Use Endian.h for byte swap. f=nfroyd, r=jfkthame, r/sr=bsmedberg 2013-04-24 16:40:33 +09:00
Mats Palmgren
6c53161814 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
Neil Rashbrook
b87325632b Bug 818861 Shouldn't allow promising a flat string from a flat string r=dbaron 2012-12-22 20:40:37 +00:00
Jonathan Kew
9e140898be 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
Jeff Walden
7146c23e80 Bug 820570 - Move mozilla::DebugOnly into DebugOnly.h to pare down the grab-baggish Util.h. r=Ms2ger 2012-12-14 18:58:45 -05:00
Jonathan Kew
c44d8b77b1 bug 820707 - consistently set familyHasItalic flag on GDI font entries, to avoid referring back to the family during font instantiation. r=roc 2012-12-12 14:09:50 +00:00
Jacek Caban
aa89fc6296 Bug 797316 - Fix -Werror=conversion-null errors in Windows-only code (gfx/thebes part) r=jmuizelaar
--HG--
extra : rebase_source : 10b01cfa84204603779619bda3dc612af93303a4
2012-10-04 10:35:15 +02:00
Ehsan Akhgari
0fd9123eac 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
e806eeab4f Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Jonathan Kew
0604d2f511 bug 754452 - use GDI synthetic italic rather than cairo font matrix when it's safe to do so, for better glyph spacing. r=jdaggett 2012-07-03 11:42:07 +01:00
Jonathan Kew
b372d82d77 bug 764805 - fix handling of src:local style properties in the GDI backend. r=jdaggett 2012-06-28 10:59:37 +01:00
Gervase Markham
ca171eec44 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
John Daggett
c622f4c37e Bug 749139. Set build-on-fly flag on non-SFNT font type. r=jkew 2012-04-27 17:26:41 +09:00
John Daggett
6ed7380e29 Bug 710727. Share cmaps across all fonts. r=jkew, a=tracking-firefox 2012-04-19 08:59:43 +09:00
John Daggett
de125b895c Bug 710727. Revert shared cmap patch due to reftest/mochitest-4 failures on Win7. a=bustage 2012-04-09 22:03:28 +09:00
John Daggett
341246ae21 Bug 710727. Share cmaps across all fonts. r=jkew 2012-04-09 13:31:55 +09:00
Jonathan Kew
cfa00ea9ff bug 688125 - part 1 - add memory reporting for the platform font list. r=njn 2012-03-27 14:38:39 -07:00
Masatoshi Kimura
39dd177660 Bug 736435 - Restore GetProcAddress check for t2embed library. r=jdaggett 2012-03-19 18:52:08 -04:00
Jonathan Kew
384de9b74a bug 735583 - eliminate font constant synonyms and use the standard forms everywhere. r=jdaggett 2012-03-15 09:04:46 +00:00
John Daggett
e2eedda75a Bug 705594. Add cmapdata logging. r=roc 2012-03-09 11:05:14 +09:00
Masatoshi Kimura
85d80030c2 Bug 730550 - Make sure the t2embed library is available before using. r=jdaggett
--HG--
extra : rebase_source : f5fd56246a71795ad872f4db10c58c9f28fbaac2
2012-02-28 17:04:05 +01:00
Masatoshi Kimura
28f2776f50 Bug 699247 - Remove Win2K related code. r=jimm, sr=neil 2012-02-23 08:53:55 -06:00
Jonathan Kew
af71ef9d19 bug 724231 - ensure synthetic font styles under GDI are truly synthetic, rather than using a potentially incompatible font face. r=jdaggett 2012-02-14 08:24:26 +00:00
Ed Morley
ad5a8e1d06 Backout f1acc52a59da (bug 719983) & 6771bd53e267 (bug 699247) for 30% WinXp Ts regression 2012-02-08 21:04:21 +00:00
Masatoshi Kimura
88ba00973a Bug 699247 - Say goodbye to Win2k related code. r=jimm, sr=neil 2012-02-08 10:00:45 -06:00
Jonathan Watt
8a0b72332d Bug 695303 - Add a mozilla::clamped function to replace NS_CLAMP (so side affects of args are evaluated no more than once) and NS_MIN(max, NS_MAX(val, min)) (to make code clearer). r=bsmedberg. 2011-10-28 19:33:28 +01:00
Adrian Johnson
04bd6b7659 Bug 454532. Substitute "Courier" with "Courier New". r=jdagget 2011-10-28 09:58:49 -04:00
Ehsan Akhgari
2a602a5685 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
Jeff Walden
b7753477cf Bug 693469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. (Exceptions: assigning to static initializers, use in static assertions, as template parameters, etc. These will go away when the relevant compilers have C++11 constexpr support.) r=cjones
--HG--
extra : rebase_source : b4bae9a0f85abf2feb828609b50e756916b99a6f
2011-10-10 22:50:08 -07:00
Jeff Walden
eb2cb918a4 Back out everything since 5435ee09cf7b. Tinderbox compilers hate me. r=epic-fail 2011-10-12 12:21:53 -07:00
Jeff Walden
77ebbde4ab Bug 639469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. r=cjones
--HG--
extra : rebase_source : 860a8271bf7e51cde358f2a4185c410de1fc2960
2011-10-10 22:50:08 -07:00
Michael Wu
d8e503c38b 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
Jonathan Kew
90e4ffa117 bug 3512 - support font-stretch in the GDI font backend. r=jdaggett 2011-09-05 08:34:40 +01:00
Michael Wu
3d255259df Bug 668133 - Add telemetry probes for font enumeration, r=jtd 2011-07-26 23:42:53 -07:00
Neil Rashbrook
747f874cd4 Bug 660525 Remove useless uses of PromiseFlatString (prev cset lacked the code changes) r=joedrew! 2011-06-13 19:02:35 -07:00
Dominic Fandrey
0ab2f46136 Bug 645398 - Substitute PR_(MAX|MIN|ABS|ROUNDUP) macro calls; r=roc 2011-06-02 14:56:50 +02:00
John Daggett
0cc810376c Bug 652754. Eliminate unnecessary font data enumerations at startup. r=jkew 2011-05-20 15:09:30 +09:00
John Daggett
d513f6e578 Backout 2e0e36b0feae due to odd Linux bustage 2011-05-20 16:13:01 +09:00
John Daggett
43f90511f3 Bug 652754. Eliminate unnecessary font data enumerations at startup. r=jkew 2011-05-20 15:09:30 +09:00
John Daggett
6fb5fc67de Bug 643649. Pass correct parameter value into registry call. r=joedrew 2011-03-29 12:11:22 +09:00
Masatoshi Kimura
dcbef1ea3b bug 637481 - add vhea/vmtx support to OTS for CJK webfonts. r=jfkthame 2011-03-24 20:11:38 +00:00
Jonathan Kew
64909ee7be bug 635451 - don't reject glyph index 31 in type-1 fonts. r=jdaggett a=joe 2011-02-22 17:04:37 +00:00
John Daggett
01b02057fb Bug 551313. Workaround synthetic Gill Sans family when DirectWrite is used. r=jkew, a=joedrew 2011-01-27 12:05:55 +09:00
John Daggett
eeb92a1447 Bug 602792. Clean up font logs and add system fallback logging. r=bas, a=blocker 2011-01-22 01:44:33 +09:00
John Daggett
a1b47791ac Bug 602792. Use GDI for font table loading to avoid excessive dwrite I/O. r=bas, a=blocker 2011-01-22 01:44:32 +09:00
John Daggett
4af9bc9eb3 Bug 602792. Rework code for doing localized font family name lookups. r=jkew, a=blocker 2011-01-07 21:29:49 +09:00
Jonas Sicking
69e373af1d Bug 610823: Change a few users that use nsTArrays as buffers to explicitly use fallible tarray. r=jdaggett a=blocker 2011-01-06 20:45:10 -08:00
Jonathan Kew
5be531ab2e bug 594865 - fall back to GDI rendering on dwrite font list failure. r=bas a=blocking2.0 2010-11-08 11:02:27 +00:00