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
L. David Baron
65e139ce28
Move clamping of border-radii that are too big from nsCSSRendering::ComputePixelRadii to nsIFrame::ComputeBorderRadii. This also fixes a bug in nsDisplayBoxShadowOuter::ComputeVisibility. (Bug 459144, patch 5) r=roc a2.0=blocking:beta6+
2010-09-07 15:20:35 -07:00
L. David Baron
433d08b80a
Don't throw away the subpixel part of the border-radius. (Bug 459144, patch 4) r=roc a2.0=blocking:beta6+
2010-09-07 15:20:34 -07:00
L. David Baron
afabd727c0
Move skip-sides handling from nsCSSRendering::ComputePixelRadii to nsIFrame::ComputeBorderRadii. This fixes a bug (ignoring skip-sides) in nsDisplayBoxShadowOuter::ComputeVisibility, and improves the no-border-radius optimizations when skip-sides allow us to take them. (Bug 459144, patch 3) r=roc a2.0=blocking:beta6+
2010-09-07 15:20:34 -07:00
L. David Baron
8a42fd5b90
Make nsIFrame::ComputeBorderRadii take an nsSize instead of two nscoords. (Bug 459144, patch 2) r=roc a2.0=blocking:beta6+
2010-09-07 15:20:34 -07:00
L. David Baron
999f84163c
Move nsCSSRendering::GetBorderRadiusTwips to nsIFrame and rename it to ComputeBorderRadii. (Bug 459144, patch 1) r=roc a2.0=blocking:beta6+
2010-09-07 15:20:34 -07:00
Zack Weinberg
3c7d2bc0ae
Bug 471643: Evaluate vertical percentages in border-radius relative to box height. r=dbaron a2.0=blocking:beta6+
2010-08-31 12:05:11 -04:00
Robert O'Callahan
cac5ffc3c7
Bug 581222. Draw outer box-shadows for native-themed elements using the alpha mask of the theme background as the border-shape, and disable inner box-shadows. r=dbaron
...
--HG--
extra : rebase_source : a9b81a5d3e09cca41a8b479a4b62b3e2df6c4354
2010-08-23 21:30:08 +12:00
Robert O'Callahan
5de92d7b23
Bug 581222. Extend gfxAlphaBlur to support "spread radii". r=vlad
...
--HG--
extra : rebase_source : e644ae08007e52c524c3237d336441f1413f846b
2010-08-23 21:30:07 +12:00
Robert O'Callahan
915a02867c
Bug 581222. Back out patch that disabled box-shadows for native-themed content elements.
...
--HG--
extra : rebase_source : 4685dfdddd9e0bf1ed9e5f8401d6bc73b91a5600
2010-08-23 21:30:07 +12:00
Mark Banner
aa557442d3
Backed out changeset f600448ae7db / bug 471643 due to reftest failures
2010-08-19 09:27:01 +01:00
Zack Weinberg
2fa7c64088
Bug 471643: Make vertical percentages in border-radius relative to box height. r=dbaron
2010-08-19 09:45:32 +02:00
Daniel Holbert
b1af0183eb
(no bug) a few whitespace fixes in layout, to triger fresh builds on a CLOSED TREE
2010-08-18 21:53:55 -07:00
Bobby Holley
450b5f3f3b
bug 512260 - part 2 - Make ImageRenderer take a pointer to nsStyleImage rather than making a copy.r=dbaron,a=blocker
2010-08-05 17:30:19 -04:00
Markus Stange
50e1da0830
Bug 506826 - Hook up -moz-element painting. r=roc
2010-08-13 15:34:01 +02:00
Robert O'Callahan
3b653c5345
Bug 564991. Part 14: Scroll using the layer system. r=mats,sr=dbaron
2010-07-16 09:08:02 +12:00
Robert O'Callahan
2ac3c549db
Bug 572613. Avoid creating a SolidColor display item when possible by poking the color into the canvas background display item. r=tnikkel
2010-07-16 09:07:53 +12:00
Karl Tomlinson
5cad92a1be
b=444870 include overflow in the dirty rect passed to DrawWidgetBackground() r=roc
2010-07-15 10:25:41 +12:00
Karl Tomlinson
791c5c5557
backing out dacb2bc379ad due to assertions in 419737-1 and 435223-1 reftests
2010-07-02 17:45:17 +12:00
Karl Tomlinson
306540d13f
b=444870 include overflow in the dirty rect passed to DrawWidgetBackground() r=roc
2010-07-02 16:08:06 +12:00
L. David Baron
534169bd6e
Rename -moz-background-size to background-size. (Bug 549809) r=roc
2010-06-08 18:44:33 -07:00
L. David Baron
1118f60946
Rename properties and values of background-clip and background-origin to match css3-background. (Bug 549809) r=roc
2010-06-08 18:44:33 -07:00
L. David Baron
13edc8e9a6
Add -moz-background-clip: content. (Bug 549809) r=roc
2010-06-08 18:44:32 -07:00
Daniel Holbert
7055ceda13
Bug 561861: Remove unused variable 'ourColor' from nsCSSRendering::PaintOutline. r=dbaron
2010-04-28 23:13:11 -07:00
timeless
f3cdc36c53
Bug 334571 Coverity 702, NS_SIDES array limit check - replace NS_FOR_CSS_SIDES defines with enum. r=zwol,mats
2010-04-27 18:15:02 +02:00
timeless
aa22afa674
Bug 334571 strip trailing whitespace. r=zwol
2010-04-27 18:15:01 +02:00
David Baron
c66b15e601
Bug 502301 - fix C++0x narrowing conversion inside {} compilation errors [r=benjamin]
2010-04-20 10:41:21 +02:00
Michael Ventnor
3e049f0588
Bug 544099 - Highly optimise -moz-box-shadow for common cases by allowing layout to specify an area where blurring is not needed r=roc,joe
...
--HG--
rename : gfx/thebes/src/gfxBlur.cpp => gfx/src/thebes/utils/gfxBlur.cpp
rename : gfx/thebes/public/gfxBlur.h => gfx/src/thebes/utils/gfxBlur.h
extra : rebase_source : d7ad7a1ee2ac9e25937133dba95f0f8d7347d612
2010-04-18 13:13:10 +10:00
Masayuki Nakano
bb2c56323d
Bug 556694 Selection color isn't reverted when input field is specified only background-color r=dbaron
2010-04-08 21:44:57 +09:00
L. David Baron
e4ae9159cc
Use the appropriate color based on visitedness for 'outline-color'. (Bug 147777) r=zweinberg
2010-04-02 18:58:26 -07:00