Commit Graph

869 Commits

Author SHA1 Message Date
Seth Fowler
fee332609d Bug 1209751 - Make sync decoding more reliable when nsImageRenderer is used with -moz-element. r=roc 2015-10-01 11:31:44 -07:00
Mason Chang
779c3f5d8f Bug 1209649. Take into account border radius sizes for min inset box shadow. r=mstange 2015-09-30 14:20:23 -07:00
Nicholas Nethercote
9b0389603b Bug 1208300 (part 4) - Remove gfxRGBA and some related things. r=jwatt.
Hooray!
2015-09-24 19:24:16 -07:00
Nicholas Nethercote
10141da023 Bug 1208345 - Remove gfxContext::GraphicsOperator. r=jwatt.
Also...

- Rename various "operator" identifiers as "op" to match |CompositionOp|.

- Rename |nsBackgroundLayerState::mCompositingOp| as |mCompositionOp| to match
  |CompositionOp|.

- Remove some deprecated functions that are no longer needed.
2015-09-24 22:38:58 -07:00
Nicholas Nethercote
b6d112b67e Bug 1207944 (part 7) - Use gfx::Color instead of gfxRGBA in BlurCache. r=jwatt.
This avoids several gfxRBGA-to-Color conversions.
2015-09-24 00:43:32 -07:00
Nicholas Nethercote
e5c70ef8e7 Bug 1207944 (part 6) - Use gfx::Color instead of gfxRGBA in ColorStop. r=jwatt. 2015-09-24 00:40:20 -07:00
Nicholas Nethercote
15a618076e 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().
2015-09-23 23:41:30 -07:00
Nicholas Nethercote
0929981996 Bug 1207741 - Remove gfxIntSize. r=nical.
gfxIntSize is just a typedef of gfx::IntSize, so this is very mechanical. The
only tricky part is deciding for each occurrence whether to replace it with
IntSize, gfx::IntSize or mozilla::gfx::IntSize; in all cases I went with the
shortest one that worked given the existing "using namespace" declarations.
2015-09-23 11:49:05 -07:00
Mason Chang
28146d569d Bug 1188075 - Speed up inner box-shadow drawing by using a border-image style approach. r=mstange 2015-09-24 09:50:29 -07:00
Jonathan Kew
01be605280 Bug 1193519 pt 4 - Reverse the direction of text-decoration offsets in sideways-lr mode. r=dholbert 2015-09-24 10:23:34 +01:00
Mason Chang
6626046fc9 Backout bug 1188075 for graphical artifacts. r=me 2015-09-21 08:14:05 -07:00
Mason Chang
c2fa2ac466 Bug 1188075 - Speed up inner box-shadow drawing by using a border-image style approach. r=mstange 2015-09-18 11:23:55 -07:00
Mats Palmgren
eed2b899cc Bug 1178575 - Intersect the clip rect with aDirtyRect. r=roc 2015-08-07 14:05:48 +02:00
Lee Salzman
057618ae94 Bug 1185636 - Part 4b - don't use a css border skirt when printing. r=mstange 2015-07-31 14:09:29 -04:00
Boris Zbarsky
966fba4c25 Bug 1137148. Fix painting of ridge/groove borders for border-collapsed tables. r=jwatt 2015-07-23 11:51:09 -04:00
Markus Stange
0c75ea78d3 Bug 1181554 - Snap the spread radius for inset box shadows to device pixels. 2015-07-17 14:42:44 -04:00
Masatoshi Kimura
8a64f334be Backed out changeset acb7eb7f5ad4 (bug 1176496) for web compat problems 2015-07-15 23:37:22 +09:00
Masatoshi Kimura
99d4901bcb Bug 1176496 - Drop support for -moz-prefixed gradients. r=dbaron 2015-07-10 00:57:50 +09:00
Kyle
3dadc218ef Bug 1178971 - Added function to draw dashed table borders to replace loop currently used to individually draw each dash. r=mstange 2015-07-03 15:22:22 -04:00
Jeff Muizelaar
58eac14c1c Bug 1180966. Remove code that made no sense. r=mstange
Borders are rarely a single app unit tall and this code is
from long long ago (bug 41262)
2015-07-06 15:39:42 -04:00
Seth Fowler
69bd34af46 Bug 1163878 (Part 2) - Use IsImageContainerAvailable() when making layerization decisions and only call GetImageContainer() if we layerize. r=tn 2015-05-13 00:23:46 -07:00
Jonathan Kew
e1df9933ac Bug 1159729 - Use the adjusted |offset| value in GetTextDecorationRectInternal, instead of ignoring it. r=smontagu 2015-05-11 11:32:55 +01:00
Mats Palmgren
75786a9857 Bug 1149222 part 1 - Make nsLayoutUtils::DrawBackgroundImage and SVGImageContext use CSSIntSize instead of unitless nsIntSize. r=dholbert 2015-04-03 19:48:12 +00:00
Mats Palmgren
f01622564a Bug 1149037 - Make nsLayoutUtils::ComputeSizeForDrawing* take a CSSIntSize param instead of a unit-less nsIntSize. r=roc 2015-03-30 11:35:47 -04:00
Carsten "Tomcat" Book
bcedf8abde Backed out changeset e507145a198c (bug 1149037) 2015-03-30 15:03:25 +02:00
Mats Palmgren
1b8d3a65c6 Bug 1149037 - Make nsLayoutUtils::ComputeSizeForDrawing* take a CSSIntSize param instead of a unit-less nsIntSize. r=roc 2015-03-30 10:37:34 +00:00
Nicolas Silva
13344864c0 Bug 1132854 - Make nsIntSize a typedef of gfx::IntSize. r=Bas, roc 2015-03-29 16:59:08 +02:00
Seth Fowler
2349e6b580 Bug 1125055 - Sync decode layerized images if necessary. r=roc,tn 2015-03-17 19:40:16 -07:00
Andrea Marchesini
d314931261 Bug 1134280 - Get rid of Tag() - patch 2.6 - layout/base and layout/form - Fix all the occurrences, m=smaug, r=surkov 2015-03-03 11:09:00 +00:00
Jonathan Watt
88f6fa366d Bug 1135913, part 1 - Simplify nsCSSRendering::DecorationLineToPath to not require a context. r=heycam 2015-02-03 14:34:14 +00:00
Seth Fowler
563e466746 Bug 1128769 (Part 6) - Remove imgIContainer::IsDecoded and all remaining callers. r=tn 2015-02-09 23:27:40 -08:00
Seth Fowler
bb5f3a5c8f Bug 1128769 (Part 1) - Propagate the imgIContainer::Draw result through the nsLayoutUtils::PaintBackground* functions. r=tn 2015-02-09 23:27:39 -08:00
Nicholas Nethercote
0247de46d8 Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo. 2015-02-09 14:34:50 -08:00
Andrew McCreight
e048a7df33 Back out Bug 1127201 (part 2) for various problems. 2015-02-06 15:04:32 -08:00
Nicholas Nethercote
40ab0270d5 Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo. 2015-02-04 20:05:36 -08:00
Xidorn Quan
ee4bab57ee Bug 1055667 part 6 - Fix border/padding of ruby frame. r=dbaron 2015-01-15 20:02:11 +11:00
Jonathan Kew
20a30e6965 Bug 1107256 - Correct the position of text decoration lines on vertical text. r=smontagu 2014-12-04 00:57:18 -08:00
Jonathan Kew
96485a89ef Bug 1083848 - Make InlineBackgroundData aware of vertical writing mode. r=dbaron 2014-11-24 23:16:04 +00:00
Jonathan Watt
0377162314 Bug 1103623 - Port most remaining gfxContext::Fill() calls to Moz2D. r=mattwoodrow 2014-11-24 00:04:33 +00:00
Jonathan Kew
e7e5f2df11 Bug 1093553 - Improve handling of line-height metrics, block ascent, etc., in vertical writing mode. r=smontagu 2014-11-13 08:58:06 +00:00
Jonathan Watt
9c919cb19c Bug 1092392 - Finish porting nsCSSBorderRenderer to Moz2D. r=roc 2014-11-04 09:53:05 +00:00
Jonathan Watt
2780afe182 Bug 1092222, part 3 - Convert nsCSSRenderingBorders from Thebes to Moz2D basic types. r=roc 2014-11-03 10:03:09 +00:00
Jonathan Watt
81e040ed56 Bug 1091787, part 2 - Port the nsCSSRendering code that uses gfxContext::RoundedRectangle to Moz2D. r=mattwoodrow 2014-11-02 15:41:08 +00:00
Jonathan Watt
eceb3099ee Bug 1091794 - Replace gfxCornerSizes with Moz2D's RectCornerRadii. r=mattwoodrow 2014-11-01 10:45:10 +00:00
Jonathan Watt
2ae60576c4 Bug 1091323 - Convert the nsLayoutUtils helpers that paint images and take an nsRenderingContext to take a gfxContext instead. r=seth 2014-11-01 10:45:09 +00:00
Jonathan Watt
b431664247 Bug 651021 - Make nsRenderingContext a stack class. r=jrmuizel 2014-10-31 20:08:49 +00:00
Jonathan Watt
7603f0914d Bug 1090614 - Make nsCSSRendering::PaintBoxShadowOuter construct a Moz2D Path to do its clipping. r=mattwoodrow 2014-10-31 11:16:27 +00:00
Jonathan Watt
cde717f077 Bug 1085529, part 2 - Port nsCSSRendering::PaintDecorationLine() to Moz2D. r=mattwoodrow 2014-10-26 01:15:26 +01:00
Rik Cabanier
b1555c6d6d Bug 1074056 - Part 2 - Rendering part of 1074056: Add support for interpolation hints to CSS gradients. r=roc 2014-10-22 14:25:00 +02:00
Daniel Holbert
0211ff2eb1 Bug 1084500 part 2: Promote & rename ComputeBackgroundAnchorPoint to nsImageRenderer::ComputeObjectAnchorPoint. r=seth 2014-10-22 13:03:18 -07:00