Jeff Walden
5ec763f216
Bug 847480 - Blindly convert all existing mozilla::Abs users to mozilla::DeprecatedAbs. Individualized conversions to the reformed mozilla::Abs will continue until mozilla::DeprecatedAbs is unused, at which point it will be removed. r=Ms2ger
2013-03-05 15:43:30 -08:00
Timothy Nikkel
142d0cee7a
Bug 848421. Part 2. Remove useless PresContext argument to nsCSSRendering::FindBackground. r=mats
2013-03-07 10:03:49 -06:00
Daniel Holbert
56c48afacf
Bug 843719: Reorder params in Margin constructors and SizeTo() methods to match CSS's top,right,bottom,left ordering. r=seth
2013-03-06 00:05:55 -08:00
Jeff Walden
1871e9f3f8
Bug 835542 - Implement mozilla::Abs. r=Ms2ger
...
--HG--
extra : rebase_source : a3e62ff76365d27cc4cb10e4fee942ddb8b10b79
2013-02-15 19:55:36 -08:00
Seth Fowler
c9f0633db1
Bug 842850 (Part 1) - Use an SVGImageContext class for overridden SVG properties. r=dholbert,joe sr=bz
2013-02-28 12:22:43 -08:00
L. David Baron
c5b9eee040
Bug 781360 patch 3: Rename {nsIFrame,nsStyleContext,nsComputedDOMStyle}::GetStyle* to Style*, since they can never return null. r=dholbert
...
Except for the changes in:
layout/generic/nsIFrame.h (part)
layout/style/nsComputedDOMStyle.h (all)
layout/style/nsRuleNode.cpp (part)
layout/style/nsStyleContext.cpp (part)
layout/style/nsStyleContext.h (part)
(see patch 3b in the bug), this patch was written with the sed script:
s/\<GetStyle\(Font\|Color\|List\|Text\|Visibility\|Quotes\|UserInterface\|TableBorder\|SVG\|Background\|Position\|TextReset\|Display\|Content\|UIReset\|Table\|Margin\|Padding\|Border\|Outline\|XUL\|SVGReset\|Column\)\>/Style\1/g
2013-02-16 13:51:02 -08:00
L. David Baron
50d4e367af
Bug 841789, patch 1: Rename nsIFrame::GetStyleContext() to nsIFrame::StyleContext() since it can never return null. r=dholbert
...
This makes it conform to our convention that getters returning pointers
that can never be null do not begin with "Get".
2013-02-15 21:38:33 -08:00
Avi Halachmi
8ba2f637aa
Bug 838758: Cache GradientStops instead of gfxPattern. r=jrmuizel
...
Our gfxPattern cache is currently way too specific, which causes lots of
unnecessary cache misses. The only thing that we actually need to key on is the
color stops.
This switches the cache to hold GradientStops instead of gfxPatterns. This
improves our cache hit rate and is simpler. It also avoids doing caching when
not using Azure, which currently has no benefit.
Average paint times results (in ms)
(on windows 7 x64, i7-3630qm, HD4000)
-------------------------------------
m-c
open: 3.5 close: 3.3
m-c cache-key
open: 2.6 close: 2.4
ux
open: 7.3 close: 5.2
ux cache-key
open: 6.9 close: 5.3
2013-02-15 20:54:49 +02:00
William Chen
c273fcd7cc
Bug 827227 - Fixed int overflow when scaling border-image-width. r=dbaron
2013-02-14 11:57:20 -08:00
Matt Woodrow
26805f9ea7
Bug 836844 - Pass the right clip area for canvas frames. r=roc
2013-02-04 07:11:49 -05:00
Jeff Muizelaar
09afb373df
Bug 823147 - Avoid moving the start location of non-repeating radial gradients. r=roc
2013-01-18 13:28:06 -05:00
Mats Palmgren
b7ae90666d
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
David Zbarsky
fd7bd329e5
Bug 827149 - Remove some uses of nsIDOMHTMLBodyElement r=bz
2013-01-12 16:53:01 -05:00
Robert O'Callahan
970988bc3c
Bug 826632. Part 1: Merge nsIViewManager into nsViewManager. r=tnikkel
...
--HG--
rename : view/public/nsIViewManager.h => view/public/nsViewManager.h
extra : rebase_source : d00947c925b17f860fcdc0e12b1ec3cc31b7c630
2013-01-05 16:12:24 +13:00
Phil Ringnalda
d44dff5096
Back out 5e76dfb1d426 (bug 826635) and 0df74b1a4543:20df426b6111 (bug 826632) for bustage
...
CLOSED TREE
2013-01-04 21:30:14 -08:00
Robert O'Callahan
0bda13504b
Bug 826632. Part 1: Merge nsIViewManager into nsViewManager. r=tnikkel
...
--HG--
rename : view/public/nsIViewManager.h => view/public/nsViewManager.h
extra : rebase_source : 85587555e1f202809cd39fe899570644e6ca4eb3
2013-01-05 16:12:24 +13:00
Robert O'Callahan
66c066653a
Bug 663776. Part 2: Move TransformRectToRect from nsCSSRendering to gfxUtils. r=mattwoodrow
2012-12-07 12:58:13 +13:00
Jeff Walden
120886ca73
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
Matt Woodrow
68519c9314
Bug 821477 - Don't build nsDisplay{Canvas}BackgroundImage items when the image is empty. r=roc
2012-12-14 11:16:14 +13:00
Matt Woodrow
529d171a21
Bug 816692 - Use the clipped imgIContainer when converting an nsDisplayBackgroundImage into a layer. r=roc
2012-12-10 18:34:17 +13:00
Matt Woodrow
acc7b82670
Bug 819837 - Always treat empty images as being background-attachment:scroll, r=roc
2012-12-10 18:34:15 +13:00
Ed Morley
2f3183fde3
Backout 55d5f3cd5c85, d89ae7f40549 & 270391fca858 (bug 663776) for assertions
2012-12-07 12:37:36 +00:00
Robert O'Callahan
5bac7c566d
Bug 663776. Part 2: Move TransformRectToRect from nsCSSRendering to gfxUtils. r=mattwoodrow
2012-12-07 12:58:13 +13:00
Mats Palmgren
924e59e0d0
Bug 817574 - Replace NS_ABS with std::abs. r=roc
2012-12-04 13:33:33 +01:00
Robert O'Callahan
01b72b4b81
Bug 815593. Don't layerize images that exceed MaxTextureSize. r=mattwoodrow
...
--HG--
extra : rebase_source : f94300b24b90d063df095324663c9d8fa49e42e9
2012-11-28 15:34:45 +13:00
Robert O'Callahan
b36f5b4ead
Bug 809478. Handle 90-degree rotations when snapping transformed gradients. r=jrmuizel
...
--HG--
extra : rebase_source : 61e2873b334f89a0a8b6ae0a7df0dfa37e668d0b
2012-11-23 14:09:12 +13:00
Robert O'Callahan
46448d452d
Bug 812776. Reset InlineBackgroundData whenever there are no display lists extant. Frame trees can't change while there are display lists extant. r=mattwoodrow
2012-11-19 23:54:41 +13:00
Robert O'Callahan
ee4c3c9301
Bug 810470. Part 5: Remove more unused code. r=mattwoodrow
...
--HG--
extra : rebase_source : c8f0d038a37d8fa9e581d83bfe6ea7bc10bd0eef
2012-11-09 18:14:14 -05:00
Robert O'Callahan
65b20a64a3
Bug 810470. Part 2: Change nsDisplayBackground invalidation to store and compare the background positioning rect. r=mattwoodrow
...
--HG--
extra : rebase_source : c9141ba46d034fc496a3e9e33efce5b022bec41c
2012-11-08 10:05:32 -05:00
Robert O'Callahan
e039b9a03d
Bug 810470. Part 1: Cache nsStyleBackground pointer in nsDisplayBackground. r=mattwoodrow
...
--HG--
extra : rebase_source : a104cfa5d8c72e208866b56507c56174e14ef143
2012-11-07 23:08:40 -05:00
Matt Woodrow
fe45b184c8
Bug 798964 - Make mLineContinuationPoint correct when we call Init() on a frame that isn't the first on the line. r=roc
2012-10-25 18:32:25 +13:00
Matt Woodrow
0c5d51feb5
Bug 798964 - Add nsDisplayBackground color and make the bounds of nsDisplayBackground match the image. r=roc
2012-10-25 18:32:25 +13:00
Chris Lord
6c37dfc536
Bug 797021 - Fix border clipping with multiple background layers. r=roc
...
Bug 786502 broke border clipping with multiple background layers as it stopped
iterating from the bottom-most layer when drawing, and thus skipped background
clip setting.
2012-11-02 08:35:32 +00:00
Bas Schouten
b48e5c0b2c
Bug 805831: Add a cache for border corner gradients. r=joedrew
2012-10-27 06:32:52 +02:00
Phil Ringnalda
95b4fda2c5
Back out fbd8fdb7c544 (bug 805831) for build failures
2012-10-26 21:53:41 -07:00
Bas Schouten
0169a197cf
Bug 805831: Add a cache for border corner gradients. r=joedrew
2012-10-27 06:32:52 +02:00
Paul Adenot
d7bd4666ce
Bug 800319 - Make the gradient cache differentiate between backend types. r=Bas
2012-10-26 15:34:43 +02:00
Mats Palmgren
c6c6a29327
Bug 798691, part 2. r=roc
2012-10-25 13:17:10 +02:00
Phil Ringnalda
69b684d597
Back out c95958e3b85d and e8a8bf41e0c4 (bug 798964) for Android reftest-4 failures
2012-10-25 01:19:57 -07:00
Matt Woodrow
a9719b3595
Bug 798964 - Make mLineContinuationPoint correct when we call Init() on a frame that isn't the first on the line. r=roc
2012-10-25 18:32:25 +13:00
Matt Woodrow
c2f1eb01a3
Bug 798964 - Add nsDisplayBackground color and make the bounds of nsDisplayBackground match the image. r=roc
2012-10-25 18:32:25 +13:00
Daniel Holbert
1418ffbc8e
Bug 800603: Just check rv (not rv & outparam) after calling imgIRequest:GetImage & GetImagePrincipal. r=jrmuizel
2012-10-16 16:05:54 -07:00
Mats Palmgren
df0e84f199
Bug 798691. r=roc
2012-10-14 20:27:37 +02:00
Jeff Muizelaar
8b8ae578b1
Bug 799335. Fix unintenional image flash on tab switch. r=joe,dholbert
...
This was caused by bug 792199.
There are two parts to this fix:
1. Always decode during StartDecoding even if we already have a Decoder
(hopefully this is safe) This was a bug in the original patch.
2. After calling StartDecoding() we recheck if we're complete and abort if
we're not doing a SYNC_DECODE. Before this regression we would usually be done
decoding the image because of the decoding we did when we Locked all of the
images on tab switch.
--HG--
extra : rebase_source : 9db93075aad2f45c6cc70d27ef67468b4507642c
2012-10-12 16:04:32 -04:00
Jeff Muizelaar
89f298eb02
Bug 799335. Rename nsStyleImage::RequestDecode to StartDecoding. r=dholbert
...
Now that RequestDecode call StartDecoding this make more sense.
--HG--
extra : rebase_source : ded757b8c90cbc4e5d221c79d2704105e1051183
2012-10-12 16:04:03 -04:00
David Zbarsky
4085f74a3f
[Bug 799407] Fix build warnings in layout r=roc
2012-10-10 01:00:05 -04:00
Robert O'Callahan
95881d4837
Bug 787947. Avoid scaling by 0 when snapping gradient tiles. r=jrmuizel
2012-09-25 15:25:48 +12:00
Ed Morley
1c8a7ade37
Backout a5c50066ecbb (bug 787947), ee9f796b8416 (bug 794709) for crashtest/reftest assertions
2012-10-04 13:15:00 +01:00
Robert O'Callahan
3320a9af10
Bug 787947. Avoid scaling by 0 when snapping gradient tiles. r=jrmuizel
2012-09-25 15:25:48 +12:00
Yu-Sian (Thomasy) Liu
e7b15a81a9
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
e6e722ad0c
Backout ffcdd896a1fa (bug 787947) for reftest failures
2012-10-03 13:43:19 +01:00
Robert O'Callahan
b9d615c5a1
Bug 787947. Avoid scaling by 0 when snapping gradient tiles. r=jrmuizel
2012-09-25 15:25:48 +12:00
foudfou
35bc9a72e8
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).
--HG--
extra : rebase_source : 3b4f7e26690fad487dd11594449948411d4e79bc
2012-09-27 23:44:47 +02:00
Robert O'Callahan
2b736f26c7
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
0f17d35c1d
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
6521fcaca1
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
236a18cd38
Bug 761393 - Add telemetry probes to guess the retention time. r=taras
2012-08-26 21:12:36 -07:00
Paul Adenot
965ed92866
Bug 761393 - Cache the gfxPatterns using an nsExpirationTracker and an hashtable. r=dbaron
2012-08-26 21:09:46 -07: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
Nicolas Silva
75542595f3
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
ae8069738e
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
2e07e6f8c2
Bug 697230: Part 1 - Centralize style image observers. r=bz
2012-08-13 15:04:19 -07:00
Ms2ger
75ab7efb95
Bug 780387 - Part b: Stop using PRIntn; r=bsmedberg
2012-08-09 09:09:40 +02:00
Cameron McCormack
b89baff607
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
d0ad5a7d0c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Robert O'Callahan
5e795b7bf4
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
85d5ae2b8f
Bug 752187 - Part 10: Implement rendering unprefixed gradients. r=dbaron
2012-07-07 10:27:08 -04:00
Masayuki Nakano
34bdb7d777
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
cedd410a70
Backout bug 768775 for now
2012-07-02 14:43:37 +12:00
Robert O'Callahan
7abd565f63
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
...
--HG--
extra : rebase_source : 81b9a7951ce78f60aa8eaeca4f66f62561133254
2012-07-02 11:46:32 +12:00
Jonathan Watt
9472b0acf9
Bug 766120 - Stop conflating effects offset and continuation union size in nsSVGIntegrationUtils. r=longsonr.
2012-06-19 16:28:04 +01:00
David Zbarsky
5199d5cbff
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
7b4d308d3c
Bug 731293. Remove nsFrameManager parameter from nsLayoutUtils::GetParentOrPlaceholderFor. r=mats
2012-06-09 00:22:25 +12:00
Jeff Muizelaar
b67835e90a
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
6642be49cb
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
d7927a9b46
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.
--HG--
extra : rebase_source : 6b3a2a6db21f9cff4ce97a5a10c368d95f730387
2012-05-22 11:32:08 -04:00
Gervase Markham
82ff7027aa
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Jeff Muizelaar
993e673346
Bug 754985. Draw shadows in device space when using a uniform scale. r=roc
...
--HG--
extra : rebase_source : 9d5bf7c1e6a2373718724ace6da1229b2213c1b6
2012-05-16 16:45:25 -04:00
Andreas Gal
a3df077a1a
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
b5904e703e
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
7025d60de9
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
aca6f7c82d
Bug 745864. Add SAMPLE_LABELs to layout code. r=roc, a=joe
...
--HG--
extra : rebase_source : d826780c34692d333442b6bf563791b53bf3aa3d
2012-04-16 14:37:59 -04:00
Kyle Huey
5e3fddb58d
Back out Bug 679230 due to Android reftest failures.
2012-04-07 10:36:49 -07:00
Kyle Huey
dd495263dd
Bug 697230: Part 1 - Centralize style image observers. r=bz
2012-04-07 08:58:41 -07:00
Jonathan Watt
c4e6b7547e
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
e55f832fac
Bug 548375 - Implement css3-background background-repeat property two value syntax. r=dbaron
2012-02-24 21:23:14 -08:00
William Chen
e1ff790f8b
Bug 497995: Part 1 - Implement border-image revisions in latest css3-background spec. r=dbaron
...
--HG--
extra : rebase_source : 5a6cdac6a4b1353170f23f39dd2a209374e72531
2011-12-22 18:34:45 -05:00
Boris Zbarsky
77ad29258a
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
cdc32f1c63
Bug 704088 - Pass dom::Element to nsLayoutUtils::SurfaceFromElement; r=bz
2011-12-03 22:50:16 +01:00
Masatoshi Kimura
270439fd7b
Bug 685400 - add "to" syntax and "magic corner" feature to CSS linear gradient. r=dbaron
...
--HG--
rename : layout/reftests/css-gradients/linear-ref.html => layout/reftests/css-gradients/linear-1-ref.html
rename : layout/reftests/css-gradients/linear.html => layout/reftests/css-gradients/linear-1b.html
rename : layout/reftests/css-gradients/linear-diagonal-1-ref.html => layout/reftests/css-gradients/linear-diagonal-1c.html
rename : layout/reftests/css-gradients/linear-diagonal-2-ref.html => layout/reftests/css-gradients/linear-diagonal-2c.html
rename : layout/reftests/css-gradients/linear-diagonal-3-ref.html => layout/reftests/css-gradients/linear-diagonal-3c.html
rename : layout/reftests/css-gradients/linear-diagonal-4-ref.html => layout/reftests/css-gradients/linear-diagonal-4c.html
rename : layout/reftests/css-gradients/linear-keywords-ref.html => layout/reftests/css-gradients/linear-keywords-1-ref.html
rename : layout/reftests/css-gradients/linear-keywords.html => layout/reftests/css-gradients/linear-keywords-1b.html
2011-10-22 21:41:11 +02:00
Olli Pettay
5a92aedb22
Bug 682420 - Rename nsINode::GetOwnerDoc to nsINode::OwnerDoc, part 2, r=jst
...
--HG--
extra : rebase_source : 53dc2ec386f6e4147587e6be3c53d297ad71d57a
2011-10-18 14:19:44 +03:00
Olli Pettay
2c2da3099f
Bug 682420 - Rename nsINode::GetOwnerDoc to nsINode::OwnerDoc, part 1, r=jst
...
--HG--
extra : rebase_source : baf1a25cdea68d499a7673fdf96e27b5a12dc83c
2011-10-18 13:53:36 +03:00
Ehsan Akhgari
92064e6d3f
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
461fab9117
Bug 10209 - Part 2: Implement the absolute positioning support for all frames; r=roc
2011-04-29 19:02:33 -04:00
Michael Wu
d2b70213ac
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
ee56ede693
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
98536ed88c
Back out a38f82d29d97 (bug 652914) for causing reftest failures.
2011-09-06 15:19:31 -05:00
Timothy Nikkel
90d87b30d6
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
d42641e046
Backout bug 633627 due to reftest perma-orange.
2011-08-31 20:05:31 +02:00
Benjamin Stover
287d94109a
Bug 633627 Create shadow bitmap in device space r=joe
2011-08-31 09:03:58 -07:00
Mats Palmgren
f1c56f2e22
Bug 653649 - New way of getting child lists from frames. (part 4/5) r=roc
...
Remove the nsIAtom* child list names and use child list ID enum instead.
2011-08-24 22:54:30 +02:00
Jeff Muizelaar
1f4cd33169
Bug 660662. Eliminate NS_(ceil|floor). r=roc
...
These just called the system versions.
2011-05-30 15:08:55 -04:00
Jeff Walden
287bf75e80
Bug 609714 - Properly compute background image size for vector background images lacking intrinsic sizes or an intrinsic aspect ratio. r=dholbert, r=dbaron
...
--HG--
extra : rebase_source : 9b018973a13a50f7616cac2a369bc3a61ccd5927
2011-01-13 04:40:12 -06:00
Vitor Menezes
38be52299b
Fix apparent rounding issues with new text decoration code. (Bug 403524) r=dbaron
...
Rendering text decorations far away from the frame's baseline seems to
sometimes introduce rounding issues. This patch addresses that by
avoiding snapped-baseline weirdness and using a different argument to
nsTextFrame::PaintTextDecorations in some computations that didn't
really need to use the snapped baseline anyway.
2011-08-03 11:30:58 -07:00
Ehsan Akhgari
2a3dbb4205
Back out bug 10209 and bug 656875 (its regression fix) from Aurora because the work on this bug has not been finished yet
...
--HG--
extra : transplant_source : t%9F%EB%2Aa%A4%C0%9Ab%A5%DDQ%3EMD%5E%01h%E7%2A
2011-06-01 16:18:15 -04:00
Boris Zbarsky
54c33b27a9
Bug 480686. Don't assume that the next-continuation of an inline frame is in the same block; it could be in the next-in-flow of the block. r=roc
2011-06-26 12:48:37 -04:00
Mounir Lamouri
9e6735ba79
Backout changeset bba3ada5314c (bug 480686) due to perma-orange.
2011-06-27 00:00:47 +02:00
Boris Zbarsky
b9d1326590
Bug 480686. Don't assume that the next-continuation of an inline frame is in the same block; it could be in the next-in-flow of the block. r=roc
2011-06-26 12:48:37 -04:00
Craig Topper
26bac156fd
Bug 654369 - Part 11: Remove OOM checks from layout/base r=bz
...
--HG--
extra : rebase_source : a725d78f3e128d6d4ca1eb48eec1cfc78f7762bf
2011-04-28 22:02:40 -07:00
Ed Morley
3f49fdcb2a
Bug 661584 - Code cleanup, substitute more PR_(MAX|MIN|ABS|ROUNDUP) macro calls; r=roc,ted
2011-06-25 16:06:02 +02:00
Michael Ventnor
d32c122811
Bug 663028 - Make Print Preview themable with CSS, and modernize its look r=roc
2011-06-10 20:07:26 +10:00
Dominic Fandrey
968bf5196a
Bug 645398 - Substitute PR_(MAX|MIN|ABS|ROUNDUP) macro calls; r=roc
2011-06-02 14:56:50 +02:00
Ms2ger
90dd851282
Bug 660657 - Make nsCSSRendering::Init return void; r=roc
2011-06-02 14:56:46 +02:00
Ms2ger
471e6d31d0
Bug 660604 - Remove nsIHTMLDocument::GetBodyContentExternal; r=jst
2011-06-02 14:56:46 +02:00
Ed Morley
f13392fb42
Bug 614515 - Remove MOZ_SVG conditions. r=roc
2011-05-30 09:34:50 +02:00
Ehsan Akhgari
e66b9024c8
Bug 10209 - Part 2: Implement the absolute positioning support for all frames; r=roc
2011-04-29 19:02:33 -04:00
Boris Zbarsky
44b750c135
Bug 654167. Fix drawing of thin 'border-style: double' border-collapsed borders. r=roc
2011-05-04 13:57:01 -04:00
Masayuki Nakano
1adf21f3e7
Bug 647421 -moz-text-decoration-color and -moz-text-decoration-style should be reset by text-decoration r=dbaron, sr=bzbarsky
2011-04-23 14:16:41 +09:00
Zack Weinberg
a8dd50e303
Bug 651017, part 7: remove nsDeviceContext::CreateRenderingContextInstance and the CreateRenderingContext overload that takes a widget.
...
--HG--
rename : gfx/src/nsThebesDeviceContext.cpp => gfx/src/nsDeviceContext.cpp
rename : gfx/src/nsThebesDeviceContext.h => gfx/src/nsDeviceContext.h
extra : rebase_source : 6be7fe432488dcf2fb5b2faa0e178dccab480285
2011-04-16 21:08:22 -07:00
Zack Weinberg
3929b6bfdd
Bug 651017, part 5: mechanical changes.
...
--HG--
extra : rebase_source : 8bbdf48488736b51d05e734e2e9316c1460cfed5
2011-04-16 18:22:44 -07:00
Zack Weinberg
8648dcc368
Bug 651017, part 1: minimize inclusion of ns*DeviceContext.h; move the printing error codes to nsIDeviceContextSpec.h; os2 small widget cleanup.
...
--HG--
extra : rebase_source : 5b7cebe68f71a760463e3522b159c7cde8a72f5e
2011-04-16 18:22:41 -07:00
Robert O'Callahan
92fcae3d0b
Bug 641426. Part 8: Replace gfxRect::Outset/Inset with Inflate/Deflate. Also slip in a conversion constructor from nsIntRect to gfxRect. r=tnikkel
2011-04-19 15:07:51 +12:00
Robert O'Callahan
a66b612e32
Bug 641426. Part 4.2: Rename BaseMargin::side to BaseMargin::Side. r=cjones
2011-04-19 15:07:22 +12:00
Robert O'Callahan
1c5c997eb5
Bug 641426. Part 3: Convert gfxRect::pos/size to x/y/width/height. r=joe,sr=cjones
2011-04-19 15:07:21 +12:00
Robert O'Callahan
629c1b7e18
Bug 641426. Part 2: Remove a bunch of direct gfxRect::pos/size usage. r=joe
2011-04-19 15:07:21 +12:00
Jan Küchler
c510bc3046
Bug 266236 part 3: Mechanical rename of nsIRenderingContext and nsThebesRenderingContext to nsRenderingContext. Mechanical substitution of nsRefPtr<nsRenderingContext> for nsCOMPtr<nsRenderingContext>.
...
--HG--
rename : gfx/src/nsThebesRenderingContext.cpp => gfx/src/nsRenderingContext.cpp
extra : rebase_source : 34884bfcafd885feaf73300bc7246cd192062a48
2011-04-07 18:04:40 -07:00
Jan Küchler
ebb2f0c7ec
Bug 266236 part 1: Preliminary API cleanup on nsIRenderingContext.
...
--HG--
extra : rebase_source : a21ffad484f47103e403b8316eae5fdfd815c2cb
2011-04-07 18:04:39 -07:00
Mats Palmgren
fd82cd9682
Bug 640272 - Check load status for border images before trying to render them. r=bzbarsky
2011-04-04 13:41:02 +02:00
Masayuki Nakano
8de7beda92
Bug 59109 Part 2: Cleaning up current text decoration implementation r=dbaron
2011-03-31 21:26:49 +09:00
L. David Baron
a9e4fb0658
Correctly handle non-repeating radial gradients in which all stops are at the same position. (Bug 635222) r=roc
2011-03-03 13:18:42 -08:00
Timothy Nikkel
9fce0929fa
Bug 622818. Don't clip fixed backgrounds to the viewport if we are inside a transform. r=roc a=blocking
2011-02-08 13:29:28 -06:00
Daniel Holbert
45368e73b2
Bug 628477: Remove declaration for now-defunct helper method PaintBackgroundLayer in nsCSSRendering.cpp. r=roc a=roc
2011-01-24 22:41:12 -08:00
Timothy Nikkel
c1e5e8edb6
Bug 626536. Part 2. Don't use a rounded rect clip to draw a rounded rect background color. r=roc a=roc
2011-01-18 13:43:47 -06:00
Timothy Nikkel
aa17da2413
Bug 626536. Part 1. Refactor the background clip code so that it stores its state in a struct we can pass around. r=roc a=roc
2011-01-18 13:43:47 -06:00
Boris Zbarsky
34362061cf
Bug 624301. Only change background clip to padding-box for solid borders if it's border-box to start with. r=dbaron
2011-01-14 10:34:39 -05:00
Robert O'Callahan
a6cb62365a
Bug 602757. Part 4: Let nsDisplayBackground::GetOpaqueRegion return opaque regions for arbitrary repeat modes, background-clip, border-radius, etc. r=tnikkel,sr=dbaron,a=blocking
2011-01-03 14:48:09 +13:00
Bas Schouten
21474299d4
Bug 615462: Only draw native theme for the dirty rect. r=roc a=blocking-final
2010-12-01 04:20:05 +01:00
Mats Palmgren
8cb51d707e
Bug 611574 - Inset box-shadow paints outside of buttons and fieldsets if blur radius is 0. r=roc a=blocking2.0:final
2010-11-27 23:49:40 +01:00
Robert O'Callahan
92b4269cac
Bug 593839. Part 1: Use nsDisplayListBuilder::IsPaintingToWindow instead of gfxContext::DESTINED_FOR_SCREEN. r=tnikkel
2010-10-25 16:38:09 +02:00
L. David Baron
86a617e692
Change callers to use new nsIFrame overflow APIs. (Bug 542595, patch 20) r=roc a2.0=blocking2.0:beta8
2010-10-06 21:25:47 -07:00
L. David Baron
d4d2946639
Support calc() on background-position, background-size, -moz-transform-origin, and background-image gradient stop positions. (Bug 594934) r=bzbarsky a=blocking2.0:betaN
...
(Note: this also depends on the change to nsStyleAnimation.cpp's StyleCoordToValue in bug 520234 and on other changes in that bug.)
2010-09-15 08:11:26 -07:00
L. David Baron
04ad76518f
Change storage of background-size and background-position to allow percentages and lengths. (Bug 594934) r=bzbarsky a=blocking2.0:betaN
2010-09-15 08:11:26 -07:00
L. David Baron
d022f13c66
Change the blur radius for -moz-box-shadow and text-shadow to match what is specified in css3-background, and the blur radius for canvas to follow what is specified in HTML5. (Bug 590039) r=roc a2.0=blocking2.0:beta6
...
This fixes the multiplication by 1.5 in
gfxAlphaBoxBlur::CalculateBlurRadius (originally added in changeset
ce9f05b57b95 for bug 467518) to work correctly. It was previously a
multiplication by 1 due to integer division. CalculateBlurRadius
previously multiplied by 1.880; it now multiplies by 2.820.
This changes canvas shadow handling to multiply shadowBlur by 2 before
taking its square root, as described in the spec. This means that
canvas shadow blurs 8px or smaller are 1.5 times larger than they were
previously (due to the CalculateBlurRadius change), and canvas shadow
blurs larger than 8px are 2.121 times larger than they were previously
(due to the CalculateBlurRadius change *and* the additional factor of
sqrt(2)).
This changes text-shadow and -moz-box-shadow handling to use
CalculateBlurRadius on half of the value given instead of passing the
value through directly. This means that text-shadow and box-shadow
blurs are multiplied by 1.410 relative to their old sizes. It also
means that we round rather than floor, so that the effect that used to
be drawn by a blur in the range 1px to 1.99px is now drawn by a blur
anywhere in the range 0.36px to 1.05px, the effect that used to be drawn
by a blur in the range 2px to 2.99px is now drawn by a blur anywhere in
the range 1.06px to 1.77px, what used to be a drawn by a blur in the
range 3px to 3.99px is now drawn by a blur anywhere in the range 1.78px
to 2.47px, etc.
2010-09-11 09:27:12 -07:00
Daniel Holbert
189a86e011
Bug 594941: Handle imgIContainer::GetHeight/GetWidth failure in DrawBorderImage. r=roc a=roc
2010-09-10 10:42:57 -07:00
Zack Weinberg ext:(%2C%20L.%20David%20Baron%20%3Cdbaron%40dbaron.org%3E)
8537cb241d
Bug 451134 (1/2): switch to the official border-radius property names: purely mechanical changes. r=dbaron a2.0=blocking2.0:beta6
...
This was generated with the command:
LC_ALL=C grep -irlEZe '[-_]moz[-_]border[-_]radius([-_](top|bottom)(right|left))?' * | xargs -0 perl -pi -e \
's/-moz-border-radius-(top|bottom)(left|right)/border-${1}-${2}-radius/gi;
s/_moz_border_radius_(top|bottom)Right/border_${1}_right_radius/g;
s/_moz_border_radius_(top|bottom)Left/border_${1}_left_radius/g;
s/-moz-border-radius/border-radius/gi;
s/_moz_border_radius/border_radius/g;'
2010-09-09 08:21:47 -07:00
Daniel Holbert
f9a2dd705a
Bug 276431 Patch 10: Make imgContainer::Draw take image-viewport-size, and improve nsLayoutUtils drawing wrappers. r=roc r=joe a=blocking
2010-09-08 13:40:39 -07:00
Bobby Holley
8bce278b8c
Bug 592493 - Register border-images with the document image tracker.r=dbaron
2010-09-07 17:30:40 -07:00
L. David Baron
d9cfa917b0
Expose RectToGfxRect on nsLayoutUtils. (Bug 459144, patch 10) r=roc a2.0=blocking:beta6+
2010-09-07 15:20:35 -07:00
L. David Baron
8f2a37b693
Expose nsCSSRendering::ComputePixelRadii. (Bug 459144, patch 9) r=roc a2.0=blocking:beta6+
2010-09-07 15:20:35 -07:00
L. David Baron
bc123def7f
Use nsIFrame::GetBorderRadii so that we pick up when it is overridden. (Bug 459144, patch 7) r=roc a2.0=blocking:beta6+
2010-09-07 15:20:35 -07:00