Commit Graph

692 Commits

Author SHA1 Message Date
Yu-Sian (Thomasy) Liu
275ff3701f Bug 594935: Add calc to parser, do calc in PaintGradient and add stop point to HasCalc(). r=bz 2012-10-03 22:31:56 -07:00
Ed Morley
1496211ccf Backout ffcdd896a1fa (bug 787947) for reftest failures 2012-10-03 13:43:19 +01:00
Robert O'Callahan
229fe7a6ac Bug 787947. Avoid scaling by 0 when snapping gradient tiles. r=jrmuizel 2012-09-25 15:25:48 +12:00
foudfou
096b0d2aae Bug 785542 - Convert usages of PR_MIN and PR_MAX to NS_MIN and NS_MAX; r=ehsan
Occurences of PR_MAX in layout/style/nsCSSProps.cpp and xpcom/glue/nsTArray.h
can not be converted without C++11 support (constexpr).
2012-09-27 23:44:47 +02:00
Robert O'Callahan
7826556268 Bug 772726. Part 7: Avoid specifying "repeat" mode when rendering CSS gradients if we don't need it. r=padenot
D2D repeating gradients rasterize slightly differently to non-repeating gradients even when
the rendered area falls within a single tile, so a repeating gradient compared to a
non-repeating gradient (say one drawn in a canvas) can cause reftest failures.
2012-09-08 00:32:21 +12:00
Chris Lord
62d4203310 Bug 786502 - Separate background layers into separate items. r=roc
Separate out background layers into separate display-list items, so that
backgrounds that are a mix of fixed and non-fixed layers will be treated
individually.
2012-09-13 11:34:23 +01:00
L. David Baron
d86552b7aa Rename nsIPresShell::InitialReflow to Initialize since it doesn't actually perform reflow. (Bug 788956) r=roc 2012-09-06 21:16:09 -07:00
Paul Adenot
880db680fa Bug 761393 - Add telemetry probes to guess the retention time. r=taras 2012-08-26 21:12:36 -07:00
Paul Adenot
40ebe5f99d Bug 761393 - Cache the gfxPatterns using an nsExpirationTracker and an hashtable. r=dbaron 2012-08-26 21:09:46 -07:00
Ehsan Akhgari
243c878d26 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
Nicolas Silva
e0905a590a Bug 782372 - Splits ImageLayers.h into ImageLayers.h ImageContainer.h and ImageTypes.h, r=bgirard 2012-08-19 15:33:25 -04:00
Robert O'Callahan
31100e191f Bug 779399. Scale gradient cell to exactly fill snapped rect. r=jrmuizel
We need to make sure that when we snap the fillRect, we also adjust the scaling
of the gradient so it exactly fills the snapped tileRect.
2012-08-10 23:10:12 +12:00
Kyle Huey
cc6ea9a4c7 Bug 697230: Part 1 - Centralize style image observers. r=bz 2012-08-13 15:04:19 -07:00
Ms2ger
c8ea20cf42 Bug 780387 - Part b: Stop using PRIntn; r=bsmedberg 2012-08-09 09:09:40 +02:00
Cameron McCormack
3a613d804e Bug 655877 - Part 19: Add function to convert text decorations to a path. r=roc 2012-08-08 21:37:11 +10:00
Aryeh Gregor
8b4a23fc4c Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Robert O'Callahan
24aa86292e Bug 768775. For linear gradients where the gradient line is parallel to an axis and runs from one edge of a background tile to the other, we can repeat the background by just repeating the gradient instead of drawing individual tiles. r=jrmuizel 2012-07-02 11:46:32 +12:00
Masatoshi Kimura
0dbb755bad Bug 752187 - Part 10: Implement rendering unprefixed gradients. r=dbaron 2012-07-07 10:27:08 -04:00
Masayuki Nakano
905a332f9d Bug 537230 part.1 Paint connection of complex style decoration lines smoothly r=roc 2012-07-04 14:59:50 +09:00
Robert O'Callahan
a71a3ef6f6 Backout bug 768775 for now 2012-07-02 14:43:37 +12:00
Robert O'Callahan
bedf30e2d4 Bug 768775. For linear gradients where the gradient line is parallel to an axis and runs from one edge of a background tile to the other, we can repeat the background by just repeating the gradient instead of drawing individual tiles. r=jrmuizel 2012-07-02 11:46:32 +12:00
Jonathan Watt
eb4b0282db Bug 766120 - Stop conflating effects offset and continuation union size in nsSVGIntegrationUtils. r=longsonr. 2012-06-19 16:28:04 +01:00
David Zbarsky
e812095476 Bug 758533: Check that nsImageRenderer has an image when getting the container r=gal 2012-06-10 17:31:42 -07:00
Robert O'Callahan
823baaf3a9 Bug 731293. Remove nsFrameManager parameter from nsLayoutUtils::GetParentOrPlaceholderFor. r=mats 2012-06-09 00:22:25 +12:00
Jeff Muizelaar
fa6f25ded2 Bug 759457. Don't fast path shadows with negative scale. r=roc
We don't support this yet, so don't bother trying.
2012-05-31 18:22:28 -04:00
L. David Baron
912ba6088c Remove nsStyleBorder::GetActualBorder, since it now does the same thing as nsStyleBorder::GetComputedBorder. (Bug 713643, patch 3) r=bzbarsky 2012-05-30 22:19:49 -07:00
Jeff Muizelaar
122c840f2b Bug 757039. Handle non-uniform scales when doing device space blurs. r=roc
The Java screenshoting code draws pages at non-uniform scales. It's not much
work to handle these so let's do it.
2012-05-22 11:32:08 -04:00
Gervase Markham
cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Jeff Muizelaar
64dcf2bd29 Bug 754985. Draw shadows in device space when using a uniform scale. r=roc 2012-05-16 16:45:25 -04:00
Andreas Gal
6ce2fac799 Do background image scaling on the GPU. Part 2: Support turning simple background images into image layers (bug 750172, r=roc). 2012-05-03 13:13:12 -07:00
Andreas Gal
2c4f0077fc Do background image scaling on the GPU. Part 1: Refactor nsCSSRendering to expose helpers we need in nsDisplayBackground::GetLayerState (bug 750172, r=roc). 2012-05-03 13:11:57 -07:00
Thomas Powell
2f386c09d7 Bug 742736 - Change box shadows to match rounded or sharp corners of shadowed object when round/sharp alternate corners; r=dbaron 2012-04-29 22:37:04 -04:00
Jeff Muizelaar
b0f22d77f7 Bug 745864. Add SAMPLE_LABELs to layout code. r=roc, a=joe 2012-04-16 14:37:59 -04:00
Kyle Huey
75ce446ae2 Back out Bug 679230 due to Android reftest failures. 2012-04-07 10:36:49 -07:00
Kyle Huey
4cf42ddeb6 Bug 697230: Part 1 - Centralize style image observers. r=bz 2012-04-07 08:58:41 -07:00
Jonathan Watt
7fc84790a9 Bug 736890 - Speed up building of layout/svg/base/src by cleaning up #include directives in its header files. r=dholbert. 2012-03-20 12:15:55 +00:00
Lazar Sumar
dab3e2b171 Bug 548375 - Implement css3-background background-repeat property two value syntax. r=dbaron 2012-02-24 21:23:14 -08:00
William Chen
97a3dc759f Bug 497995: Part 1 - Implement border-image revisions in latest css3-background spec. r=dbaron 2011-12-22 18:34:45 -05:00
Boris Zbarsky
af90cfbaea Bug 704399. When doing the 'restrict background painting to the padding area' optimization, actually restrict it to padding area plus 1px on each side to deal with seams caused by curved borders better. r=roc 2011-11-23 12:59:51 -05:00
Ms2ger
dff333b2a0 Bug 704088 - Pass dom::Element to nsLayoutUtils::SurfaceFromElement; r=bz 2011-12-03 22:50:16 +01:00
Masatoshi Kimura
ce2f103148 Bug 685400 - add "to" syntax and "magic corner" feature to CSS linear gradient. r=dbaron 2011-10-22 21:41:11 +02:00
Olli Pettay
ffb4115bc4 Bug 682420 - Rename nsINode::GetOwnerDoc to nsINode::OwnerDoc, part 2, r=jst 2011-10-18 14:19:44 +03:00
Olli Pettay
1cdbb1b884 Bug 682420 - Rename nsINode::GetOwnerDoc to nsINode::OwnerDoc, part 1, r=jst 2011-10-18 13:53:36 +03:00
Ehsan Akhgari
478ad1a412 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
Ehsan Akhgari
a9088e07c1 Bug 10209 - Part 2: Implement the absolute positioning support for all frames; r=roc 2011-04-29 19:02:33 -04:00
Michael Wu
0fe7772ece Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones 2011-09-28 23:19:26 -07:00
Jonathan Kew
92578ba35f bug 686497 - avoid passing excessively long wavy-underline path to cairo for stroking. r=roc 2011-09-16 20:23:29 +01:00
Timothy Nikkel
b9ffa581bf Back out a38f82d29d97 (bug 652914) for causing reftest failures. 2011-09-06 15:19:31 -05:00
Timothy Nikkel
3e9b43eb86 Bug 652914. If we are not printing background colors then don't even print the default background color. r=roc 2011-09-06 13:46:15 -05:00
Mounir Lamouri
32135ef4a3 Backout bug 633627 due to reftest perma-orange. 2011-08-31 20:05:31 +02:00