Jonathan Kew
4b5525bbf7
Bug 1362167 - Use strongly-typed enum classes instead of generic uint16_t fields for the gfxShapedText and gfxTextRun flags. r=jrmuizel
2017-05-04 22:27:05 +01:00
Jonathan Kew
6fc5313103
Bug 1362167 - Split gfxShapedText.mFlags into two 16-bit flags fields, and arrange storage more compactly to reduce size of gfxShapedWord and gfxTextRun objects. r=jrmuizel
2017-05-04 22:25:16 +01:00
Jonathan Kew
25183dff43
Bug 1353000 - Respect the round-to-pixels flags when caching shaped-word data. r=jrmuizel
2017-04-12 14:55:13 +01:00
vincentliu
3b05828b37
Bug 1350677
- Add Labeling for gfxFontCache. r=jfkthame
...
From cef7c4838ae3efa519e4d20953cac7dbe40d1aca Mon Sep 17 00:00:00 2001
2017-04-13 09:59:05 +08:00
Wes Kocher
1196244596
Backed out 3 changesets (bug 1353000) for devtools failures a=backout CLOSED TREE
...
Backed out changeset 7ef3333cedf5 (bug 1353000)
Backed out changeset bd127ce305c7 (bug 1353000)
Backed out changeset 10e777bb90dc (bug 1353000)
--HG--
extra : amend_source : 8db7e67b22347962be0fdb055df1bb2c1853ab67
2017-04-12 10:59:12 -07:00
Jonathan Kew
c336bff796
Bug 1353000 - Respect the round-to-pixels flags when caching shaped-word data. r=jrmuizel
2017-04-12 14:55:13 +01:00
Jonathan Kew
6f0d451756
Bug 1352528 - Hoist call to GetRoundOffsetsToPixels out of the inner loop of text shaping. r=jrmuizel
2017-04-03 17:49:17 +01:00
Manish Goregaokar
6be22491bd
Bug 1341724 - Part 4: stylo: Make font metrics usage threadsafe; r=heycam
...
MozReview-Commit-ID: 3EqpUy09UuI
2017-04-10 17:06:19 +08:00
Lee Salzman
a168dcdbf3
Bug 1348980 - implement UnscaledFont API for Moz2D and thebes. r=jfkthame
2017-04-06 17:41:02 -04:00
Paul Bignier
bc0c1045c5
Bug 1352848 - Fix spelling of 'settings' in comment. r=MattN
...
MozReview-Commit-ID: J6PjvNRKhEm
--HG--
extra : rebase_source : 09e4d07f42767e63a604015d18871ae1fb92bac7
2017-04-03 15:24:46 -07:00
Jeremy Chen
c41d8342dd
Bug 1347819 - change nsFont::languageOverride to store uint32_t directly. r=jfkthame
...
Since font-language-override can only have a single three-letter tag, and it is
eventually converted to uint32_t while creating gfxFontStyle, we should be able
to move the conversion ahead, to an earlier stage.
In this patch, we move the ParseFontLanguageOverride to nsRuleNode, so we could
do the nsString-to-uint32_t conversion during computing time.
MozReview-Commit-ID: LA4Bv3wV7K
--HG--
extra : rebase_source : 48059a9913d58363f78dea59b1b7811d9f038352
2017-03-23 21:59:55 +08:00
Daniel Holbert
9e6a8900f0
Bug 1291483 part 2: Use UniquePtr/MakeUnique more thoroughly in chain-of-custody for gfxFont::mVerticalMetrics. r=jfkthame
...
This member-var has type 'UniquePtr', but (up until this patch) its value
is set up using "new" and raw pointers. This patch improves that codepath by
using UniquePtr & MakeUnique, for stronger ownership guarantees.
MozReview-Commit-ID: KWZVpvr9bYj
--HG--
extra : rebase_source : 4e46d355078c7da6ae750f3ca06586dc8703e8a7
2017-03-09 16:38:58 -08:00
Carsten "Tomcat" Book
cc77b844e8
Backed out changeset c8bfaf1927b6 (bug 1291483)
2017-03-10 15:47:28 +01:00
Daniel Holbert
9a0f32abc3
Bug 1291483 part 2: Use UniquePtr/MakeUnique more thoroughly in chain-of-custody for gfxFont::mVerticalMetrics. r=jfkthame
...
This member-var has type 'UniquePtr', but (up until this patch) its value
is set up using "new" and raw pointers. This patch improves that codepath by
using UniquePtr & MakeUnique, for stronger ownership guarantees.
MozReview-Commit-ID: KWZVpvr9bYj
--HG--
extra : rebase_source : 4e46d355078c7da6ae750f3ca06586dc8703e8a7
2017-03-09 16:38:58 -08:00
Daniel Holbert
eb14ae51cf
Bug 1329670: Change gfxFont::CopyWithAntialiasOption to return UniquePtr instead of raw pointer. r=jfkthame
...
MozReview-Commit-ID: B5UNazyXPL2
2017-01-09 09:41:35 -08:00
Jonathan Kew
9317d239af
Bug 1321022 pt 2.1 - While we're here, remove an obsolete declaration. r=dholbert
2016-12-03 12:18:31 +00:00
Jonathan Kew
19f9ad164e
Bug 1321022 pt 2 - Add an array of font variations to gfxFontStyle. r=dholbert
2016-12-03 12:18:29 +00:00
Jonathan Kew
72436283c9
Bug 1321022 pt 1.5 - Delete the redundant copy constructor in gfxFontStyle (default copy constructor is fine), and rationalize field ordering a bit. r=dholbert
2016-12-03 12:18:28 +00:00
Frédéric Wang
5f755e9bc4
Bug 1305977 - Use HarfBuzz ot-math API to parse the OpenType MATH table. r=jfkthame
2016-11-02 11:47:18 -07:00
Wes Kocher
c91def63e7
Backed out changeset 961a84574836 (bug 1305977) for multiscripts-1.html failures a=backout
2016-11-02 11:45:41 -07:00
Frédéric Wang
1c9167ba68
Bug 1305977 - Use HarfBuzz ot-math API to parse the OpenType MATH table. r=jfkthame
...
--HG--
extra : rebase_source : 743927b509e8e4b37334c46f32e4e69b3ba35091
2016-10-31 04:18:00 +01:00
Jonathan Kew
c6471e4eeb
Bug 1304699 - Pass the proper unicode-range when looking up a font in the global font cache. r=jrmuizel
2016-09-27 01:48:56 +01:00
Phil Ringnalda
340cda4e5f
Backed out changeset 66b8ea362db8 (bug 1304699) for build bustage
...
CLOSED TREE
2016-09-26 18:37:13 -07:00
Jonathan Kew
60fef630a5
Bug 1304699 - Pass the proper unicode-range when looking up a font in the global font cache. r=jrmuizel
2016-09-27 01:48:56 +01:00
Jonathan Kew
993ba1a742
Bug 1296742 - Initialize gfxGDIFont's metrics at construction time, like other platform font subclasses, and remove its no-longer-needed support for init-on-first-use pattern. r=jrmuizel
2016-08-22 21:39:19 +01:00
Jeremy Chen
7fe92af520
Bug 1293210 - add cap height support to nsFontMetrics. r=jfkthame
...
MozReview-Commit-ID: 8EXWUtbuN3s
--HG--
extra : rebase_source : 120cc3476faae7d63f2e96f2973ea9e6d9a93c16
2016-08-18 17:43:54 +08:00
Emilio Cobos Álvarez
e1e6b574d9
Bug 1288938: layout: Move the GlyphObserver to the text run instead of the frame. r=jfkthame
...
MozReview-Commit-ID: KphTCkcZeid
2016-08-03 10:53:37 -07:00
Jonathan Watt
db80f397f6
Bug 1058040, part 2 - Rename gfxTextContextPaint to SVGContextPaint and add some code comments. r=dholbert
2016-07-22 14:56:09 +01:00
Lee Salzman
1bc7c6bf66
Bug 1287552 - part 4 - add ScaledFontFontconfig to remember generating FcPattern. r=jrmuizel
...
MozReview-Commit-ID: AbWjvL5IWCN
--HG--
extra : rebase_source : 9ac07bee30de7b2cdcca84b31c1fb00d9f529c56
2016-07-20 15:07:11 -04:00
Kevin Chen
cac9daeb79
Bug 1275693 - Refactor <canvas> strokeText drawing to re-use gfxTextRun::Draw. r=jfkthame
2016-07-14 02:00:00 +02:00
Lee Salzman
16ca3223d9
Bug 1286317 - part 1 - remove Qt widget usage from gfx. r=jrmuizel
2016-07-12 20:27:57 -04:00
Khaled Hosny
d8d7f64870
Bug 1283932 - support COLR table layers with unset color, r=jfkthame
2016-07-06 10:10:17 +01:00
Jonathan Kew
48c59f0c3d
Bug 1282248 - Declare a bunch of gfxTextRun measurement/drawing methods and related helpers as const. r=m_kato
2016-06-27 17:41:55 +01:00
Jeremy Chen
f7a19af3e7
Bug 1248708 - Part2.2: render -webkit-text-stroke property. r=jfkthame
2016-04-23 01:40:39 +08:00
Jonathan Kew
c60f6a1ae4
Bug 1266391 - Introduce an enum class mozilla::unicode::Script, and use this instead of bare integers to specify script codes for better type checking. r=masayuki
2016-04-21 18:58:59 +01:00
Jonathan Watt
c7da421b17
Bug 1266101, part 1 - Remove various bits of dead code related to painting SVG text. r=heycam
2016-04-21 14:39:30 +01:00
Jonathan Kew
4b13ebfd2f
Bug 1265452 followup - Make mGlyphExtentsArray an array of UniquePtr. r=jrmuizel
2016-04-19 17:13:28 +01:00
Jonathan Kew
28a9e2cf14
Bug 1265452 - Remove use of nsAutoPtr from gfx/thebes. r=jrmuizel
2016-04-15 20:45:37 +01:00
Birunthan Mohanathas
d7371d07d0
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-02-02 17:36:30 +02:00
Phil Ringnalda
d381b4bca6
Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
...
CLOSED TREE
Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas
373593275e
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-01-31 17:12:12 +02:00
Nicholas Nethercote
06e901cb9f
Bug 1231550 - Use DrawTarget instead of gfxContext and/or nsRenderingContext in many places in font/text code. r=jfkthame.
...
AutoTextRun now only needs a DrawTarget instead of an nsRenderingContext, and
similar nsRenderingContext/gfxContext-to-DrawTarget replacements can be
propagated a long way up the call graph. This patch replaces 93 occurrences of
nsRenderingContext and 135 occurrences of gfxContext with DrawTarget; that's
13% of them.
The patch is mostly plumbing changes. A couple of not-entirely-plumbing
changes:
- It adds a comment about the null check in
gfxGlyphExtents::GetTightGlyphExtentsAppUnits().
- A couple of functions simply had an unused gfxContext or nsRenderingContext
parameter removed, e.g. SetLineBreaks().
--HG--
extra : rebase_source : 8f56994bb4d254a86788b17ab2864ebc758a7e6b
2015-12-15 13:56:41 -08:00
Nicholas Nethercote
3493a38202
Bug 1232822 (part 6) - Move RefCairo() from gfxContext to gfxFont. r=jfkthame.
...
Because gfxContext will one day disappear, and gfxFont seems like a good place
to move it to.
2015-12-15 20:10:04 -08:00
Nicholas Nethercote
16ee19fe3f
Bug 1232822 (part 5) - Moz2Dify GetRoundOffsetsToPixels(). r=jfkthame.
...
Make GetRoundOffsetsToPixel() take a DrawTarget instead of a gfxContext. This
requires moving it into gfxFontShaper. The only change of note within the
function is the use of aDrawTarget->GetTransform().HasNonTranslation() instead
of CurrentMatrix().HasNonTranslation().
2015-12-15 13:56:40 -08:00
Nicholas Nethercote
62db02a52f
Bug 1232822 (part 3) - Moz2Dify gfxFont::CalcXScale() and gfxFont::PostShapingFixup(). r=jfkthame.
...
This boils down to these two lines being equivalent:
Size t = aContext->UserToDevice(Size(1.0, 0.0));
Size t = aDrawTarget->GetTransform() * Size(1.0, 0.0);
The rest is just plumbing.
2015-12-15 13:56:40 -08:00
Nicholas Nethercote
52308b4cb3
Bug 1232822 (part 2) - Moz2Dify SetupGlyphExtents(). r=jfkthame.
...
The gfxContextMatrixAutoSaveRestore in SetupGlyphExtents() is now obviously not
needed, and the rest is trivial.
2015-12-15 13:56:40 -08:00
Nicholas Nethercote
2a8e0225ac
Bug 1232822 (part 1) - Moz2Dify SetupCairoFont(). r=jfkthame.
...
This is now trivial.
2015-12-15 13:56:40 -08:00
Nicholas Nethercote
e542083969
Bug 1233605 - Cull some uses of gfxContext. r=dholbert.
...
--HG--
extra : rebase_source : eed590fa5fd806f2ed8d754e139e7dd28a8b52e7
2015-12-17 19:36:09 -08:00
Xidorn Quan
6fdb9fbeaa
Bug 1040668 part 10 - Implement emphasis mark rendering. r=jfkthame
...
--HG--
extra : source : 1c53ccbaece3931ffe1da5610977e92fcce5f3f6
2015-11-28 11:56:33 +11:00
Xidorn Quan
d80f4dcc15
Bug 1040668 part 7 - Add NO_EMPHASIS_MARK flag in CompressedGlyph. r=jfkthame
...
--HG--
extra : source : 5c13435d3c7ffbc551350beb817a1abb027d5f58
2015-11-28 11:56:33 +11:00