Commit Graph

1177 Commits

Author SHA1 Message Date
warren%netscape.com
83e2275608 Swapped args to NS_OpenURI. 1999-06-25 00:08:05 +00:00
warren%netscape.com
79d37bdc6c More necko changes. 1999-06-24 23:23:23 +00:00
blizzard%redhat.com
bb107e9417 fixes for font sizes - thanks tor 1999-06-24 20:10:30 +00:00
zuperdee%penguinpowered.com
d4c9c63cea Fix for nsRenderingContextMotif.cpp. This should enable viewer to work now! 1999-06-24 08:32:31 +00:00
blizzard%redhat.com
533e108b45 Fix origins on alpha pixmaps - thanks tor. Images on toolbars and other places shag, baby! 1999-06-23 11:12:13 +00:00
warren%netscape.com
1f76168d21 Renamed nsIURL to nsIURI in preperation for necko. More NECKO ifdefs too. 1999-06-23 03:29:44 +00:00
pnunn%netscape.com
2ae131ed77 Prepwork for alphachannel. pnunn. 1999-06-22 20:13:05 +00:00
peterl%netscape.com
8d8b5e3350 Added '-moz-fixed' generic font name.
This is an extension to indicate the user's fixed font choice
1999-06-22 19:14:51 +00:00
Jerry.Kirk%Nexwarecorp.com
c0797f7733 - Beginning to add support for printing for Neutrino 1999-06-21 21:32:30 +00:00
Michael.Kedl%Nexwarecorp.com
ef534e959e fixed double buffering for Don's tiling background 1999-06-21 20:10:58 +00:00
Jerry.Kirk%Nexwarecorp.com
d3ed880418 - Fixed Neutrino timers to handler a timer with 0 delay 1999-06-21 20:06:25 +00:00
blizzard%redhat.com
d069fe11e4 fix backwards colors 1999-06-19 20:25:06 +00:00
valeski%netscape.com
e23b3c673c NECKO ifdef (ifdef'd _off_ by default) this checkin should not impact anything. checkin approved. If someone runs into a problem, call me at 303.546.0061. 1999-06-18 17:34:08 +00:00
erik%netscape.com
5accb2e576 Fix for bug 7841. Some fonts return bad glyph IDs. Now checking for these.
It turns out that GulimChe is one of those bad fonts.
1999-06-16 03:57:55 +00:00
pierre%netscape.com
849596767d #8264 "[PP] Mac GFX draws lines one pixel too long" 1999-06-16 01:18:15 +00:00
blizzard%redhat.com
491cc36d07 use PR_LOG for debugging 1999-06-16 00:37:57 +00:00
blizzard%redhat.com
47a4c1cc91 use PR_LOG for debugging messages 1999-06-16 00:25:10 +00:00
blizzard%redhat.com
7754d8da97 more gfx work 1999-06-15 04:19:11 +00:00
blizzard%redhat.com
b66da08ef0 merge erik's changes 1999-06-14 23:20:51 +00:00
erik%netscape.com
a0c4a683fe Added support for CP 1251 and KOI8-R fonts (Cyrillic). 1999-06-14 22:55:39 +00:00
bruce%cybersight.com
1e47eb8696 Interface classes really do need to define |GetIID()|. 5 of these files are just being switched over to the macro. The others were all lacking |GetIID()| implementations. 1999-06-14 06:16:08 +00:00
blizzard%redhat.com
66bc260f9c a slightly more sane nsDrawingSurface 1999-06-14 00:47:37 +00:00
blizzard%redhat.com
988e27bab4 merge in Erik's changes to gtk fonts 1999-06-13 20:34:56 +00:00
erik%netscape.com
3391461f38 Started using Frank's 64K bit array code and the Unicode converters.
The euro now displays on Linux.
1999-06-13 18:33:37 +00:00
Dale.Stansberry%Nexwarecorp.com
10e699ffeb - Put in buffer "zeroing" code 1999-06-11 19:56:14 +00:00
Jerry.Kirk%Nexwarecorp.com
58b5675cf2 - Fixes for test12.html 1999-06-10 21:07:11 +00:00
dcone%netscape.com
e20ee57836 Fixed a solaris bug, took out a URL call until I can find the real cause
of the problem
1999-06-10 13:53:14 +00:00
ramiro%netscape.com
c4c2d1d42d Add #ifdef use of graphics state pool. 1999-06-10 13:11:22 +00:00
ramiro%netscape.com
b4d5277467 Factor out the graphics state struct into its own header and implementation
files.
1999-06-10 12:45:14 +00:00
Jerry.Kirk%Nexwarecorp.com
3c09a31379 - Set an uninitialized variable that was breaking test08 + other rips 1999-06-09 19:24:25 +00:00
ramiro%netscape.com
d330f1ae61 Motif Ressurection. Thanks to Daniel Roberts <zuperdee@yahoo.com> for
doing the painful job of identifying everything that is missing and
stubbing it out.
1999-06-09 11:35:26 +00:00
ramiro%netscape.com
1b4d1715e2 Port to KCC. 1999-06-09 10:09:47 +00:00
ftang%netscape.com
3cae9693d3 change the fake lang string to null to improve performance 1999-06-08 21:13:06 +00:00
ftang%netscape.com
3a0135d848 do bit compar before do string compare to imporve performance 1999-06-08 21:12:20 +00:00
blizzard%redhat.com
2e58ba7bae port performance enhancements from gtk fonts 1999-06-08 02:40:24 +00:00
kmcclusk%netscape.com
3fd7b914d3 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.
1999-06-07 22:48:19 +00:00
kmcclusk%netscape.com
1ea246a1a1 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.
1999-06-04 23:09:27 +00:00
erik%netscape.com
fd4ed60abc 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.
1999-06-04 00:08:56 +00:00
ramiro%netscape.com
6784919f78 Comment out debug code that is making it impossible to have timeouts
greater than 10 seconds.
1999-06-03 21:31:38 +00:00
kmcclusk%netscape.com
8be1cd6761 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.
1999-06-03 20:19:32 +00:00
pinkerton%netscape.com
c35d3c5907 More changes for Carbon, submitted by Eoin Norris at Apple (e.norris@apple.com). 1999-06-03 18:55:40 +00:00
dcone%netscape.com
3a09e85b99 Put braces in to get rid of many compiler warnings. 1999-06-03 13:48:20 +00:00
Jerry.Kirk%Nexwarecorp.com
f82d11285f - These files update the GFX portion of the Photon UI
- They still include lots of debug and not implemented functions.
1999-06-03 01:15:23 +00:00
beard%netscape.com
062c4626ab added more pre-flight checks, added more coordinate range checks to rectangle based primitives. 1999-06-03 00:57:34 +00:00
beard%netscape.com
fa957816e2 fixed potential memory problems. 1999-06-03 00:56:32 +00:00
blizzard%redhat.com
b99fba6098 consistent debugging output 1999-06-02 02:55:23 +00:00
blizzard%redhat.com
9e860bf8cb more work in initialization code 1999-06-02 01:48:21 +00:00
blizzard%redhat.com
88a9c86123 fix implementation of the creation of DrawingSurfaces 1999-06-02 01:18:05 +00:00
blizzard%redhat.com
e7e05cc9fa fix call signature for XCopyArea() 1999-06-02 01:16:56 +00:00
blizzard%redhat.com
c7e50c22d9 more drawing work 1999-05-31 23:34:13 +00:00
blizzard%redhat.com
88abd6195f set up the offscreen surface correctly 1999-05-31 22:48:01 +00:00
blizzard%redhat.com
85a6b16337 more work to complete the rendering context code 1999-05-31 21:52:16 +00:00
blizzard%redhat.com
ad9060c9ac the beginnings of popstate()/pushstate() 1999-05-31 21:01:51 +00:00
blizzard%redhat.com
912e80f4a7 fix bugs in region code 1999-05-31 03:01:39 +00:00
beard%netscape.com
28c1747a2f 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. 1999-05-31 02:33:31 +00:00
beard%netscape.com
649fc7265e nsGraphicState->mTMatrix is now an object rather than a pointer. added #include "nsFontMetricsMac.h", and "nsGraphicState.h". 1999-05-31 01:31:08 +00:00
beard%netscape.com
224d268517 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. 1999-05-31 01:31:06 +00:00
beard%netscape.com
c80ce47928 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. 1999-05-31 01:31:02 +00:00
beard%netscape.com
512fff1d90 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. 1999-05-31 01:30:59 +00:00
beard%netscape.com
f4dd292891 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. 1999-05-31 01:30:58 +00:00
beard%netscape.com
37f837b575 forward declare nsGraphicState rather than #include "nsGraphicState.h". #include "nsFontMetricsMac.h" also unnecessary. 1999-05-31 01:30:56 +00:00
blizzard%redhat.com
8bb6118056 Apply build patches from Tim Rowley <tor@cs.brown.edu> to get working
with native solaris compiler
1999-05-30 16:58:31 +00:00
beard%netscape.com
557679458c 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. 1999-05-30 00:48:01 +00:00
blizzard%redhat.com
e4fa0248e5 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 1999-05-28 15:11:21 +00:00
dcone%netscape.com
2b55666b45 Fixed RealizeFont() to use a screen DC when printing for a few windows calls 1999-05-28 14:13:53 +00:00
bruce%cybersight.com
267ab43f21 Fix a shadowed variable. 1999-05-28 06:13:00 +00:00
pierre%netscape.com
4ac2c0d6f8 #7143 "Subscript element not properly supported" 1999-05-28 00:32:12 +00:00
dcone%netscape.com
1927ab2861 Fixed bug 4904 -- converted to DIB, then printed.. 1999-05-27 14:48:15 +00:00
blizzard%redhat.com
8516c1bfbe more xlib work 1999-05-26 21:52:58 +00:00
dp%netscape.com
300a021a82 Adding gfxMOZ_TOOLKIT and gfxps to get NS_NewTimer() 1999-05-26 07:30:34 +00:00
dp%netscape.com
94344009c8 Landing xpcom20/21 branch. 1999-05-26 01:38:36 +00:00
warren%netscape.com
d99c6c3ced Added timer stuff from base. 1999-05-24 09:17:05 +00:00
blizzard%redhat.com
e295c42677 remove these files 1999-05-22 06:16:21 +00:00
pierre%netscape.com
0e110cfb2e #6246 "Styled text is offset leftwards, only on Mac OS", a=cyeh, r=sfraser 1999-05-21 00:58:27 +00:00
blizzard%redhat.com
7d5390bed0 bpp stands for bytes per pixel, not bits per pixel in certian circumstances. make sure that the image data buffer is allocated properly. 1999-05-19 03:04:03 +00:00
blizzard%redhat.com
d74cbdd300 catch up with changes to GTK font code 1999-05-18 15:39:41 +00:00
blizzard%redhat.com
fe65cf1f6b squelch warnings 1999-05-18 15:28:36 +00:00
pierre%netscape.com
df0af65e2d #5949 "Frequent resizing of window causes apprunner to stop drawing" 1999-05-18 13:14:46 +00:00
blizzard%redhat.com
abe959a382 add xlibrgb to the build 1999-05-17 03:42:30 +00:00
blizzard%redhat.com
31e8868caa add gdkrgb port to straight xlib 1999-05-17 03:32:22 +00:00
erik%netscape.com
a6758a1ac1 Fixed a compiler warning. Added a few new font charset names, and a weight
name.
1999-05-16 20:32:51 +00:00
sspitzer%netscape.com
8fbd48d85f cvs ignorage 1999-05-13 03:53:42 +00:00
ftang%netscape.com
b81e19d906 add unicode 1999-05-12 23:19:12 +00:00
pnunn%netscape.com
7a79349193 Pass reload policy through to netlib. This may help the
various bugs related to animations (#2148,#1865,#5030,#3958,#4350).
-pnunn
1999-05-12 22:30:52 +00:00
ftang%netscape.com
6339be6419 check in performance improved unicode rendering for mac. Use TEC convert to script code before calling ATSUI to improve peroformance 1999-05-12 22:30:10 +00:00
briano%netscape.com
93de5f390e Fix for Motif builds. 1999-05-12 22:23:04 +00:00
pierre%netscape.com
afda55620b renamed GraphicState "nsGraphicState", put it in a sepate file, added memory pools for GraphicStates and native regions. 1999-05-12 07:27:31 +00:00
pierre%netscape.com
991eac0d10 First Checked In. 1999-05-12 06:57:52 +00:00
pinkerton%netscape.com
63c8215e0f using accessor functions for opaque data structs where necessary for carbon. 1999-05-11 21:47:03 +00:00
pinkerton%netscape.com
40796f98f3 FetchFontInfo not yet in Carbon. This will be fixed, but is hacked around for now. 1999-05-11 21:43:54 +00:00
pinkerton%netscape.com
84e6a2d3eb ask for the grafPort, not the window, since they are different in Carbon. 1999-05-11 21:41:03 +00:00
pinkerton%netscape.com
66b7154dab moved the ifdefs around the printing code to be more correct. 1999-05-11 21:40:25 +00:00
pinkerton%netscape.com
39b883dab7 old printing api's obsoleted in carbon. 1999-05-11 21:40:01 +00:00
pinkerton%netscape.com
23c0314a49 comment out printing under Carbon. api's have been obsoleted and need to be redone. 1999-05-11 21:36:39 +00:00
pinkerton%netscape.com
cf909d0bf5 comment out printing code under carbon. The api's have all been obsoleted and we need to rework them. Also font/encoding stuff is messed up in WWDC builds so some hacks are in here to work around. That code should all go away when Carbon is fixed. 1999-05-11 21:36:19 +00:00
pinkerton%netscape.com
6dfab15c08 using accessors for Regions when building under Carbon. 1999-05-10 23:41:03 +00:00
pinkerton%netscape.com
8c9d556798 under Carbon, use the accessors. 1999-05-10 23:11:50 +00:00
mcafee%netscape.com
492b4cef0f Renaming nsQuickSort to NS_QuickSort so it doesn't look like a class name. r=brendan@netscape.com 1999-05-10 06:47:04 +00:00
blizzard%redhat.com
c7e68db0fb port of gtk's font code to xlib 1999-05-09 21:56:46 +00:00
blizzard%redhat.com
1db0b313e5 make sure to return NS_OK from Init() 1999-05-09 19:52:11 +00:00
blizzard%redhat.com
8a4735e3dc more debugging output, start of some renderingcontext functions 1999-05-08 22:54:03 +00:00
blizzard%redhat.com
9f9c778dbd enough debugging output to make a dozen squid omlets 1999-05-08 21:42:39 +00:00
beard%netscape.com
ff604e7392 Fixes bug #1177, where text gets drawn over itself in long documents. 1999-05-07 19:29:59 +00:00
pierre%netscape.com
4dbe1bf66f Performance: use GetSpaceWidth() / removed mOriginalClipRegion and replaced it with mMainRegion. Cleanup: merged SetClipRectInPixels() into SetClipRect() and removed one of the GraphicState constructors. 1999-05-07 04:10:38 +00:00
pierre%netscape.com
1630737a9e Removed mOriginalClipRegion: it was in fact equivalent to mMainRegion. 1999-05-07 04:10:04 +00:00
pierre%netscape.com
90d53738fc Performance improvement: added GetSpaceWidth() 1999-05-07 04:02:59 +00:00
dcone%netscape.com
1aaa43ccfe fixed a bug with using mString to use the unicode value 1999-05-06 06:57:24 +00:00
ftang%netscape.com
d53e2d0843 First Checked In. 1999-05-05 23:55:50 +00:00
erik%netscape.com
97d2aa77b7 Fix for one of the memory leaks found by The Mighty Bruce. 1999-05-05 23:18:38 +00:00
kipp%netscape.com
0afac13714 Fix small bug in DrawRect and added a comment to help 1999-05-03 20:48:35 +00:00
erik%netscape.com
616680954a Fix for bug 5778. I forgot to release the prefs service. Approved chofmann. 1999-04-30 18:28:47 +00:00
erik%netscape.com
022f96ee8f Fix for bugs 4800 and 4810. I forgot to free a font handle, which led to
system resource exhaustion and machine shutdown (on Win95).
1999-04-30 18:23:20 +00:00
pierre%netscape.com
f60f4a56ed Landing framesets changes. Added mOriginalClipRegion. Approved: choffmann 1999-04-30 13:52:45 +00:00
pinkerton%netscape.com
7638e305fb added GetIID() method. 1999-04-30 08:59:11 +00:00
briano%netscape.com
5e31c45c1d Fix for the BSD/OS build (virtual memory exhausted). 1999-04-30 03:01:13 +00:00
briano%netscape.com
dd73c8f62a Moved ns_observer_proc() to as close to the beginning of the file as possible to get rid of the static prototype that seemed to be confusing as and ld on FreeBSD 2.2. Okay'd by kipp and troy. 1999-04-30 01:58:44 +00:00
bruce%cybersight.com
25345b7651 Remove -lnetlib from link lines. Not needed. 1999-04-28 05:30:09 +00:00
pierre%netscape.com
a812bf19e0 end of the debate? changing the defaults back to 96 dpi and do display small fonts 1999-04-28 05:06:41 +00:00
erik%netscape.com
ace9cac55e Fix related to bug 5599. We now look at the "browser.screen_resolution"
pref for the dpi value. If it is not set, we use the default of 96.
If it is set to zero (0), we use the X server's dpi value. Otherwise,
we use whatever dpi value was set in the pref.
1999-04-28 04:35:34 +00:00
pierre%netscape.com
71681e7913 fixed a syntax error in DisplayVerySmallFonts(): the first time only we were returning a wrong value 1999-04-28 03:32:52 +00:00
pierre%netscape.com
59a39b08ae added the "browser.display_very_small_fonts" pref changed the default dpi to 72 1999-04-28 02:45:49 +00:00
peterl%netscape.com
5ed654ef40 allow letter O to be treated as zero in color hex values, egads 1999-04-28 01:41:23 +00:00
pierre%netscape.com
710dd4f29d #5000: added "browser.screen_resolution" pref 1999-04-28 00:20:58 +00:00
erik%netscape.com
32b1be8ffc Fixes for bugs 4800 and 4810. Was crashing on Japanese Windows 95 because
GetTextExtentPoint32W and ExtTextOutW are not properly implemented on that
version of Windows. This is a workaround.
1999-04-27 21:44:20 +00:00
pierre%netscape.com
9644229c74 #5000 "GFX changes required to assume 96 dpi default scaling": enabled the 96 dpi checked in earlier 1999-04-27 08:20:49 +00:00
pierre%netscape.com
78e941dc79 #5000 "GFX changes required to assume 96 dpi default scaling" 1999-04-27 06:45:09 +00:00
pierre%netscape.com
8563904a23 optimized SetClipRectInPixels for the 'kReplace' case. added some error checking after allocating new regions. 1999-04-27 05:33:16 +00:00
dcone%netscape.com
7329aa7675 Fixed bug that causes the Mac to crash in background. The pixelType of the Pixmap was set wrong. 1999-04-26 17:25:46 +00:00
dcone%netscape.com
9543883d6e fixed bug so refcount is inited 1999-04-26 17:25:00 +00:00
blizzard%redhat.com
ac88c0c3d6 little more xlib work 1999-04-25 02:58:15 +00:00
ftang%netscape.com
4d7b91a1a0 First Checked In. 1999-04-23 20:53:49 +00:00
pavlov%pavlov.net
dcf8147e08 revert my last changes. i'm moving speed ups into a branch 1999-04-22 02:07:03 +00:00
pierre%netscape.com
5748361124 replaced mOriginalSurface with mSavePort on delete, restore the grafPort origin fixed a regression leak of the offscreen buffer 1999-04-22 01:27:12 +00:00
pavlov%pavlov.net
2733bb0b80 beginning work on making mozilla fast... 1999-04-22 00:07:40 +00:00
rickg%netscape.com
69afbec822 sync with new nsString2 API 1999-04-21 22:55:35 +00:00
erik%netscape.com
3ed143ee6b Bug 5304 -- we now assume 96dpi (we ignore the X server).
Also fixed problem with fonts when no font containing the requested glyph
could be found. (Thanks to Kipp for discovering this.)
1999-04-21 18:53:35 +00:00
dcone%netscape.com
45a30465ea Implemented the DrawPolyline method. 1999-04-20 13:36:11 +00:00
pavlov%pavlov.net
27b574ed57 add some code that was accedentally removed last time 1999-04-18 20:07:31 +00:00
pavlov%pavlov.net
bd72acdf48 code cleanups 1999-04-18 19:31:16 +00:00
erik%netscape.com
1a70e1f12d Fixed bugs 2522 and 4875. Switched from FONTSIGNATURE to cmap to figure
out which glyphs are available. Removed FONT_SWITCHING ifdef.
1999-04-16 20:01:12 +00:00
kipp%netscape.com
b556d2e592 Fixed to handle destroy callbacks better to unwind connections to image lib 1999-04-15 20:34:44 +00:00
toshok%hungry.com
077f6b4dd4 add ::'s 1999-04-15 08:56:14 +00:00
toshok%hungry.com
1a9104f53c steal some drawing guts from ../motif 1999-04-15 08:54:51 +00:00
toshok%hungry.com
627cff7157 region code for xlib gfx. 1999-04-15 08:04:37 +00:00
alecf%netscape.com
6e4cee51d0 use new nsQuickSort rather than old XP_QSORT 1999-04-15 02:48:00 +00:00
kipp%netscape.com
47684f4950 Fix a memory corrupting issue with dangling references to nsImageRequests's 1999-04-13 21:55:11 +00:00
kipp%netscape.com
d8a3eab6db Disable icon loading on unix and mac until netlib can cope 1999-04-13 21:54:43 +00:00
erik%netscape.com
5447721bb7 Win95's font enumerator returns less info (smaller structs). Added code
to get the info via another method. Also enlarged the Unicode range array
to prevent reading off the end. Added printf's for debugging the Unicode
ranges.
1999-04-13 20:04:51 +00:00
sspitzer%netscape.com
8b08c06722 some more cvs ignore work 1999-04-10 21:22:31 +00:00
pavlov%pavlov.net
4fd02bd7ee use shared images where available for blending 1999-04-10 20:57:50 +00:00
pavlov%pavlov.net
9967d9730a oops, ifdef'd out a tad too much code. 1999-04-10 20:10:55 +00:00
pavlov%pavlov.net
95b8cdff6f code cleanups. begin work on using xshm 1999-04-10 19:36:40 +00:00
blizzard%redhat.com
249efebd9d xlib based gfx skeleton code 1999-04-10 15:23:47 +00:00
briano%netscape.com
95083e0ab1 It turns out that other platforms besides NTO don't have PATH_MAX, so this change should fix them all. 1999-04-10 01:05:53 +00:00
pinkerton%netscape.com
fc0abb60de Move all apple libs into MacOS target of interfaces.mcp. Only "apple" lib in each project should now be InterfacesStubs (with some minor exceptions). permission to checkin granted by cyeh. 1999-04-10 00:15:14 +00:00
michaelp%netscape.com
3aaca7efd2 flush the font cache after setting a new zoom value. 1999-04-08 22:41:17 +00:00
michaelp%netscape.com
5d2820f0f1 cleaned. 1999-04-08 22:40:20 +00:00
ftang%netscape.com
7bfbfc5401 fix bug 4694. Change the Hangul block to the Unicode 2.0 Hangul rnage from 1.1 rnage 1999-04-08 21:38:07 +00:00
erik%netscape.com
0170e093e7 Fix for bug 4627. Tested by Bruce Mitchener. Approved by Chris Yeh. 1999-04-08 17:12:12 +00:00
ramiro%netscape.com
9bc8eac86b Comment out a annoying printf. Approved by cyeh. 1999-04-07 07:04:35 +00:00
pavlov%pavlov.net
b860a7b544 fix for double freeing 1999-04-07 06:36:38 +00:00
pavlov%pavlov.net
ed3de3ccfe rot13'd all the files to make them appear much prettier, and in the process fixed some bugs i believe. 1999-04-07 04:02:44 +00:00
pierre%netscape.com
c23b749174 added nsATSUIUtils.cpp moved the ATSUI code out of nsRenderingContextMac 1999-04-07 03:18:53 +00:00
pierre%netscape.com
76bdb5ffcb made the destructor public 1999-04-07 03:17:03 +00:00
pierre%netscape.com
bd50da1008 First Checked In. 1999-04-07 03:16:22 +00:00
erik%netscape.com
b2c378b19c Bug 4573. Was not dealing with the case where only a scalable font was
available (no bitmap fonts). Fixed.
1999-04-06 19:45:38 +00:00
ramiro%netscape.com
67a963d871 Add SetClip{Rect,Region} tracing debug code. 1999-04-06 13:22:21 +00:00
ramiro%netscape.com
f161d44deb Add #ifdef copy flag debug printfs. 1999-04-06 12:48:46 +00:00
michaelp%netscape.com
9a556422fd enabled creation of blender objects. 1999-04-05 22:49:18 +00:00
erik%netscape.com
c51b1e3ce3 Got rid of some tabs. 1999-04-05 22:31:58 +00:00
syd%netscape.com
91ce66fe70 Get PATH_MAX right for Neutrino 2.0 (QNX - photon UI). 1999-04-05 21:45:08 +00:00
erik%netscape.com
1134e864ad Added font scaling. It will try to scale the font if it's available, and
the desired size is more than 20% larger or smaller than an available
bitmap font.
1999-04-05 21:30:07 +00:00
ftang%netscape.com
c006f4fb85 Fix breakage. Add #include <Resources.h> 1999-04-05 18:38:27 +00:00
erik%netscape.com
dc492e0ddd Add some space beneath East Asian characters for the underline. Also,
adjust their baseline to sit above the underline.
1999-04-05 18:30:12 +00:00
ftang%netscape.com
d5b29173d7 Fix non ASCII font name problem by using a hashtable . It also improve the performance for GetMacFontNum 25.4 time faster. Reviewed and approved by pierre 1999-04-05 18:06:55 +00:00
ftang%netscape.com
4a84b0cc13 Add TextCommon and TextEncodingConverter lib 1999-04-05 18:05:12 +00:00
erik%netscape.com
edd1495b91 Adding Japanese support to the Unix/GTK font code. 1999-04-02 23:06:19 +00:00
erik%netscape.com
a6965d6ff2 AIX's compiler is strict. Fixed my code. 1999-04-02 20:34:14 +00:00
erik%netscape.com
d7565d3153 Need to check for dummy font family, and ignore. Corrected. 1999-04-02 19:40:11 +00:00
erik%netscape.com
11b9048ac7 Bold Japanese text was not working, since there are no bold Japanese fonts
on Linux. So I re-arranged the font tree to allow normal Japanese fonts to
be used instead.
1999-04-02 19:10:38 +00:00
erik%netscape.com
d131bf9840 Free the loaded fonts array. Start the loaded fonts array at size 1. 1999-04-02 15:52:29 +00:00
erik%netscape.com
17e03e568b Throwing the switch. Flipped the FONT_SWITCHING ifdef. New font lookup
code is now live.
1999-04-02 15:36:01 +00:00
erik%netscape.com
e29fadb812 Fixed uninitialized memory problem, and added DrawString routine for new
FONT_SWITCHING code (for Unicode). To be enabled (ifdeffed) tomorrow AM.
1999-04-02 07:20:13 +00:00
ramiro%netscape.com
687f2c7ec0 Tweak code to allow blending to work on unix. It will currently work only
on certain depths and images.  Demo10 works on 16 bit depths.
1999-04-01 22:29:44 +00:00
ramiro%netscape.com
e409f37b03 Implement GetDepth(). Before it was hardcoded to 24 in the superclass. 1999-04-01 21:58:46 +00:00
erik%netscape.com
cd88d373ac Initial check-in of new X/GTK font code. Improved font-weight "bolder"
and "lighter", more accurate font-size (max ascent and max descent),
better speed.
However, ifdeffed for now to try on various platforms.
1999-04-01 00:04:36 +00:00
jdunn%netscape.com
424be13edf Include prenv to get PR_GetEnv prototype 1999-03-31 22:55:29 +00:00
erik%netscape.com
ed4845ef75 Fixed a compiler warning. 1999-03-31 22:52:51 +00:00
syd%netscape.com
f9bd5b0725 Fix for AIX build bustage. 1999-03-31 20:18:54 +00:00
syd%netscape.com
9a4f6a4898 Fix for AIX compatibility 1999-03-31 20:18:11 +00:00
syd%netscape.com
c8989121cb Replace getenv with NSPR function, remove stdlib.h include. Partially done
for AIX build.
1999-03-31 20:17:01 +00:00
mcafee%netscape.com
8f86ec98c0 Some code got stomped, putting it back. Specifically we need a prototype for UnixPrData() for Solaris/CC. 1999-03-31 09:14:07 +00:00
ramiro%netscape.com
402796bcd0 Take gtk specific blender code out. Its not needed. All blender code is
fully XP now.
Also, turn off manufacturing of blender objects until unix speicifc issues
can be resolved.  Otherwise, stuff like demo4 breaks.
1999-03-31 06:21:07 +00:00
michaelp%netscape.com
871efe1e70 now vends nsBlender rather than nsBlenderWin. 1999-03-31 06:07:12 +00:00
michaelp%netscape.com
4840a74963 made blender fully XP. 1999-03-31 04:54:06 +00:00
michaelp%netscape.com
c9e134f2cd kill nsBlenderWin 1999-03-31 04:53:25 +00:00
michaelp%netscape.com
7aaf980b75 killed 1999-03-31 04:53:11 +00:00
ramiro%netscape.com
532f507e84 delete vs. delete[] vs. free fixes.
Thanks to "Bruce Mitchener, Jr." <bruce@cybersight.com for finding all these
and making patches.
1999-03-30 05:26:59 +00:00
pavlov%pavlov.net
63c416f00b more work on Lock() and Unlock() 1999-03-30 01:52:05 +00:00
michaelp%netscape.com
4c6288cc8a fixed problem of gImageManager becoming a dnagling reference to a dead object
by adding an additional reference to the global image manager when it is
created. current solution is that suggested by adam locke, but this really needs
to be a service so that we don't leak memory. also made destructor virtual
to correct warning pointed out by bruce@cybersight.com.
1999-03-30 01:43:32 +00:00
syd%netscape.com
90145235d4 Fix typo. 1999-03-30 01:42:08 +00:00
michaelp%netscape.com
13bac238a8 added virtual destructors where necessary as pointed out by bruce@cybersight.com. 1999-03-30 01:41:13 +00:00
syd%netscape.com
cbd76a9123 Fixed misspell of virtual. 1999-03-30 01:33:40 +00:00
syd%netscape.com
0c079f1687 Initialize mIsTopToBottom to PR_TRUE 1999-03-30 01:20:16 +00:00
syd%netscape.com
a587103068 Initialize mIsTopToBottom to PR_FALSE. 1999-03-30 01:04:48 +00:00
syd%netscape.com
7f001fd3f1 Implement GetIsRowOrderTopToBottom(), declare mIsTopToBottom member variable. 1999-03-30 01:04:13 +00:00
syd%netscape.com
ce6300523c Postscript colorimage code now queries platform to determine if image
rows are organized top to bottom, or bottom to top, and processes image
bytes depending on this order.
1999-03-30 01:02:46 +00:00
syd%netscape.com
778190028f Implement GetIsRowOrderTopToBottom(); declare mIsTopToBottom member variable 1999-03-30 01:00:32 +00:00
syd%netscape.com
7ae2664dc2 Implement GetBytesPix. Declare mIsTopToBottom member variable. 1999-03-30 00:59:16 +00:00
syd%netscape.com
61b887f85d Initialize mIsTopToBottom to PR_TRUE; remove GetBytesPix 1999-03-30 00:58:04 +00:00
syd%netscape.com
dbc46c529c Get whether rows are organized top to bottom, or bottom to top in images. 1999-03-30 00:56:35 +00:00
ramiro%netscape.com
f1c8f56b98 Comment was messed up causing compiler to spew dumb messages. 1999-03-29 15:57:16 +00:00
pavlov%pavlov.net
b1e881dadb build nsBlender.cpp under unix. this fixes builds. 1999-03-28 00:13:30 +00:00
pavlov%pavlov.net
2aebb787e7 add nsBlender to unix 1999-03-27 23:19:22 +00:00
pavlov%pavlov.net
19bd3ecb44 make file end with a newline 1999-03-27 23:14:38 +00:00
michaelp%netscape.com
15e558e715 added for guys from Nexware. 1999-03-27 00:25:26 +00:00
ramiro%netscape.com
131a03a4c1 Opps, forgot a debug abort(). 1999-03-26 10:40:44 +00:00
ramiro%netscape.com
baf417e684 Fix 2 things.
1) dont do the RGB -> BGR conversion.  Its not needed thanks
to a IMGLIB workaround i just checked in.

2) create a pixmap from the image data only ONCE for unique image bits and
re paint that, instead of doing this every single time we render.
1999-03-26 09:53:13 +00:00
ramiro%netscape.com
ff9b98f856 noisy fonts only on debug build. 1999-03-26 09:46:28 +00:00
ramiro%netscape.com
71089e6f15 print depth on debug printf 1999-03-26 09:43:57 +00:00
erik%netscape.com
7d226e6cb9 Unicode support for fonts on Windows. Reviewed by Michael Plitkins. 1999-03-25 23:41:36 +00:00
kipp%netscape.com
298c50d12a Put my changes back in that don cone accidently removed 1999-03-24 15:57:24 +00:00
michaelp%netscape.com
c5ee58a5d6 fixed rect containment test. 1999-03-23 22:37:50 +00:00
michaelp%netscape.com
8e2a688d1c fixed docs for ContainsRect(). 1999-03-23 22:37:20 +00:00
dcone%netscape.com
2390d3883a Took out nsOldDrawingSurfaceGTK.h, this was lost between checkins 1999-03-22 23:16:42 +00:00
dcone%netscape.com
8af2ed8eee Include files added for default fonts 1999-03-22 21:48:16 +00:00
dcone%netscape.com
eba66ca1ff Added UNIX support for postscript printing, fixed many bugs.
Added nsIDeviceContextSpecPS interface so we can do PS on any platoform, get
information from the print dialog.
1999-03-22 21:45:00 +00:00
kipp%netscape.com
fe12184d66 DIsabled a free of stack memory 1999-03-22 15:42:07 +00:00
pavlov%pavlov.net
517966a1f9 fix crash 1999-03-22 03:48:51 +00:00
pavlov%pavlov.net
6833c52f90 fix up some more ugly memory leaks. 1999-03-22 02:36:41 +00:00
pavlov%pavlov.net
3f592003a4 fix up some mem leaks caused by Push/PopState() 1999-03-22 01:50:34 +00:00
pavlov%pavlov.net
eb63856c74 fix a memory leak. 1999-03-21 21:50:59 +00:00
pavlov%pavlov.net
1d2ade1398 stomp a few more bugs from my previous checkin. 1999-03-21 21:31:58 +00:00
pavlov%pavlov.net
c0a1d36335 fix refcounting. 1999-03-21 21:01:21 +00:00
pavlov%pavlov.net
bf5cd32705 nsRenderingContextGTK now uses nsDrawingSurfaceGTK 1999-03-21 20:42:01 +00:00
pavlov%pavlov.net
3087f7a8a0 code cleanup and internal gtk refcounting changes. 1999-03-21 06:25:34 +00:00
ramiro%netscape.com
441fadfc9f Wrapped in PR_BEGIN_EXTERN_C and PR_END_EXTERN_C to fix c++/c linkage problem. 1999-03-18 23:29:50 +00:00
mcafee%netscape.com
f594b18d78 Added prototype for UnixPrDialog(). r=syd@netscape.com 1999-03-18 22:33:04 +00:00
kipp%netscape.com
b7efbda709 Eliminate some GDK warning messages by only freeing valid pixmaps 1999-03-18 21:19:30 +00:00
kipp%netscape.com
933781165a Revised the font matching algorithm to work somewhat better; allow for font-scaling in debug builds with an environment variable 1999-03-18 21:19:10 +00:00
kipp%netscape.com
db724a0ad5 Fudge the dpi into something that makes for more rational scaling to twips 1999-03-18 21:18:40 +00:00
leaf%mozilla.org
20c21e775b backing out change that clearly has destabilized the tree. 1999-03-18 04:43:38 +00:00
pavlov%pavlov.net
e81a3c4b24 fix for hpux and aix build bustage. approved by leaf. 1999-03-18 03:16:44 +00:00
leaf%mozilla.org
4ad9f70d5d Landing nspr library name change, and plevent function call change. 1999-03-17 21:32:03 +00:00
pavlov%pavlov.net
842e21ca2f fix mem leak for real this time. 1999-03-14 23:15:35 +00:00
pavlov%pavlov.net
18ef74edf5 minor cleanups. 1999-03-14 23:03:34 +00:00
pavlov%pavlov.net
295aa188aa fix bug #3564 1999-03-14 18:06:18 +00:00
mcafee%netscape.com
c386912e01 getenv() needs a prototype for Solaris. 1999-03-14 09:00:38 +00:00
syd%netscape.com
f216949dfc gtk_toggle_button_get_active() is an API newer than Gtk+ 1.1.13. Replaced it
with legacy code that just looks at active field of widget directly (I could
use the GtkObject interfaces, but those are kludgy and the reason that the
newer API was introduced). Eventually (hopefully soon) we'll migrate to Gtk+
1.2 (which will fix some rendering bugs as well...)
1999-03-13 05:25:31 +00:00
syd%netscape.com
a48ae7a6fe Declare mPrData 1999-03-13 03:39:38 +00:00