Commit Graph

692 Commits

Author SHA1 Message Date
L. David Baron
ff44729e09 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
676d639ccf 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
f0d3ec5408 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
0d7e1284bd 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
f46463af6b 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
cc9b0ccf05 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
9f3a8d953f 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
c12fcc7c51 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 2010-08-23 21:30:08 +12:00
Robert O'Callahan
c03744476d Bug 581222. Extend gfxAlphaBlur to support "spread radii". r=vlad 2010-08-23 21:30:07 +12:00
Robert O'Callahan
ea17bb85bd Bug 581222. Back out patch that disabled box-shadows for native-themed content elements. 2010-08-23 21:30:07 +12:00
Mark Banner
65b0742531 Backed out changeset f600448ae7db / bug 471643 due to reftest failures 2010-08-19 09:27:01 +01:00
Zack Weinberg
f48f539ca6 Bug 471643: Make vertical percentages in border-radius relative to box height. r=dbaron 2010-08-19 09:45:32 +02:00
Daniel Holbert
095ae5bd94 (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
de12df7b3f 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
d02cd0b86c Bug 506826 - Hook up -moz-element painting. r=roc 2010-08-13 15:34:01 +02:00
Robert O'Callahan
f235f5c301 Bug 564991. Part 14: Scroll using the layer system. r=mats,sr=dbaron 2010-07-16 09:08:02 +12:00
Robert O'Callahan
ffbfe8b480 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
532a427d5e b=444870 include overflow in the dirty rect passed to DrawWidgetBackground() r=roc 2010-07-15 10:25:41 +12:00
Karl Tomlinson
b843770db4 backing out dacb2bc379ad due to assertions in 419737-1 and 435223-1 reftests 2010-07-02 17:45:17 +12:00
Karl Tomlinson
08008e8ce6 b=444870 include overflow in the dirty rect passed to DrawWidgetBackground() r=roc 2010-07-02 16:08:06 +12:00
L. David Baron
3b98bd9e56 Rename -moz-background-size to background-size. (Bug 549809) r=roc 2010-06-08 18:44:33 -07:00
L. David Baron
1c86b250b8 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
908235783b Add -moz-background-clip: content. (Bug 549809) r=roc 2010-06-08 18:44:32 -07:00
Daniel Holbert
7d7e8c9a89 Bug 561861: Remove unused variable 'ourColor' from nsCSSRendering::PaintOutline. r=dbaron 2010-04-28 23:13:11 -07:00
timeless
d8effcff7f 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
21cb9c6c41 Bug 334571 strip trailing whitespace. r=zwol 2010-04-27 18:15:01 +02:00
David Baron
2ade658662 Bug 502301 - fix C++0x narrowing conversion inside {} compilation errors [r=benjamin] 2010-04-20 10:41:21 +02:00
Michael Ventnor
21516fafe0 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 2010-04-18 13:13:10 +10:00
Masayuki Nakano
58fb9c9575 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
5d547bc63e 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
4c83580927 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
8a8f78a7b9 Use the appropriate color based on visitedness for the 'background-color' property. (Bug 147777) r=zweinberg 2010-04-02 18:58:26 -07:00
L. David Baron
21c8a7d37e Make PaintBackgroundWithSC and related methods operate on nsStyleContext* rather than const nsStyleBackground*. (Bug 147777) r=zweinberg 2010-04-02 18:58:26 -07:00
Robert O'Callahan
a81de51fc9 Bug 551660. Switch layout code from using nsPropertyTable to FramePropertyTable. r=mats,sr=dbaron 2010-03-29 14:46:55 +13:00
Michael Ventnor
01b04cb8e2 Bug 519079 - Set a maximum on CSS shadow blur radius so that stupid values don't hang the browser r=roc 2010-03-15 14:16:17 +10:00
Serge Gautherie
2dc64cb7bc 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
3560539cf0 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
1ff6e85114 Bug 538909. Correctly calculate index of top-left tile. r=dbaron 2010-01-14 15:30:05 +13:00
Robert O'Callahan
2a4aa61624 Bug 526394. Part 23: Make nsRect::IntersectRect preserve height and width if possible even when the intersection of two rectangles is empty. r=mats 2010-01-12 10:45:16 +13:00
Robert O'Callahan
ddd5726122 Bug 532732. When rendering a background-attachment:fixed background to the screen, limit the background painting area to the viewport, since this is the only area where it will actually be visible and in many cases this means we don't need to think about tiling it. r=dbaron 2010-01-07 13:55:09 +13:00
Michael Ventnor
46827ae692 Bug 537471 - Detect empty shadow rects earlier. r=roc 2010-01-06 19:02:11 +01:00
Boris Zbarsky
49d5048a77 Bug 500882 part 5. Switch layout module to using the new GetPrimaryFrame API. r=roc 2009-12-24 16:20:06 -05:00
Robert O'Callahan
fff39da5f4 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
Mark Finkle
748547b286 Bug 507817: BorderImage should not call ExtractCurrentFrame each time it draws [r=dbaron r=joedrew] 2009-11-13 23:23:00 -05:00
Robert O'Callahan
b4aa87b933 Bug 513395: Implement revised CSS gradient notation (2/2): rendering 2009-11-02 11:36:43 -08:00
Zack Weinberg
f788a00b30 Bug 513395: Implement revised CSS gradient notation (1/2): parser and data structure changes 2009-11-02 11:36:43 -08:00
Boris Zbarsky
0cd3d3dc33 Bug 501847 part 1. Some preparatory cleanup of GetIBSpecialSiblingForAnonymousBlock. r=roc 2009-09-18 14:00:20 -04:00
Jeff Walden
645b258f09 Bug 509329 - Various issues with invalidation of backgrounds propagated from body to the canvas, and with sized backgrounds. r=dbaron 2009-10-22 16:46:08 -07:00
Boris Zbarsky
75ebdc52ee Bug 525295. Rename nsStyleContext::GetPseudoType to GetPseudo. r=dbaron 2009-10-29 17:17:56 -04:00
Robert O'Callahan
b793c73ded Bug 449324. Apply opaque-border optimization to all opaque border types, not just 'solid'. r=dbaron 2009-10-27 14:43:56 +13:00