Zack Weinberg
1628ea1551
Bug 266236 part 9: Move nsBoundingMetrics to its own header and prune inclusions of nsRenderingContext.h.
...
--HG--
rename : gfx/src/nsThebesRenderingContext.cpp => gfx/src/nsRenderingContext.cpp
rename : gfx/src/nsThebesRenderingContext.h => gfx/src/nsRenderingContext.h
extra : rebase_source : 92660748436f03475e011184e2828f1db0ad63e0
2011-04-07 18:04:40 -07: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
Masayuki Nakano
8de7beda92
Bug 59109 Part 2: Cleaning up current text decoration implementation r=dbaron
2011-03-31 21:26:49 +09: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
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
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
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
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
5de92d7b23
Bug 581222. Extend gfxAlphaBlur to support "spread radii". r=vlad
...
--HG--
extra : rebase_source : e644ae08007e52c524c3237d336441f1413f846b
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
Timothy Nikkel
a0bea31596
Bug 563878. Part 1c. Misc layout cleanup. r=mats
...
(transplanted from 2c4a36b7e9ea2125b9daaab242202be4c34e46a5)
--HG--
extra : transplant_source : %2CJ6%B7%E9%EA%21%25%B9%DA%AA%B2B%20%2B%E4%C3NF%A5
2010-06-05 15:29:49 -05: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
L. David Baron
712030c86e
Use the appropriate color based on visitedness for nsCSSRendering::PaintBorder users of the 'border-*-color' properties. (Bug 147777) r=zweinberg
2010-04-02 18:58:26 -07:00
L. David Baron
109a546aaa
Make PaintBackgroundWithSC and related methods operate on nsStyleContext* rather than const nsStyleBackground*. (Bug 147777) r=zweinberg
2010-04-02 18:58:26 -07:00
Serge Gautherie
fe65b9df27
Backed out changeset: b3d6a8724029 of
...
Bug 544099 - Allow shadow blurring to skip areas where blurring is unnecessary; Patch 3.1.
which breaks comm-central.
2010-02-04 20:55:10 +01:00
Michael Ventnor
9be7ff6cd7
Bug 544099 - Allow shadow blurring to skip areas where blurring is unnecessary; Patch 3.1.
...
r=roc.
2010-02-04 19:15:03 +01:00
Robert O'Callahan
0ee624eeb2
Bug 531371. Correctly propagate the backround from a <body style="display: table"> to the viewport as needed. r=bzbarsky
2009-12-01 12:21:00 -05:00
Robert O'Callahan ext:(%2C%20Ms2ger%20%3Cms2ger%40gmail.com%3E)
c1cb654e54
Bug 513395: Implement revised CSS gradient notation (2/2): rendering
...
--HG--
rename : layout/reftests/css-gradients/radial-ref.html => layout/reftests/css-gradients/radial-1-ref.html
rename : layout/reftests/css-gradients/radial.html => layout/reftests/css-gradients/radial-1a.html
rename : layout/reftests/css-gradients/twostops-ref.html => layout/reftests/css-gradients/twostops-1-ref.html
rename : layout/reftests/css-gradients/twostops.html => layout/reftests/css-gradients/twostops-1a.html
2009-11-02 11:36:43 -08:00
Jeff Walden
436ddb654e
Bug 509329 - Various issues with invalidation of backgrounds propagated from body to the canvas, and with sized backgrounds. r=dbaron
...
--HG--
extra : rebase_source : ade87923afbccfb4c4b5016d8421aae57c4b0e4e
2009-10-22 16:46:08 -07:00
Michael Ventnor
e18537e820
Bug 512988 - Text-shadow blur and underline messes up with padding-left. r+sr=roc
2009-09-18 20:18:35 +02:00
Bobby Holley
0b8080d9b5
Bug 435296 - Sync decode handling for decode-on-draw. r=roc
2009-09-12 16:44:18 -06:00
Dão Gottwald
b978bfab72
Backed out changeset 1e6d52401dd2
2009-09-04 15:32:17 +02:00
Michael Ventnor
7ad8a95064
Bug 512988 - Text-shadow blur and underline messes up with padding-left. r+sr=roc
2009-09-04 14:24:26 +02:00
Michael Ventnor
f89f2766b4
Bug 479220: Implement support for CSS gradients: -moz-linear-gradient() and -moz-radial-gradient(). r=roc, dbaron
2009-08-01 08:53:40 -07:00
Dão Gottwald
26c7b3a525
Backed out changeset c086fca6fc55
2009-07-31 14:35:48 +02:00
Michael Ventnor
9b44f1f16c
Bug 479220 - Implement the CSS gradients proposal. r=roc,dbaron sr=roc
2009-07-31 13:32:32 +02:00
Timothy Nikkel
8f1f1d1fd5
Bug 488242. Make iframes with semi-transparent backgrounds work correctly by painting all canvas background colors using a dedicated fallback background color display item. r+sr=roc
2009-07-04 21:30:59 +12:00
Robert O'Callahan
5843f756df
Bug 494667. Don't apply optimization to shrink drawn background area to exclude solid borders, if we're not going to draw those borders (e.g. in tables with collapsing borders). r+sr=dbaron,a=beltzner
2009-05-28 17:01:42 +12:00
Michael Ventnor
3a0b0b02b8
Bug 489319 - Box shadow's OptimizeVisibility() should take border radii into account. r+sr=roc
2009-04-24 11:24:44 +02:00
Robert Longson
1acf3b9351
Bug 486933 - image-rendering does not work on body or root CSS background images. r+sr=roc
2009-04-10 14:41:59 +01:00
Boris Zbarsky
b13f991939
Backed out changeset 86c8e18f20eb (bug 486933) due to landing on orange tree.
2009-04-09 11:54:43 -04:00
Robert Longson
57f1153139
Bug 486933 - image-rendering does not work on body or root CSS background images. r+sr=roc
2009-04-09 13:17:50 +01:00
Robert Longson
266fc4ea3d
Backout Bug 486933 on suspicion of causing reftest machine issues
2009-04-07 00:57:50 +01:00
Robert Longson
2fbd5745fc
Bug 486933 - image-rendering does not work on body or root CSS background images. r+sr=roc
2009-04-06 22:00:29 +01:00
Masayuki Nakano
45600f33a1
Bug 486708 Should lift up selection underline as far as possible if it overflows from the descent space r+sr=roc
2009-04-06 14:53:00 +09:00
Masayuki Nakano
0066bb8330
Bug 338209 Make spellchecker use thicker wavy underlines instead of dotted underlines r+sr=roc
2009-04-03 16:26:28 +09:00
Zack Weinberg
2ed31147bb
Bug 476557. Update view manager cache of page background color in PresShell::Paint, not nsCSSRendering::PaintBackground; permits a small API cleanup. r+sr=roc
...
--HG--
extra : rebase_source : dcf1475dd8b695eb18513e97ca35b08a4affd19f
2009-02-16 14:11:34 +13:00
Michael Ventnor
1afd316abf
Bug 476738. Implement 'inset' box-shadows. r+sr=roc,r=dbaron
2009-02-10 21:45:13 +13:00
Michael Ventnor
1766ffca05
Bug 472410. Don't adjust selection colors if the background is a -moz-appearance that we can't know anything about. r+sr=roc
2009-01-09 13:29:38 +13:00
Michael Ventnor
f770f5b88f
Bug 468018 - Optimize box-shadow rendering even further by doing more intersections; r=vladimir
2008-12-06 19:54:36 +01:00
Michael Ventnor
1976d96d55
Bug 458031. Take dirty rect into account to limit box-shadow computation. r+sr=roc
2008-12-03 10:16:22 +13:00
Masayuki Nakano
275ce7e82a
Bug 461512 nsCSSColorUtils doesn't support alpha color (border color is always solid color if the border-style is groove, ridge, inset, outset) r+sr=roc
2008-10-28 11:05:38 +09:00
Vladimir Vukicevic
755ba15181
b=450178; add generic 8-bit alpha box blur in thebes (patch from Eric Bulter); r=vlad
2008-09-25 12:53:09 -07:00
Zack Weinberg
d5216d9f34
Bug 456792 - Two more API cleanups for nsCSSRendering; patch 2; r+sr=roc
2008-09-25 18:03:15 +02:00
Zack Weinberg
473726ed0c
Bug 456792 - Two more API cleanups for nsCSSRendering; patch 1; r+sr=roc
2008-09-25 17:53:27 +02:00
Zack Weinberg
97bef90839
Bug 456152 - slight API cleanup for nsCSSRendering::PaintBackground; r+sr=roc
2008-09-24 06:07:22 +02:00