Commit Graph

48 Commits

Author SHA1 Message Date
caillon@returnzero.com
0d9875f0a1 Correcting our background painting code per the latest CSS specs. By default, backgrounds should be painted to the border
area, and not the padding area as per the CSS 2 Errata, CSS2.1 and CSS3.  Also, implementing the CSS3 'background-clip'
and 'background-origin' properties (currently with -moz- prefixes) to control this behavior.
Bug 162252, r=dbaron sr=roc+moz
2002-10-08 10:24:53 +00:00
dbaron@fas.harvard.edu
1fdfddcd42 Move FindNonTransparentBackground from nsStyleUtil to nsCSSRendering so that nsStyleUtil doesn't need to be in content/shared. b=71257 r=heikki sr=bzbarsky 2002-08-11 17:56:15 +00:00
dbaron@fas.harvard.edu
6fbddeb234 Fix drawing of rounded borders and backgrounds on large elements by using PRInt32 instead of PRInt16. b=131233 r=dcone sr=attinasi a=asa 2002-03-16 15:25:16 +00:00
karnaze@netscape.com
9a13af360b bug 41262 - new table border collapsing code. sr=attinasi, r=alexsavulov. 2002-02-19 15:48:28 +00:00
dcone@netscape.com
9938bc4eee b=96870 r=rods sr=attinasi Fixed printing so backgrounds can be turned on and off. 2002-02-15 14:48:12 +00:00
dbaron@fas.harvard.edu
edc54e6926 Replace the BodyFixupRule with code in nsCSSRendering to fix all the problems with dynamic style changes and backgrounds on the root element and the BODY element. Change the way the HTMLDocumentColorRule (for the table color quirk) is initialized since it used to depend on the BodyFixupRule. b=116161 (also fixes other bugs) r=attinasi sr=hyatt 2002-01-07 23:46:07 +00:00
hyatt@netscape.com
0852b452f0 Enhancements to CSS to enable multi-colored borders and painting of image subregions. 112988 and 112990. r=dbaron,hewitt for 112990, r=ben,hewitt for 112988 2001-12-05 08:35:05 +00:00
hyatt@netscape.com
f89422ce49 Fix for 104336, deCOMtaminate rulenode, rulewalker, frames, r=dbaron, sr=waterson 2001-10-24 00:01:09 +00:00
gerv@gerv.net
58d409fba9 Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089. 2001-09-28 20:14:13 +00:00
hyatt@netscape.com
dfdfa14592 Fix for 78695 (rule matching improvements). r/sr=attinasi, jst, waterson 2001-05-31 22:19:43 +00:00
dcone@netscape.com
8b784d6e98 bug 79477 r=kmmclusk sr=attinasi 2001-05-10 14:19:58 +00:00
pierre@netscape.com
5f165d8dc9 Reinstate my changes that were backed out 10 days ago. #43457 split nsStyleSpacing into 4 smaller structures: nsStyleBorder, nsStylePadding, nsStyleMargin, nsStyleOutline. r=attinasi,sr=buster. 2001-02-07 09:57:26 +00:00
mcafee@netscape.com
99b5642905 Backing out pierre's change from 1/20 for performance reasons (66263). r=attinasi, a=granrose, phil 2001-01-25 02:58:12 +00:00
pierre@netscape.com
37a4efae45 #43457 split nsStyleSpacing into 4 smaller structures: nsStyleBorder, nsStylePadding, nsStyleMargin, nsStyleOutline. Review=attinasi. Pending Approval: buster. 2001-01-20 22:46:54 +00:00
dcone@netscape.com
b18aa23764 Fixed the curve drawing to use floating point.. corrects rounding problems 2000-05-11 03:59:43 +00:00
rods@netscape.com
f89a4a7fe0 Added aIsOutline to arg to RenderSize so it can do the right thing when
drawing outlines. Also got rounded outlines to work (not dashed)
Added #if for PaintOuline to control whether it paints on the inside or outside
of the frame.
b=18579 r=dcone
2000-03-18 14:41:00 +00:00
dcone@netscape.com
a81af9b202 fixed backgrounds. r=rods 2000-02-01 16:03:13 +00:00
dcone@netscape.com
c939f24de0 Added support for selected rounded corners...can now round individual corners. r=rods 1999-12-23 20:48:07 +00:00
tbogard@aol.net
617bb737a6 Changed nsIPresContext& to nsIPresContext*. Changed nsEventStatus& to nsEventStatus*. Now more compatible with XPIDL. a=vidur r=scc 1999-11-24 06:03:41 +00:00
dmose@mozilla.org
796280940b updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:40:37 +00:00
dcone@netscape.com
8aef5d863c Added a clip for the borders and fixed how they are rendered. r=karnaze
bugs:10311,8737,14566
1999-10-26 14:34:17 +00:00
dcone@netscape.com
315f2954a9 Fixed the rounded border rendering code to obey solid, and none style types.
Also bumped all the rounded rects onto pixel boundaries before rendering.
1999-10-20 14:46:27 +00:00
rods@netscape.com
cbe06e0b20 Added extra parameters so PaintBorder can be used to draw borders with a size that
is passed in instead of get the size from style.
1999-09-03 14:12:09 +00:00
dcone@netscape.com
53ebb15b83 Added a rounding parameter so rounded rects can be used as cirles if the radius is large enough 1999-08-27 14:37:47 +00:00
rods@netscape.com
b1827fd5ee Added a new method PaintOutline, and added a new parameter to PaintBorder to tell whether to get the style and color information from the border info or the outline info 1999-08-19 14:22:47 +00:00
kmcclusk@netscape.com
003825881c bug #7032 Changed nsIWidget::Resize(...), nsIWidget::Move(...) to
use PRInt32 instead of PRUInt32. Modified Mac, and Linux to match.
bug #2010 Applied David Barrons patch for MakeSide ins CSSRendering.
nsIWidget - removed GetAbsoluteBounds - Not needed. Can use WidgetToScreen instead.
1999-07-27 23:26:36 +00:00
dcone@netscape.com
aae3f76f72 Updated with the background painting and anti-aliasing 1999-04-21 14:23:49 +00:00
dcone@netscape.com
a5f2c93935 Fixed declaration to fix Mac build 1999-04-19 13:37:16 +00:00
dcone@netscape.com
120996d5d1 added the rounded rectangle code for style 1999-04-19 05:27:55 +00:00
kipp@netscape.com
1d3f183597 Remove dead global-variable nonsense 1999-03-05 19:23:52 +00:00
harishd@netscape.com
c806c84b6f Changing the variable aElementColor to aBorderColor in Painborder(),
PaintBorderEdge(), DrawSide(), and MakeBevelColor().
The computed colors for all the  border style should be based on
the actual 'border-side-color' not the element's color after all.
1999-01-28 00:31:47 +00:00
harishd@netscape.com
3138f7324c Modified the PaintBorder(), MakeBevelColor(), DrawSide(),
PaintBorderEdge() methods.
1999-01-22 22:22:26 +00:00
troy@netscape.com
217ab2bc29 Fix for bug #1998. Now we render the background image over the padding area and not over the border area 1999-01-15 18:25:58 +00:00
buster@netscape.com
ba067d4721 CSS2 table collapsing border rendering 1998-12-30 06:47:26 +00:00
buster@netscape.com
02541201eb added PainBorderSegments 1998-12-17 22:58:51 +00:00
harishd@netscape.com
83c2a48741 Included a new DrawDashedSide() function prototype and modified DrawSide() function. 1998-12-07 19:04:39 +00:00
karnaze@netscape.com
8d4f2949ad html 4 <BUTTON> basic functionality 1998-10-17 00:35:32 +00:00
karnaze@netscape.com
ffb876f867 fieldset, legend support. fixed bug #987 1998-10-08 04:38:41 +00:00
kipp@netscape.com
a5e9310a8f Support a dx,dy value to adjust origin of image rendering; add in partial support for background-position property 1998-09-26 17:16:56 +00:00
michaelp@netscape.com
51373670a9 made color handling code in css part of the gfx color utilities. 1998-07-27 21:07:47 +00:00
troy@netscape.com
3d32e26332 Changed PaintBorder() to use the (x,y) that's passed in 1998-07-22 05:02:07 +00:00
troy@netscape.com
2f1442d674 Changed nsCSSRendering::PaintBorder() so the entire rect is used
and not just the width and height
1998-07-22 02:46:00 +00:00
troy
aed6c2620f Fixed a problem with thick left border edges being the wrong thickness 1998-06-18 05:43:32 +00:00
troy
8508702674 Reduced the number of polygon calls 1998-06-17 22:14:20 +00:00
kostello
6c85e9d30c Moved Get3DColors from HRPart to CSSRendering.
Modified Border Drawing Code to use Get3DColors for backwards compatibility purposes.
1998-05-26 20:52:59 +00:00
peterl
f71a1a1308 sync to nsStyleSpacing api changes 1998-05-12 22:58:14 +00:00
peterl
5c8b47d17b WIP moving margin, border & padding out of nsStyleMolecule 1998-04-22 06:39:35 +00:00
kipp
4683c6f4c0 moved to pub 1998-04-13 20:24:54 +00:00