Commit Graph

692 Commits

Author SHA1 Message Date
dcone@netscape.com
8cf29337f5 Small error in background rendering that index is 0 instead if i. r=rods. b=23704 2000-01-12 15:36:24 +00:00
sspitzer@netscape.com
1f1ca61aac fix warnings. 1999-12-28 19:37:29 +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
pierre@netscape.com
83ae2d3149 16381 "Need to be able to specify -moz-border-radius for each corner". Made changes in the following files in order to store the radius as a nsCSSRect and support 4 new -moz-border-radius properties (topLeft, topRight, bottomRight, bottomLeft): nsCSSDeclaration.cpp nsCSSParser.cpp nsCSSPropList.h nsCSSStyleRule.cpp nsICSSDeclaration.h nsIStyleContext.h nsStyleContext.cpp nsCSSRendering.cpp The (small) changes in nsCSSRendering.cpp are temporary. It's just to reflect the changes made elsewhere in the style context. The code that actually draws the RoundRect with a different radius for each corner will be implemented later today. 1999-12-22 11:30:22 +00:00
kmcclusk@netscape.com
642a715a41 Added NS_RELEASE's to fix leaking of nsIImage's. bug=19114; r=karnaze@netscape.com 1999-12-03 00:06:32 +00:00
dcone@netscape.com
40a4506a06 Took out the clip for backgrounds.. not needed r=rods. bug=16685 1999-12-01 14:45:59 +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
dcone@netscape.com
28f34c3c9b Thickness of side is now checked. Fixed bug 14944. r=rods 1999-11-18 16:03:45 +00:00
dcone@netscape.com
b64da6d1c3 Move the dotted and dashed rouned corner code to fall into solid until it is supported by code
r=rods.  Bug fixed 13944
1999-11-18 15:09:02 +00:00
dcone@netscape.com
65e9f9eb73 DrawDashedSides now used the correct height and width for the right and bottom 1999-11-15 15:33:25 +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
sfraser@netscape.com
a9f23f9978 Fixes for 18029 and 16723 -- fix image drawing on Mac to use GWorlds, and put in api to lock and unlock pixels. r=pnunn, a=chofmann. 1999-11-04 22:26:57 +00:00
dcone@netscape.com
2b16f7783b Fixed a divide by zero crasher, and cleaned up borders. r=buster 1999-11-03 05:46:01 +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
troy@netscape.com
b8ef6465be Changed SetView/GetView to take an additional argument which is the
pres context
1999-10-26 04:44:41 +00:00
dcone@netscape.com
85eca94317 Fixed warning. 1999-10-22 13:29:06 +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
dcone@netscape.com
a9fe13ac07 Fixed some warnings 1999-10-07 20:40:00 +00:00
dcone@netscape.com
9dc7231ec5 Turned on the background tiling optimization.. Reviewed By rods 1999-10-07 14:57:32 +00:00
dcone@netscape.com
77b0be43e2 added background fix.. commented out for now until other platforms are tested 1999-10-01 14:35:20 +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
troy@netscape.com
4bd26cea33 Fix for bug #12751. Optimized PaintBorder() so if the dirty rect is completely
inside of the border rect, then we don't paint anything. This speed up
incremental painting
1999-08-29 03:25:56 +00:00
dcone@netscape.com
f8d689183b removed a debug printf 1999-08-27 20:58:37 +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
325fa6e9b8 removed some unused variables to get rid of some warnings 1999-08-25 13:39:41 +00:00
troy@netscape.com
17a060ab89 Changed PaintBackground() so it doesn't always render the background color when
there's a background image that doesn't tile the entire bounds
1999-08-25 05:05:04 +00:00
ramiro@netscape.com
0a967756ad #ifdef out annoying printf. 1999-08-25 04:01:57 +00:00
troy@netscape.com
8f1fde9cec Added case selectors for NS_STYLE_BORDER_STYLE_HIDDEN. Treated just like
NS_STYLE_BORDER_STYLE_NONE
1999-08-24 21:47:55 +00:00
dcone@netscape.com
dea62f3345 Fixed some warnings, and some roundoff for the curves 1999-08-24 14:51:16 +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
harishd@netscape.com
7da01e88b0 Changing the order in which borders are painted for compatibility.
Used to be TOP,LEFT,BOTTOM,RIGHT, and now it's
BOTTOM,LEFT,TOP,RIGHT.  Fix for bug#11022
1999-08-10 18:13:50 +00:00
troy@netscape.com
99ae5771db Added failure check for call to nsStyleData::GetBorder() 1999-07-28 04:48:34 +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
troy@netscape.com
590a66f112 Fix for bug #10563 where we were triggering a post condition assertion. Changed
ComputeBackgroundAnchorPoint() to correctly calculate tile offset that is a
multiple of the tile
1999-07-27 14:13:09 +00:00
dcone@netscape.com
c3a812ef59 Fixed background rendering 1999-07-27 06:41:34 +00:00
dcone@netscape.com
b5ae889ded fixed background tile clipping bug. 1999-07-19 14:37:36 +00:00
dcone@netscape.com
10fe138110 Fixed printing to make sure all URL's are loaded before print.
Fixed the background tile render'er to save and restore clip.
1999-07-15 14:23:40 +00:00
troy@netscape.com
3542b1543b Fixed some compiler warnings 1999-07-02 22:39:32 +00:00
dcone@netscape.com
ea1271902d background Image speed up
Commented out the box around the printout until Troy returns
1999-06-11 14:43:14 +00:00
troy@netscape.com
8b0bff229c Fix for bug #5680. Re-arranged some assertion checking code 1999-04-29 18:29:56 +00:00
troy@netscape.com
843614e49d Fixed a comment 1999-04-25 04:14:06 +00:00
troy@netscape.com
c657dd4690 Added support for fixed background attachment 1999-04-25 02:43:50 +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
120996d5d1 added the rounded rectangle code for style 1999-04-19 05:27:55 +00:00
kipp@netscape.com
b433979d7b Updated to use new image loading apis 1999-04-13 21:52:19 +00:00
peterl@netscape.com
d25e534811 added transparent border support 1999-03-28 04:30:28 +00:00
kipp@netscape.com
1d3f183597 Remove dead global-variable nonsense 1999-03-05 19:23:52 +00:00
kipp@netscape.com
89263c1950 Pass in default image size when loading image 1999-02-26 17:12:05 +00:00
kipp@netscape.com
74b2988510 COMized nsIPresShell and nsIPresContext 1999-02-12 17:45:58 +00:00
troy@netscape.com
5f09e64e3b Work-in-progress for replaced elements that can't be rendered 1999-02-04 17:03:46 +00:00