946 Commits

Author SHA1 Message Date
dcone%netscape.com
2acb7fb2aa Fixed a solaris bug, took out a URL call until I can find the real cause
of the problem


git-svn-id: svn://10.0.0.236/trunk@34596 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 13:53:14 +00:00
ramiro%netscape.com
827f1e3b3f Add #ifdef use of graphics state pool.
git-svn-id: svn://10.0.0.236/trunk@34593 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 13:11:22 +00:00
ramiro%netscape.com
76cabb03d3 Factor out the graphics state struct into its own header and implementation
files.


git-svn-id: svn://10.0.0.236/trunk@34591 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 12:45:14 +00:00
Jerry.Kirk%Nexwarecorp.com
77b4440471 - Set an uninitialized variable that was breaking test08 + other rips
git-svn-id: svn://10.0.0.236/trunk@34446 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 19:24:25 +00:00
ramiro%netscape.com
ad4c790544 Motif Ressurection. Thanks to Daniel Roberts <zuperdee@yahoo.com> for
doing the painful job of identifying everything that is missing and
stubbing it out.


git-svn-id: svn://10.0.0.236/trunk@34412 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 11:35:26 +00:00
ramiro%netscape.com
1337494985 Port to KCC.
git-svn-id: svn://10.0.0.236/trunk@34405 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 10:09:47 +00:00
ftang%netscape.com
c4362cd5f8 change the fake lang string to null to improve performance
git-svn-id: svn://10.0.0.236/trunk@34261 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:13:06 +00:00
ftang%netscape.com
b1c3f1b226 do bit compar before do string compare to imporve performance
git-svn-id: svn://10.0.0.236/trunk@34260 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:12:20 +00:00
blizzard%redhat.com
52eeaca3ad port performance enhancements from gtk fonts
git-svn-id: svn://10.0.0.236/trunk@34165 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 02:40:24 +00:00
kmcclusk%netscape.com
dc924d2084 Added code to nsFontMetricsGTK to cache the width of a single space.
Modifed nsRenderingContextGTK::GetWidth to detect when a single space
is passed in and pass back the cached value, rather than re-measuring
a space.


git-svn-id: svn://10.0.0.236/trunk@34114 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 22:48:19 +00:00
kmcclusk%netscape.com
e70243131f Added method and member variable to Cache the width of a space in nsFontMetricsWin.cpp.
Added code to nsRenderingContextWin::GetWidth to use the cached width to optimize the
common case of measuring the width of a single character.


git-svn-id: svn://10.0.0.236/trunk@33848 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 23:09:27 +00:00
erik%netscape.com
238dfa9172 Bug 7427. Need to convert enumerated font names from system code page to
Unicode, and then convert Unicode font names back to system code page when
loading font.


git-svn-id: svn://10.0.0.236/trunk@33675 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 00:08:56 +00:00
ramiro%netscape.com
19682f3362 Comment out debug code that is making it impossible to have timeouts
greater than 10 seconds.


git-svn-id: svn://10.0.0.236/trunk@33591 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:31:38 +00:00
kmcclusk%netscape.com
c27c21e21f Fix for bug #1177. Added a new method ConditionRect which is used to fix coordinate
overflow problems under WIN95. Condition rect converts nsRect to a RECT with cooordinates
modified to acceptable ranges for WIN95.


git-svn-id: svn://10.0.0.236/trunk@33567 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 20:19:32 +00:00
pinkerton%netscape.com
4fb78a28ec More changes for Carbon, submitted by Eoin Norris at Apple (e.norris@apple.com).
git-svn-id: svn://10.0.0.236/trunk@33546 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 18:55:40 +00:00
dcone%netscape.com
d669607412 Put braces in to get rid of many compiler warnings.
git-svn-id: svn://10.0.0.236/trunk@33523 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 13:48:20 +00:00
Jerry.Kirk%Nexwarecorp.com
e10d1c5ca2 - These files update the GFX portion of the Photon UI
- They still include lots of debug and not implemented functions.


git-svn-id: svn://10.0.0.236/trunk@33462 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 01:15:23 +00:00
beard%netscape.com
3d2bd36390 added more pre-flight checks, added more coordinate range checks to rectangle based primitives.
git-svn-id: svn://10.0.0.236/trunk@33456 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 00:57:34 +00:00
beard%netscape.com
e95d62462e fixed potential memory problems.
git-svn-id: svn://10.0.0.236/trunk@33455 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 00:56:32 +00:00
blizzard%redhat.com
1a834f1030 consistent debugging output
git-svn-id: svn://10.0.0.236/trunk@33402 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 02:55:23 +00:00
blizzard%redhat.com
eabf44a2c4 more work in initialization code
git-svn-id: svn://10.0.0.236/trunk@33388 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 01:48:21 +00:00
blizzard%redhat.com
8a9b1ba0ae fix implementation of the creation of DrawingSurfaces
git-svn-id: svn://10.0.0.236/trunk@33383 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 01:18:05 +00:00
blizzard%redhat.com
7f65462657 fix call signature for XCopyArea()
git-svn-id: svn://10.0.0.236/trunk@33382 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 01:16:56 +00:00
blizzard%redhat.com
64757d8306 more drawing work
git-svn-id: svn://10.0.0.236/trunk@33320 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 23:34:13 +00:00
blizzard%redhat.com
42be6bb145 set up the offscreen surface correctly
git-svn-id: svn://10.0.0.236/trunk@33318 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 22:48:01 +00:00
blizzard%redhat.com
89a91692cb more work to complete the rendering context code
git-svn-id: svn://10.0.0.236/trunk@33316 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 21:52:16 +00:00
blizzard%redhat.com
d66bc43084 the beginnings of popstate()/pushstate()
git-svn-id: svn://10.0.0.236/trunk@33315 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 21:01:51 +00:00
blizzard%redhat.com
95d84178be fix bugs in region code
git-svn-id: svn://10.0.0.236/trunk@33288 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 03:01:39 +00:00
beard%netscape.com
908c53ae23 workaround for bug #6529, don't read the first buffer until at least 4 bytes are available, otherwise the image decoder library can't tell what kind of image it is. this is a blatant hack.
git-svn-id: svn://10.0.0.236/trunk@33287 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 02:33:31 +00:00
beard%netscape.com
70252d17f7 nsGraphicState->mTMatrix is now an object rather than a pointer. added #include "nsFontMetricsMac.h", and "nsGraphicState.h".
git-svn-id: svn://10.0.0.236/trunk@33282 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 01:31:08 +00:00
beard%netscape.com
6204b883ee added kClippingChanged bit, and kEverythingChanged to GraphicStateChanges enum. Increased mChanges field to from 8-bit to 32-bit mask. added additional "aChanges" argument to SelectDrawingSurface() to indicate what graphics states have to be reset.
git-svn-id: svn://10.0.0.236/trunk@33281 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 01:31:06 +00:00
beard%netscape.com
ce202a44a2 SelectDrawingSurface() now selectively restores color, clipping, and font metrics, according to the bitmask passed in the "aChanges" parameter. PushState() saves the current changes in the pushed nsGraphicState, and PopState() restores it.
git-svn-id: svn://10.0.0.236/trunk@33280 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 01:31:02 +00:00
beard%netscape.com
7541270009 added mChanges, bitmask indicating differences between graphics states, made mTMatrix a member object to reduce allocations, added mNext link field to support recycling. Changed nsGraphicsStatePool to just keep a free list of nsGraphicState objects rather than an array.
git-svn-id: svn://10.0.0.236/trunk@33279 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 01:30:59 +00:00
beard%netscape.com
1698ba99b2 nsGraphicStatePool now just keeps a free list of nsGraphicState objects. nsGraphicState::Clear() sets the matrix to the identify matrix rather than deallocating it. nsGraphicState::Duplicate() no longer calls Clear(), instead it just copies all fields. DuplicateRgn() now takes an optional region to copy into, to avoid redundant allocate/recycle steps.
git-svn-id: svn://10.0.0.236/trunk@33278 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 01:30:58 +00:00
beard%netscape.com
6e1f5688d3 forward declare nsGraphicState rather than #include "nsGraphicState.h". #include "nsFontMetricsMac.h" also unnecessary.
git-svn-id: svn://10.0.0.236/trunk@33277 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-31 01:30:56 +00:00
blizzard%redhat.com
e2b27f1c3d Apply build patches from Tim Rowley <tor@cs.brown.edu> to get working
with native solaris compiler


git-svn-id: svn://10.0.0.236/trunk@33267 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-30 16:58:31 +00:00
beard%netscape.com
6c321c01eb changed region pool to use 2 linked lists of slots instead of an array, for constant time allocation and recycling. no longer allocates a fixed size pool, and regions are truly owned by the caller until recycled.
git-svn-id: svn://10.0.0.236/trunk@33259 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-30 00:48:01 +00:00
blizzard%redhat.com
33764d7917 make sure that globals are defined here for display properties. also, make sure that the gfx module for xlib is linked explicitly with the xlib libraries so that the tests link
git-svn-id: svn://10.0.0.236/trunk@33129 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 15:11:21 +00:00
dcone%netscape.com
d528aba0b3 Fixed RealizeFont() to use a screen DC when printing for a few windows calls
git-svn-id: svn://10.0.0.236/trunk@33128 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 14:13:53 +00:00
bruce%cybersight.com
cde17134e5 Fix a shadowed variable.
git-svn-id: svn://10.0.0.236/trunk@33111 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 06:13:00 +00:00
pierre%netscape.com
c521aaf211 #7143 "Subscript element not properly supported"
git-svn-id: svn://10.0.0.236/trunk@33056 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 00:32:12 +00:00
dcone%netscape.com
10a88b0aec Fixed bug 4904 -- converted to DIB, then printed..
git-svn-id: svn://10.0.0.236/trunk@32937 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 14:48:15 +00:00
blizzard%redhat.com
b1c6f06c80 more xlib work
git-svn-id: svn://10.0.0.236/trunk@32738 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:52:58 +00:00
dp%netscape.com
c148345c5d Adding gfxMOZ_TOOLKIT and gfxps to get NS_NewTimer()
git-svn-id: svn://10.0.0.236/trunk@32667 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 07:30:34 +00:00
dp%netscape.com
befa259a88 Landing xpcom20/21 branch.
git-svn-id: svn://10.0.0.236/trunk@32644 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 01:38:36 +00:00
warren%netscape.com
ca81a76eee Added timer stuff from base.
git-svn-id: svn://10.0.0.236/trunk@32511 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-24 09:17:05 +00:00
blizzard%redhat.com
3e47ad9913 remove these files
git-svn-id: svn://10.0.0.236/trunk@32497 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-22 06:16:21 +00:00
pierre%netscape.com
0fe41ffe46 #6246 "Styled text is offset leftwards, only on Mac OS", a=cyeh, r=sfraser
git-svn-id: svn://10.0.0.236/trunk@32438 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-21 00:58:27 +00:00
blizzard%redhat.com
2b320c95a5 bpp stands for bytes per pixel, not bits per pixel in certian circumstances. make sure that the image data buffer is allocated properly.
git-svn-id: svn://10.0.0.236/trunk@32239 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 03:04:03 +00:00
blizzard%redhat.com
1b6077d184 catch up with changes to GTK font code
git-svn-id: svn://10.0.0.236/trunk@32076 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 15:39:41 +00:00