Commit Graph

687 Commits

Author SHA1 Message Date
dbaron@fas.harvard.edu
1588047258 Paint image background and border in the correct paint layer, depending on whether the image is block or inline, rather than always as if it were block. b=61217 r=pavlov sr=waterson a=asa 2002-04-09 01:16:48 +00:00
attinasi@netscape.com
14202ad249 Support for proprietary style property to allow composer to force broken image icons. b=58646 r=karnaze sr=kin a=asa 2002-03-26 20:14:05 +00:00
dbaron@fas.harvard.edu
49ccb8e11d Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa 2002-03-23 22:26:36 +00:00
karnaze@netscape.com
d7751e3106 bug 124637 - when figuring available width for HRs subtract out both margins. a=asa, sr=attinasi, r=alexsavulov. 2002-03-20 22:14:27 +00:00
pavlov@netscape.com
3c006f33d5 fixing bug 131231 r=valeski sr=attinasi a=asa 2002-03-16 05:46:26 +00:00
nhotta@netscape.com
4e5e40ec70 For IMAGE SRC/FRAME SRC, set a charset from the document and pass it to NS_NewURI,
bug 127282, r=attinasi, sr=darin, a=asa.
2002-03-12 22:26:11 +00:00
karnaze@netscape.com
7d2d5c3c33 bug 105742 - paint the outline of an image after the image content. a=roc, sr=attinasi, r=alexsavulov. 2002-03-12 15:35:52 +00:00
mkaply@us.ibm.com
3799ed5365 #41924
r=timeless, sr=attinasi, a=asa
Display alt text if the user has blocked all images.
2002-03-09 05:31:35 +00:00
pavlov@netscape.com
6481805cbb fixing 76177. r=cmanske sr=jst a=shaver 2002-03-06 22:45:55 +00:00
darin@netscape.com
fc6d5e4b32 fixes bug 124042 "support internationalized URIs" r=dougt, sr=alecf, a=asa 2002-03-06 07:48:55 +00:00
morse@netscape.com
48a0061646 bug 107579, infrastructure for detecting 3rd-party cookies, r=darin,rpotts, sr=devitz 2002-03-02 01:26:49 +00:00
karnaze@netscape.com
a171c0aed8 bug 124041 - prevent infinite splitting of images due to 0 avail height. sr=attinasi, r=alexsavulov, a=asa 2002-02-25 14:42:12 +00:00
tor@cs.brown.edu
256577a99a Bug 125837 - mIntrinsicSize setup missing pixel->twip conversion.
r=pavlov, sr=blizzard
2002-02-17 15:31:24 +00:00
attinasi@netscape.com
1e0a371c7b Loading and Broken image icons will no longer be drawn if the image size is smaller than the icon size. This fixes a problem where garbage was being left on the screen after the image loaded, because the Linux RenderingContext does not corectly clip image drawing. b=109418, r=pavlov, sr=blizzard, a=blizard on behalf of drivers 2002-01-18 22:17:12 +00:00
attinasi@netscape.com
0343685e14 Fixed problem with images splitting when they should not be. b=111255 r=karnaze sr=waterson 2002-01-11 19:32:55 +00:00
brade@netscape.com
fd50caa2d4 remove unused static kIOServiceCID saving 16 bytes (bug 117927; rs=glazou) 2002-01-09 15:39:24 +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
mjudge@netscape.com
fe566cee71 bs=7868 r=saari Adding in new api to bake on trunk before going to branch. this adds nsISelectionDisplay to nsISelectionController. SetDisplayFlags are how we now set if you want images selected or not 2001-12-18 01:29:49 +00:00
dbaron@fas.harvard.edu
f9cd36f072 Fix implementation of {min,max}-{width,height} on images. b=18477 r=pavlov sr=attinasi 2001-12-11 03:21:13 +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
attinasi@netscape.com
78a4c5f0fe Blocked images will no longer show the broken image icon, nor will they show ALT text. Repairs alleged 'regression' from previous ALT text fixes. b=109090 r=alexsavulov sr=kin 2001-11-30 20:47:06 +00:00
attinasi@netscape.com
6de9231df3 Moving loading and broken image icons to /res for embedding. b=110384 r=adamlock,sfraser sr=sfraser,waterson 2001-11-20 22:21:14 +00:00
rods@netscape.com
84be4ea0e1 Added image animation mode constants to imgIContainer.IDL,
Changed the animation mode enum to PRUint16 (removed the enum) in nsIPresContext so we could use the constants
from imgIContainer. (change from dcone's review comments)
Bug 2586 r=dcone sr=attinasi
2001-11-14 13:59:08 +00:00
karnaze@netscape.com
a3ac20fe84 bug 103925 (2nd patch) - flag pixel rounding errors in display reflow debugging. sr=attinasi, r=bernd 2001-11-14 13:40:03 +00:00
attinasi@netscape.com
455bcce568 New image for loading and broken images icons. b=108799 r=kmcclusk sr=waterson a=blizzard/drivers 2001-11-08 21:43:54 +00:00
attinasi@netscape.com
0ffa5f3114 Due to popular demand, broken images are now getting an icon and a sized-box if they have width and height and are in QuirksMode documents (see bug for pref to override). b=102281 r=kmcclusk sr=waterson 2001-11-07 05:02:42 +00:00
attinasi@netscape.com
977bfb19d7 Elimiate calls to nsFrame::Invalidate when the dirtyRect is empty. Also, removed some invalid code from nsFrame::Invalidate and added DEBUG check to catch later offenders. b=103266 r=rbs sr=hyatt 2001-11-06 01:44:20 +00:00
karnaze@netscape.com
0c19e014cb bug 105166 - split images (except for image contro frames), round pixels down for printing. sr=attinasi,kin r=alexsavulov 2001-11-01 15:31:13 +00:00
bryner@netscape.com
21e30b05d6 Debug-only change to print out the img src when the frame tree is dumped. r=pavlov, sr=waterson. 2001-10-31 04:43:48 +00:00
rbs@maths.uq.edu.au
08974c4b75 bug 102088 - Cleanup transitory font APIs that were used as a bridge in bug 99010, r=waterson, sr=attinasi 2001-10-30 22:58:00 +00:00
karnaze@netscape.com
63f46f0ed2 bug 103925 - general reflow debugging capability. sr=attinasi, r=alexsavulov 2001-10-29 01:43:59 +00:00
pavlov@netscape.com
4bc4222fc1 fix for bug 105257 r=dbaron sr=mscott 2001-10-21 00:12:53 +00:00
pavlov@netscape.com
341e15819b removing lowsrc support. bug 92453. r=jag sr=attinasi 2001-10-14 01:17:08 +00:00
pavlov@netscape.com
a17439712e fix for bug 103477 r=jag sr=hyatt (not bug 103536 as previously stated) 2001-10-07 18:02:13 +00:00
pavlov@netscape.com
835fe3b278 adding null check to fix orangeness. 2001-10-06 08:19:44 +00:00
pavlov@netscape.com
c8cb2320fb fix for bug 92248 r=bryner sr=jst 2001-10-06 05:08:16 +00:00
vidur@netscape.com
20bef5521a Fixes for printing bugs 84017 and 89151. The fix for bug 84017 removes the need for a resize reflow to get form frame values to print. The restoration of these values into the new frame model is done as part of the initial reflow. The fix for bug 89151 gets rid of the extra frame model built and forces printed images to come out of the decoded image cache. r=darinf, heikki, sr=rpotts 2001-09-29 17:50:15 +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
karnaze@netscape.com
5b7e018561 bug 68998 - added extra param to Paint, PaintChild, PaintChildren used by tables in standard mode. sr=waterson, r=alexsavulov. 2001-09-19 12:35:19 +00:00
attinasi@netscape.com
91d014b03b Fix for image wrapping problems in table cells. b=97619 r=bernd sr=waterson 2001-09-08 19:26:34 +00:00
attinasi@netscape.com
aa930f8c83 Inline images no longer break text runs. b=32191 r=bernd,dbaron sr=waterson a=asa(obod) 2001-08-29 22:59:09 +00:00
hyatt@netscape.com
7a898f35d2 Fix for 95475. r=jag, sr=ben, a=dbaron 2001-08-25 02:01:08 +00:00
brendan@mozilla.org
f18ad4f1c4 Bit checkin for bug 68045, r/sr=waterson&shaver, second attempt. It all works
for me on optimized and debug gcc2.96, rh7.1.

- Better failure codes from nsXULPrototypeScript::Deserialize.

- Call nsXULDocument::AbortFastLoads after nsXULPrototypeScript::Serialize
  failure, instead of just nulling the FastLoad service's output stream.

- Expose nsXULDocument::AbortFastLoads via nsIXULPrototypeCache, for use from
  nsChromeProtocolHandler.cpp.  AbortFastLoads flushes the XUL cache now, for
  good measure.

- The needless "Current" adjective in nsIFastLoadService attribute and method
  names is no more.

- Add a do_GetFastLoadService() helper, to use CID instead of contractid, and
  to let the compiler consolidate the static inline CID.

- Add "nglayout.debug.checksum_xul_fastload_file" pref so people can do without
  the checksum verification step when reading a FastLoad file.

- Verify the FastLoad file checksum, by default.  Also, cache it in the FastLoad
  service so we don't recompute it when re-opening the FastLoad file as mailnews
  and other top-levels start up.  Fill the checksum cache in EndFastLoad, when
  the last pseudo-concurrent top-level finishes loading.

  My hope to compute the checksum while writing the FastLoad file ran afoul of
  misordered writes.  The old code to checksum the in-memory nsFastLoadHeader
  also was broken on little endian platforms.  Now all checksumming is done via
  a separate read pass over the complete file, save for the header's checksum
  field, which is summed as if it contained zero.

- Track and check FastLoad file dependencies.  This required groveling with a
  bunch of Necko interfaces in nsChromeProtocolHandler::NewChannel -- read it
  and weep.  Dependency checking, as well as checksum access and computation,
  use better-factored nsIFastLoad{File,Read,Write}Control interfaces.

- nsBufferedStream::Seek wasn't flushing the buffer when seeking backward
  within the buffer, but it must, because mCursor bounds the amount to write
  if the buffer contains the end of file.

- Add an unbufferedStream readonly attribute to nsIStreamBufferAccess, so we
  don't have to screw around with the bufferying layer when checksumming. Also
  implement nsIStreamBufferAccess in nsBufferedOutputStream.

- nsISeekableOutputStream was bogus, based on a bad state I had put the
  nsBufferedOutputStream code in on its way from being completely broken when
  you seek backwards outside of the buffer.  Removing this interface required
  using nsIFastLoadFileIO in nsFastLoadFileWriter, and it also required careful
  ordering of Close calls (the Reader must close after the Writer or Updater,
  so that the Reader's underlying, unbuffered input stream can be read by
  nsFastLoadFileWriter::Close to compute the checksum.

- Miscellaneous tab/indentation, comment typo, bracing, if( => if ( style,
  nsnull vs. 0, useless variable elimination, tortured control flow,
  AutoString instead of String, and gratuitous ; after nsISupportsUtils.h
  macro call cleanups.
2001-08-21 20:51:34 +00:00
blizzard@redhat.com
a0b45dd7b6 Back out brendan's checkin to try and get linux starting up again. 2001-08-17 19:45:11 +00:00
brendan@mozilla.org
de5f506a8c - Better failure codes from nsXULPrototypeScript::Deserialize.
- Call nsXULDocument::AbortFastLoads after nsXULPrototypeScript::Serialize
  failure, instead of just nulling the FastLoad service's output stream.

- Expose nsXULDocument::AbortFastLoads via nsIXULPrototypeCache, for use from
  nsChromeProtocolHandler.cpp.  AbortFastLoads flushes the XUL cache now, for
  good measure.

- The needless "Current" adjective in nsIFastLoadService attribute and method
  names is no more.

- Add a do_GetFastLoadService() helper, to use CID instead of contractid, and
  to let the compiler consolidate the static inline CID.

- Add "nglayout.debug.checksum_xul_fastload_file" pref so people can do without
  the checksum verification step when reading a FastLoad file.

- Verify the FastLoad file checksum, by default.  Also, cache it in the FastLoad
  service so we don't recompute it when re-opening the FastLoad file as mailnews
  and other top-levels start up.  Fill the checksum cache in EndFastLoad, when
  the last pseudo-concurrent top-level finishes loading.

  My hope to compute the checksum while writing the FastLoad file ran afoul of
  misordered writes.  The old code to checksum the in-memory nsFastLoadHeader
  also was broken on little endian platforms.  Now all checksumming is done via
  a separate read pass over the complete file, save for the header's checksum
  field, which is summed as if it contained zero.

- Track and check FastLoad file dependencies.  This required groveling with a
  bunch of Necko interfaces in nsChromeProtocolHandler::NewChannel -- read it
  and weep.  Dependency checking, as well as checksum access and computation,
  use better-factored nsIFastLoad{File,Read,Write}Control interfaces.

- nsBufferedStream::Seek wasn't flushing the buffer when seeking backward
  within the buffer, but it must, because mCursor bounds the amount to write
  if the buffer contains the end of file.

- Add an unbufferedStream readonly attribute to nsIStreamBufferAccess, so we
  don't have to screw around with the bufferying layer when checksumming. Also
  implement nsIStreamBufferAccess in nsBufferedOutputStream.

- nsISeekableOutputStream was bogus, based on a bad state I had put the
  nsBufferedOutputStream code in on its way from being completely broken when
  you seek backwards outside of the buffer.  Removing this interface required
  using nsIFastLoadFileIO in nsFastLoadFileWriter, and it also required careful
  ordering of Close calls (the Writer or Updater must close after the Reader,
  so that the Reader's underlying, unbuffered input stream can be read by
  nsFastLoadFileWriter::Close to compute the checksum.

- Miscellaneous tab/indentation, comment typo, bracing, if( => if ( style,
  nsnull vs. 0, useless variable elimination, tortured control flow,
  AutoString instead of String, and gratuitous ; after nsISupportsUtils.h
  macro call cleanups.
2001-08-17 09:52:55 +00:00
bryner@netscape.com
0b20fc36bb Bug 66835 - fix method hiding warnings by renaming some methods on nsIContent. r=jag, sr=jst. 2001-08-17 08:14:14 +00:00
jgaunt@netscape.com
04dd96ee29 fix for bug 94768
r=smfr,leaf
sr=hyatt
2001-08-17 03:13:07 +00:00
pavlov@netscape.com
3a5d625d26 fixing bug 78690. removing old imagelib. r=jst sr=waterson 2001-08-09 20:22:39 +00:00
pavlov@netscape.com
bfe291504d adding a GetImageRequest method to allow access to the image stuff. r=valeski sr=waterson 2001-08-03 21:11:03 +00:00
jaggernaut@netscape.com
c2bcad0b73 Bug 86734: Remove NS_WITH_SERVICE. r=dbaron, rs=scc, a=asa 2001-07-25 07:54:28 +00:00