Ehsan Akhgari
a15756e3c9
Bug 921753 - Part 2: Move GraphicsFilters outside of gfxPattern.h so that we won't need to #include that header everywhere GraphicsFilter is needed; r=roc
...
This patch reduces the number of files that transitively #include
gfx/2d.h from 1582 to 1362.
2013-10-01 17:01:19 -04:00
Mats Palmgren
636e2bb841
Bug 919318 - Drop the Get prefix on the frame methods GetFirstContinuation, GetLastContinuation, GetFirstInFlow, GetLastInFlow and also on nsLayoutUtils::GetLastContinuationWithChild, because they never return null. r=dholbert
2013-09-25 11:42:34 +00:00
Jeff Muizelaar
0d602f224f
Bug 916535. Avoid using repeating gradients for tiling when it won't work. r=roc
...
Avoiding normalization introduced in bug 895135 caused gradientStart/Stop to
not correspond to the firstStop and lastStop. This can cause us to incorrectly
decide to use the repeat fast path. This patch switches takes us back to the
same condition as we had before the regression.
2013-09-24 00:04:36 -04:00
Robert O'Callahan
51222bdd45
Bug 910989. Remove nsTHashtable::Init, fallible allocation, and MT hashtables. r=ehsan,bsmedberg
2013-09-02 20:41:57 +12:00
Ehsan Akhgari
45b9b9b617
Bug 906790 - Minimize layout/base #includes; r=roc
2013-08-19 18:55:18 -04:00
Corey Ford
6a0ae7831b
Bug 898794 - Store normal frame position before applying relative positioning. r=dbaron
2013-08-08 17:20:17 -07:00
Timothy Nikkel
efe01f834b
Bug 900662. Pass sync decode flags through moz-element painting so images inside moz-element work correctly with reftests. r=mstange
2013-08-01 15:42:34 -05:00
Nicholas Cameron
75dab447ee
Bug 897787. Use background-size in preference to background positioning area size for a background-image's preferered size. r=roc
2013-08-01 16:22:40 +12:00
Timothy Nikkel
81ed726186
Bug 900214. Remove unused aFlags argument to nsImageRenderer::Draw. r=nrc
...
Instead use mFlags.
2013-07-31 17:09:30 -05:00
Simon Sapin
3af4739a73
Bug 483446 - CSS3 'background-attachment: local' support. r=roc
2013-07-23 09:22:58 -04:00
Jeff Muizelaar
6bda867459
Bug 895135. Avoid normalizing gradients to a smaller interval than 0..1. r=roc
...
Previously if we had all the stops at the same location, we'd end up putting
them all at 0. This makes things harder for backends that implement gradients
with a lookup table because they don't have room for multiples entries at the
zero location. If instead we leave the stops at the same location on the 0-1
line we'll have a better chance of drawing them correctly.
2013-07-20 08:58:10 -04:00
Nicholas Cameron
45bed62648
Bug 700926; reshuffle background image drawing. r=roc
2013-07-19 20:40:02 +12:00
Nicholas Cameron
7ad13a17b8
Bug 700926. Refactor image sizing to be closer to the spec and not tied to backgrounds. r=roc
2013-07-19 20:39:58 +12:00
Timothy Nikkel
cdc7881ecf
Bug 695763. Part 5. Invalidate background images if they are not decoded and we are asked to do a sync decode. r=matt.woodrow
2013-06-26 11:43:27 -05:00
Timothy Nikkel
df8c23dab6
Bug 695763. Part 3. Invalidate the background images of buttons, fieldsets, and mathml chars if they are not decoded and we are asked to do a sync decode. r=matt.woodrow
2013-06-26 11:43:26 -05:00
Timothy Nikkel
b7a57570a3
Bug 878612. Make sure to pass through the background painting flags through in all cases. r=matt.woodrow
2013-06-03 23:49:03 -05:00
Joe Drew
fd705e0ee9
Bug 867770 - Layerize all animated images. r=mattwoodrow
2013-05-30 09:50:50 -04:00
Joe Drew
55c26fe19b
Bug 832400 - Add an imgIContainer flag HIGH_QUALITY_SCALING that controls whether to use the high quality scaler, and only use it when we're drawing to a window. r=tn
2013-04-25 18:08:58 -04:00
Mats Palmgren
16578a2efc
Bug 485149 - Using box-shadow on a <fieldset> with <legend> does not follow box shape. r=roc
2013-04-17 22:16:14 +02:00
Seth Fowler
6141197109
Bug 826093 (Part 4) - Use ClippedImage instead of ExtractFrame for border-image. r=bz
2013-04-05 14:14:53 -07:00
Seth Fowler
1ea7f63cd2
Bug 826093 (Part 3) - Use ClippedImage instead of ExtractFrame for -moz-image-rect. r=bz
2013-04-05 14:14:37 -07:00
Phil Ringnalda
3f372a5d61
Backout 051cf1c1449c:521215a7b32e (bug 826093) for Android reftest failure
2013-04-04 21:06:58 -07:00
Seth Fowler
fd9522ab3d
Bug 826093 (Part 4) - Use ClippedImage instead of ExtractFrame for border-image. r=bz
2013-04-04 19:06:42 -07:00
Seth Fowler
39e2cc896b
Bug 826093 (Part 3) - Use ClippedImage instead of ExtractFrame for -moz-image-rect. r=bz
2013-04-04 19:06:42 -07:00
Ryan VanderMeulen
d59826c312
Backed out changesets 957f2b35ce83:1799cffbba63 (bug 826093) for Android reftest-2 failures (again) on a CLOSED TREE.
2013-03-26 21:56:03 -04:00
Seth Fowler
d263712784
Bug 826093 (Part 4) - Use ClippedImage instead of ExtractFrame for border-image. r=bz
2013-03-26 16:29:13 -07:00
Seth Fowler
9c96c89286
Bug 826093 (Part 3) - Use ClippedImage instead of ExtractFrame for -moz-image-rect. r=bz
2013-03-26 16:29:13 -07:00
Ryan VanderMeulen
1105a2d533
Backed out changesets 4b97cab51e59:5e573640e390 (bug 826093) for Android reftest-2 failures on a CLOSED TREE.
2013-03-26 16:52:17 -04:00
Seth Fowler
c1d2247cf7
Bug 826093 (Part 4) - Use ClippedImage instead of ExtractFrame for border-image. r=bz
2013-03-26 11:56:46 -07:00
Seth Fowler
14ac2773ca
Bug 826093 (Part 3) - Use ClippedImage instead of ExtractFrame for -moz-image-rect. r=bz
2013-03-26 11:56:46 -07:00
Benoit Girard
f4b3710284
Bug 851611 - Part 3: Rename headers. r=jrmuizel
2013-03-18 15:25:50 +01:00
Benoit Girard
4146042cfd
Bug 851611 - Part 2: Update profiler calls. r=jrmuizel
2013-03-16 00:47:02 -04:00
Ed Morley
90c9bf415e
Backed out changeset c75481a07302 (bug 851611)
2013-03-18 14:10:35 +00:00
Ed Morley
627fcd7895
Backed out changeset d195190adc48 (bug 851611)
2013-03-18 14:10:30 +00:00
Benoit Girard
0b880319f3
Bug 851611 - Part 3: Rename headers. r=jrmuizel
2013-03-18 14:41:02 +01:00
Benoit Girard
6d0dfa5b89
Bug 851611 - Part 2: Update profiler calls. r=jrmuizel
2013-03-16 00:47:02 -04:00
Jeff Walden
dc6bf5f361
Bug 847480 - Convert DeprecatedAbs overloads taking floating point (except for nscoord uses, when nscoord is optionally a floating point type) to Abs. r=Ms2ger
2013-03-05 15:43:44 -08:00
Jeff Walden
ae46876880
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
66cfa5bd69
Bug 848421. Part 2. Remove useless PresContext argument to nsCSSRendering::FindBackground. r=mats
2013-03-07 10:03:49 -06:00
Daniel Holbert
723a4f151a
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
8be01906e2
Bug 835542 - Implement mozilla::Abs. r=Ms2ger
2013-02-15 19:55:36 -08:00
Seth Fowler
47e3e67b60
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
ca6c366dc6
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
3c5d51984d
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
4ebab1bc1d
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
e7213c7b47
Bug 827227 - Fixed int overflow when scaling border-image-width. r=dbaron
2013-02-14 11:57:20 -08:00
Matt Woodrow
6f3d5aed37
Bug 836844 - Pass the right clip area for canvas frames. r=roc
2013-02-04 07:11:49 -05:00
Jeff Muizelaar
6aa9eb6efe
Bug 823147 - Avoid moving the start location of non-repeating radial gradients. r=roc
2013-01-18 13:28:06 -05:00
Mats Palmgren
7532b4e736
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
506bcc0ab0
Bug 827149 - Remove some uses of nsIDOMHTMLBodyElement r=bz
2013-01-12 16:53:01 -05:00