Граф коммитов

417 Коммитов

Автор SHA1 Сообщение Дата
attinasi%netscape.com face58bdef 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 efa0f3d70c 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 5b04635746 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 436e1ac49e 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 cd8d7f4f0d 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 27ad2e0eb2 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 94f3ab9a20 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 128e7ac8d2 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 de5db63a95 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 32cf016db5 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 e38dff73f8 bug 103925 - general reflow debugging capability. sr=attinasi, r=alexsavulov 2001-10-29 01:43:59 +00:00
pavlov%netscape.com b64aaa2689 fix for bug 105257 r=dbaron sr=mscott 2001-10-21 00:12:53 +00:00
pavlov%netscape.com 3f7d7f9384 removing lowsrc support. bug 92453. r=jag sr=attinasi 2001-10-14 01:17:08 +00:00
pavlov%netscape.com 7d17e005e1 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 3ec9e0aaec adding null check to fix orangeness. 2001-10-06 08:19:44 +00:00
pavlov%netscape.com eae061c13e fix for bug 92248 r=bryner sr=jst 2001-10-06 05:08:16 +00:00
vidur%netscape.com 4966d85f91 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 4e12e44b2f 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 e908dd0313 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 6507d5d128 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 0cbc8f3b4f 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 62d3de24fd Fix for 95475. r=jag, sr=ben, a=dbaron 2001-08-25 02:01:08 +00:00
brendan%mozilla.org 6d895baf1d 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 b0f8b91746 Back out brendan's checkin to try and get linux starting up again. 2001-08-17 19:45:11 +00:00
brendan%mozilla.org b00819c93c - 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 422834eff1 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 9f2f88aa48 fix for bug 94768
r=smfr,leaf
sr=hyatt
2001-08-17 03:13:07 +00:00
pavlov%netscape.com 1e20984ef0 fixing bug 78690. removing old imagelib. r=jst sr=waterson 2001-08-09 20:22:39 +00:00
pavlov%netscape.com 6c8b46593e 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 e91f8a147e Bug 86734: Remove NS_WITH_SERVICE. r=dbaron, rs=scc, a=asa 2001-07-25 07:54:28 +00:00
pavlov%netscape.com 8aaaf796a4 part of bug 78690. r=bryner sr=jst 2001-07-17 01:14:40 +00:00
dbaron%fas.harvard.edu aa4fec2b67 Header include dependency cleanup. b=64023 r=jag rs=brendan 2001-07-16 02:40:48 +00:00
jst%netscape.com 53fe4bfab6 Fixing bug 66022, recurse to death if image attributes are touched from an images onload handler when the image is loaded from the cache. r=pavlov@netscape.com, sr=attinasi@netscape.com 2001-07-11 05:44:12 +00:00
waterson%netscape.com 5709f7405c Bug 85422. Since nsIContent::GetDocument() may now sometimes return a null document back-pointer due to paint suppression, be extra paraniod with a sprinkle of null-check fairy dust. r=brendan, sr=attinasi 2001-07-04 05:54:09 +00:00
jaggernaut%netscape.com 5a6317b8a5 Bug 88413: Remove |GetUnicode()| from nsString (and replace it with |get()|). r=dbaron, rs=scc.
This removes all call-sites I can currently fix. Tomorrow I'll try to get someone to checkin my changes to security/ and I'll get some help with the Netscape side of things.

nsString::GetUnicode()'s final death-blow will be dealt soon. Please keep this in mind as you add new code :-)
2001-06-30 11:02:25 +00:00
tor%cs.brown.edu 25c43a19d0 Bug 87540 - nsImageFrame was offsetting invalidate rect by one pixel
for historical reasons (jpeg decoder used to one-index update rect).
r=kmcclusk, sr=blizzard
2001-06-25 22:14:37 +00:00
tor%cs.brown.edu bdec5a3e6c Bug 87550 - nsImageFrame wasn't adjusting for bordering padding when
invalidating itself.  r=kmcclusk, sr=blizzard
2001-06-25 22:12:15 +00:00
dbaron%fas.harvard.edu 9d35ed31a4 Fix bad getters on nsIDocument and nsIScriptContext to use out params rather than return |AddRef|ed pointers. b=81289 r=jaggernaut sr=jst a=asa 2001-06-20 03:27:48 +00:00
pavlov%netscape.com 11c8370603 fixing bug 82520 r=jag sr=hyatt a=tor 2001-06-05 20:22:52 +00:00
hyatt%netscape.com b135c5b55a Fix for 78695 (rule matching improvements). r/sr=attinasi, jst, waterson 2001-05-31 22:19:43 +00:00
attinasi%netscape.com 470a41f127 Fixed crash when mouse move event is handled by image frame and the baseURI is null (after traversing to the link'd document). b=81728 r=pavlov@netscape.com sr=hyatt2netscape.com a=asa@mozilla.org 2001-05-26 05:46:33 +00:00
pavlov%netscape.com d9e16aae2f changing baseURI to an nsCOMPtr r=jst 2001-05-23 07:00:37 +00:00
valeski%netscape.com 206a778ca4 sr=vidur/shaver@mozilla.org on the content policy callsite and implementation mods (81260). Update of the nsIContentPolicy interface to provide more generic context, a nsIURI instead of a URI wstring, and a nsIDOMWindow for window level context. Existing Callsites have been updated to reflect the new changes, and nsIDOMWindows are now passed into the new API. 2001-05-21 22:40:10 +00:00
mkaply%us.ibm.com f1141bff92 More IRIX bustage - CRLF 2001-05-21 00:02:10 +00:00
pavlov%netscape.com edf413392c fixing bug 32269 r=bryner sr=scc 2001-05-20 21:21:44 +00:00
mstoltz%netscape.com 8c0cd58b30 Re-checking-in my fix for 47905, which was backed out last night because of a bug in some other code that was checked in along with it. This checkin was not causing the crasher and is unchanged. See earlier checkin comment - in short, this adds same-origin to XMLHttpRequest and cleans up some function calls in caps, removes some unnecessary parameters. r=vidur, sr=jst. 2001-05-19 00:33:51 +00:00
evaughan%netscape.com d9378cb8f0 Fix for bug #80902
-r jeff@tcbnetworks.com -sr waterson

Fix for bug #80505

-r aaronl, jgaunt -sr brendan
2001-05-17 23:52:32 +00:00
mstoltz%netscape.com f9c13993e0 Fixing bug 78831 - treat chrome and resource URLs the same in the
URL loading check and give them access to each other. r=pavlov,
 sr=brendan. This allows us to turn on the fix (already reviewed)
for 69070.
2001-05-15 22:47:21 +00:00
evaughan%netscape.com 94198ed5d8 Landing accessibility
-r aarol, jgaunt

-sr brendan
2001-05-11 21:11:38 +00:00
pavlov%netscape.com f66fe26096 fixing bug 78015 and removing some old imagelib code r=saari sr=hyatt 2001-05-04 06:29:59 +00:00
hyatt%netscape.com 8130400b54 Fix for 77002. reviewers=jst,waterson,hixie,shaver,brendan,pavlov 2001-04-25 19:52:49 +00:00
heikki%netscape.com 1f6e826dca Bug 51339, XHTML map elements did not work, r=harishd, sr=vidur. 2001-04-18 00:14:34 +00:00
pavlov%netscape.com e8d81a2291 fixing printing of images printing them too small. r=timeless sr=ben. bug 73254 and 75425. 2001-04-17 09:03:20 +00:00
akkana%netscape.com c702439ead 74169: Enable controls on image animation in libpr0n. r=pavlov,saari sr=sfraser 2001-04-16 22:02:39 +00:00
pavlov%netscape.com b26ded6ea9 fixing scaling problem r=saari, sr=hyatt 2001-04-15 05:15:48 +00:00
pavlov%netscape.com 4f028f9c98 fixing bug 75185 r=brendan sr=attinasi 2001-04-15 02:13:49 +00:00
pollmann%netscape.com 1168445984 Bug 66399: Make click on targetted server-side image map load resulting page into correct frame, r=nisheeth@netscape.com, sr=jst@netscape.com 2001-04-11 08:12:10 +00:00
sspitzer%netscape.com 9b5a738a1c another bulletproofer, until pavlov wakes up. #75416 r=waterson. 2001-04-10 18:16:58 +00:00
pavlov%netscape.com 31ba101371 fixing images not drawing correctly. bug 73195. patch from kmcclusk@netscape.com. r=pavlov sr=jst 2001-04-04 08:23:14 +00:00
evaughan%netscape.com dd702eea33 XP part of accessibility landing
-r vidur, rods -sr hyatt
2001-04-01 01:01:33 +00:00
pavlov%netscape.com 434d3cde6c fix for bug 73345. r=hixie,bryner sr=cls 2001-03-25 02:56:38 +00:00
pavlov%netscape.com 8415947186 fix for bug 73239. output pixels instead of twips from GetNaturalImageSize. r=ninsheeth sr=shaver,smfr 2001-03-23 21:52:08 +00:00
pavlov%netscape.com bf637c0135 bug 37779. patch mostly from tor@cs.brown.edu. r=me, saari. r=blizzard for gtk gfx changes. r=rods for the nsImageFrame changes. sr=waterson. needed to land new imagelib. 2001-03-22 07:05:22 +00:00
pavlov%netscape.com d7d119c0db adding ifdef'd code to use the new imagelib. bug #70938. r=waterson sr=attinasi 2001-03-22 01:38:35 +00:00
timeless%mac.com e76ccfd647 fix Bug 70989 Clean up lots of "shadows" and other common warnings
r=peterv, jst, ducarroz, edburns. sr=jst, shaver
2001-03-21 05:32:22 +00:00
joki%netscape.com 1c6a33042a Fix bug 58331, don't access internal frame data after DOM event dispatch. r:peterv sr:jst 2001-03-13 11:32:43 +00:00
attinasi%netscape.com c2ffe7fa93 Don't reflow for every notification of an image load if the image frame's size is constrained. b=69552 r=kmcclusk sr=hyatt 2001-03-06 00:47:46 +00:00
heikki%netscape.com 5c811dfbf3 Splitting layout into two libraries, layout and content. r=jst@netscape.com, sr=waterson@netscape.com 2001-02-19 21:50:04 +00:00
pierre%netscape.com 9af01acf22 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
rods%netscape.com 99666eed8c This checkin enables mozilla to support the printing of selection, the printing of page ranges, and
the printing of headers and footers.
Printing of selection is implemented by the frames figuring out if they are in the selection and painting
if they or not they they don't paint. This also only allows the printing of the first page of
selections, alothough it is well documented where this is implemeted so it can be removed.
Bugs 63426, 31218, 61075 r=dcone,kmcclusk,erik,buster sr=waterson
2001-01-27 14:09:34 +00:00
mcafee%netscape.com 7ecf530933 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 62bf433a35 #43457 split nsStyleSpacing into 4 smaller structures: nsStyleBorder, nsStylePadding, nsStyleMargin, nsStyleOutline. Review=attinasi. Pending Approval: buster. 2001-01-20 22:46:54 +00:00
rods%netscape.com edb0c6270c removing most all NS_DEFINE_IID and replacing them with NS_GET_IID macros
Bug 61274, r=buster sr=waterson
2001-01-04 20:44:42 +00:00
dbaron%fas.harvard.edu caa9658024 Clean up easily fixed unnecessary includes and exports of implementation header files in layout. b=63766 r=jst@netscape.com sr=buster@netscape.com 2000-12-30 19:22:22 +00:00
warren%netscape.com cd56c0575b Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc. 2000-10-28 22:17:53 +00:00
warren%netscape.com 9a6d92a433 Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson 2000-10-27 22:43:51 +00:00
mstoltz%netscape.com f1137e89ec Fixing 56009, exploit allowing XPConnect access. r,a=hyatt, sr=scc 2000-10-13 22:59:47 +00:00
heikki%netscape.com c3c301798c Fixed bug 52526, the cause was that image load event was bubbling even though the specs say it should not. Previously we were not even sending the load event on image load. I also fixed bug 50478 by fixing the logic in GetBubbles and GetCancelable of the DOMEvent. This helps in testing the first bug. I also fixed several cases where we had wrong combination of event class and event struct type. a=waterson, r=joki,rods. 2000-09-19 21:47:04 +00:00
rayw%netscape.com 0257791053 Bug 37275, Changing value of all progids, and changing everywhere a progid
is mentioned to mention a contractid, including in identifiers.

r=warren
2000-09-13 23:57:52 +00:00
buster%netscape.com 11241fb485 bug 14280
nsTextTransformer.cpp.
  I moved where we translate the nbsp to a (ascii 32 space character) until after the i18n routines are called, so they can properly account
  for the space as non-breaking and therefore part of the first word in the block.

bug  39901 and 38396
  nsHTMLImageLoader.*, nsImageFrame.cpp
  I backed out the bad fix for 38396, and put in a new fix where I store a little state in the image loader flags for cases where the image
  gets an unconstrained reflow and has %-based width.  This does not handle %-based min-width or max-width, that would be a separate
  bug that I'll file shortly.  But this fixes the vast majority of real cases out there.

bug  18754
  nsHRFrame.cpp, quirks.css, nsCSSFrameConstructor.cpp, last part of nsLineLayout.cpp
  in quirks mode, I changed HR from a block element to a replaced inline element that acts like a block, using generated content to get
  newlines before and after the HR.  This isn't ideal, but it gets us backwards compatibility, and ian and dbaron have blessed the approach.

bug  50257
  nsLineLayout.cpp
  Did a couple of things in here:
       * The actual fix is controlled by FIX_BUG_50257 #define symbol.  This basically says that an break (BR) will always fit on a line.
         A more general solution would probably be to round up to the nearest pixel, and if the thing is less than a pixel make it fit on a
         line.  This is a wimpier, safer solution.
       * I noticed that the way we got the compatibility mode was way out of date, very wasteful.  So I fixed that.
       * I noticed that there were a bunch of redundant SetFlag calls.  Since the flag variable is initialized to 0, setting a flag to 0 on a newly
         created object is a waste.

  nsBlockFrame.cpp  --  just added a comment to some odd looking code, to make sure no one comes along later and breaks it
2000-09-11 21:15:02 +00:00
pnunn%netscape.com 7a62c0d377 bug:13718: natural img dimens. pnunn, r:sfraser 2000-09-08 22:52:05 +00:00
heikki%netscape.com 50ed716f64 Got delayed with changed files, here is the second patch... Fixed bug 22710, load and error events were not firing for images. I also changed the select event firing to use nsEvent instead of nsGUIEvent. r=joki. 2000-09-07 21:03:26 +00:00
waterson%netscape.com 4c25116d9f Fix build bustage. 2000-08-25 06:22:13 +00:00
waterson%netscape.com 9c85e83202 Bug 47191. Trim whitespace from relative spec before constructing absolute URLs. r=jst 2000-08-25 06:03:49 +00:00
waterson%netscape.com baab3d1f7f Bug 49122. Make the image map manage addition and removal of the <area>'s to the primary-frame-for map in the frame manager. r=saari 2000-08-18 06:27:42 +00:00
jst%netscape.com 05f37e21da Fixing nsbeta3+ bug 44002. Don't use non boolean values (the value 2 in this case) as a boolean true since 2 != true in JS. This caused scripts that rely on img.complete == true when an image has loaded to break. r=nisheeth@netscape.com 2000-08-17 06:28:47 +00:00
rods%netscape.com 071c524342 it was incorrctly painting both images
b=48156 r=kmcclusk
2000-08-14 22:01:05 +00:00
saari%netscape.com 3b8fdea366 Fix more leaks bug 48126 again. r=hyatt 2000-08-12 00:38:22 +00:00
saari%netscape.com 4c09a29ac5 massive landing of joki changes.
Relevant nsbeta3+ bugs 43309, 44503, 2634, 2504,5981, 24698, 25758, 33577,
36062, 36217, 41191, 41491, 42356, 42829, 43016
r=saari (joki code). also been tested by heikki and bryner
2000-08-08 21:31:05 +00:00
heikki%netscape.com 300a4cad60 Bug 38647 Link clicks on nsImageFrame do not check if legal to load URI. Happened with server side image map. r=mstolz 2000-08-08 20:35:12 +00:00
rods%netscape.com f7fbff18c7 check in for andreas, it now checks to make sure that the image or lowimage is not
null before getting the width and height
b=36902, a=waterson
2000-07-20 14:50:17 +00:00
nisheeth%netscape.com d70a4ed2b5 Fix for nsbeta2+ bug 12152. r=vidur, pollmann. Setting the src property during document load works on <IMG> and <INPUT type="image"> elements. 2000-07-01 02:26:30 +00:00
pavlov%netscape.com 367dc92877 backing out a change that went in with the new timer code that had nothing to do with timers and shouldn't have been checked in (and I don't know why was in my tree) 2000-05-20 03:05:48 +00:00
pavlov%netscape.com 803190ad4b changes all usages of NS_NewTimer to CreateInstance 2000-05-17 02:49:35 +00:00
buster%netscape.com e38f699ad2 bug 38396, a bug in max width calculation exposed by tables 2000-05-14 04:43:52 +00:00
rods%netscape.com 27fe983957 fixes two different checks for the existence of lowsrc. al text now displays
correctly for net based images.
2000-05-01 14:35:19 +00:00
troy%netscape.com 6b04c3b5fa Reinstated clipping code which had been backed out because it caused
a problem for XUL layout. I added a workaround for the XUL problem
2000-04-25 04:43:11 +00:00
putterman%netscape.com 42e26161e8 Backing out troy's changes to fix various UI blocker bugs. 2000-04-24 22:15:55 +00:00
troy%netscape.com 9b393faa48 Changes to bring clipping inline with upcoming CSS2 errata 2000-04-23 00:56:16 +00:00
rods%netscape.com 21de9f3e8a Add ifdef'ed Performance Reflow Counting code 2000-04-21 14:59:47 +00:00
rods%netscape.com fe078580ed no longer strips beginning and ending spaces of value when GetAttributeValueAt
is called.
Bug 33050
2000-04-19 14:00:11 +00:00
buster%netscape.com f40b76249a bug 588 (text justification) for Robert O'Callahan <roc+moz@cs.cmu.edu>
r=buster

bug 18545 ([FLOAT] Problem Centering <TABLE> with <DIV> tag)
r=troy

bugs 18827, 19579, 22327 24782, 26512, 30124, 31849, 32846 (floater behavior wrong)
The primary change here is to determine if a block is impacted by a floater, and if so
mark the block's lines dirty when appropriate.
r=troy

no bug number.  performance work.  reduced the size of some reflow data structures by
collapsing multiple fields into a single bit field.
r=troy
2000-04-17 14:40:46 +00:00
troy%netscape.com 5620fd8913 Fixed GetIntrinsicImageSize() to return the correct size 2000-04-15 15:49:57 +00:00
scc%netscape.com e37740acdb making string conversions explicit 2000-04-03 11:39:09 +00:00
nisheeth%netscape.com 971495476f r=troy. Fix for bugs 8131, 13325.
- We no longer display alternate content for broken images inside image
- We only display the image loading icon during the initial load of an image not if its src attribute is changed via the DOM.
- In AttributeChanged(), se don't call ContentChanged() on the document to reflow the image frame but call the parent frame's ReflowDirtyChild() method instead.
2000-04-01 00:13:51 +00:00
warren%netscape.com 727f312b32 Necko API changes: primarily nsIChannel, changing initialization parameters to accessors. Got javascript: evaluation to happen at the right time (when AsyncRead is called) as well as on the right thread. 2000-03-29 03:58:50 +00:00
pierre%netscape.com 4d43de09aa Fix 32199 (visibility:collapse is not being interpreted as hidden on block and inline level elements) and parts of 21701 (misuse of style attr mVisible). In the following files, replacing disp->mVisible with disp->IsVisible() is a BUG FIX: nsBlockFrame, nsBulletFrame, nsHRFrame, nsHTMLContainerFrame, nsImageFrame, nsTextFrame. In all the other files, replacing disp->mVisible with disp->IsVisible() or disp->IsVisibleOrCollapsed() is merely a SYNTACTICAL CHANGE. The respective owners will later review the use of IsVisibleOrCollapsed() and in some cases replace it with IsVisible(). See bug 21701. 2000-03-17 10:15:13 +00:00
vidur%netscape.com d4b67b3219 Fix for bug 9140. Area elements now have event fired for them. r=joki 2000-02-11 01:24:59 +00:00
troy%netscape.com 459938a056 b=25245 Changed Reflow() to return 0 for a max-element-width if the
image has a percentage based width
2000-01-30 18:28:38 +00:00
nisheeth%netscape.com 9665380540 Fix for bug 23781. 2000-01-13 23:32:47 +00:00
nisheeth%netscape.com 56525e3574 r=troy. Reflow commands are now coalesced by block and inline frames. This fixes bug 985 in which we now generate 6 reflow commands instead of 257. 2000-01-12 08:28:24 +00:00
vidur%netscape.com b845753fb6 Fix for bug 23074. Implemented image.complete. r=pollmann 2000-01-06 23:41:14 +00:00
vidur%netscape.com bd52d69467 Fix for bug 22709. image.width/height goes to frame if it isn't in an attribute - compatibility with Level 0. r=harishd 2000-01-04 03:06:13 +00:00
hyatt%netscape.com de2eaede42 Implementing a generalized recycler and arena for all layout frames. Hoping to improve
bug #9489.  Should also definitely fix bug #15916. r=troy
1999-12-04 23:49:50 +00:00
kmcclusk%netscape.com 4df6cffe8e Added NS_RELEASE's to fix leaking of nsIImage's. bug=19114; r=karnaze@netscape.com 1999-12-03 00:06:32 +00:00
warren%netscape.com 2db26922a6 Landing no_neckoutil2_branch. Bug #11159. Removes neckoutil_s.lib from build which helps beos and openvms. 1999-11-30 04:50:42 +00:00
tbogard%aol.net af1ce8d410 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 5312eacf8c updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:40:37 +00:00
cls%seawood.org bee74e223b Removed unused NECKO ifdefs.
a=leaf
1999-11-02 23:34:03 +00:00
troy%netscape.com 1585a751fb Moved a bunch of stuff out to a nsIFrameDebug interface 1999-11-01 22:12:45 +00:00
troy%netscape.com 87afecabc0 Changed SetView/GetView to take an additional argument which is the
pres context
1999-10-26 04:44:41 +00:00
peterl%netscape.com a6adfea707 Added namespace ID to the AttributeChanged notification
Part fo the fix for Bug 15153
r=troy
1999-10-15 23:16:45 +00:00
warren%netscape.com 8c71c45537 Fixed AddRef/Release problems to eliminate negative refcounts in Bloaty. 1999-10-08 01:49:06 +00:00
troy%netscape.com 5a52201cf2 Fix for bug #13341. Changed DisplayAltFeedback() so it doesn't render the
recessed border unless there's room
1999-09-16 21:37:37 +00:00
kipp%netscape.com 7fe2679e86 Updated SizeOf methods to not waste space when doing a non-debug build 1999-09-01 01:02:16 +00:00
kipp%netscape.com f808fbb193 Reimplemented SizeOf methods in some of the frame classes; partial rework of first-line handling snapshot 1999-08-31 03:09:40 +00:00
troy%netscape.com 8d4c41ad24 Fix for bug #12449. Changed UpdateImageFrame() so that if the content object
has a NULL document object (the case for generated content) we mark the image
frame dirty and generate a reflow command targeted at the parent frame
1999-08-25 23:55:57 +00:00
vidur%netscape.com 189e9b728d Spaces now stripped from map name for client-side maps. Client-side and server-side imagemaps can now co-exist 1999-08-19 22:22:02 +00:00
troy%netscape.com 3ee376f002 Added NULL pointer check in DisplayAltFeedback() to fix Necko related crash
where LoadIconImage() is succeeding but returning NULL for the icon
1999-07-31 05:59:12 +00:00
troy%netscape.com c551fe3166 Renamed DeleteFrame() to Destroy() 1999-07-22 02:24:52 +00:00
andreas.otte%primus-online.de 838f5a972b NECKO only: Using helper function NS_MakeAbsoluteURI A: chofmann R:valeski 1999-07-11 15:46:10 +00:00
kipp%netscape.com baaf56e24a Only pass on url to server side image map when we end up with a valid url 1999-07-08 19:44:42 +00:00
kipp%netscape.com 869bb26059 Fix bug #652 - made server side image maps find the proper href to base the url on by looking up the content tree of an nsIDOMHTMLAnchorElement 1999-07-08 19:38:08 +00:00
andreas.otte%primus-online.de 001ff1afea NECKO only: replacing GetBuffer with ToNewCString and some error checking 1999-07-06 23:08:16 +00:00
andreas.otte%primus-online.de 3b7dac23f8 NECKO only: fixing MakeAbsolute while loading images 1999-07-04 22:41:42 +00:00
troy%netscape.com 72d8261683 Fix for bug #5762. Changed DeleteFrame() to call CancelReflowCommand()
when a frame is destroyed
1999-06-25 04:22:15 +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
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
mjudge%netscape.com a15e7eb5ac adding in selection of non text frames in editor only 1999-05-17 00:21:18 +00:00
kipp%netscape.com 4846f41f1f Reworked frame factory methods; fixed bug 4519 1999-05-11 22:03:29 +00:00
kipp%netscape.com 93b46d2ccf Disable mapping frames into text when they don't render properly until troy gets back.... 1999-05-10 21:04:18 +00:00
av%netscape.com 7cec6f8dba Getting back check for data attribute in image frames 1999-05-05 23:40:21 +00:00
kipp%netscape.com 6a3daef83e Always init the image loader (fixes bug #5238); don't load images with zero set dimensions (bug #5381); cancel extraneous reflows to improve performance 1999-04-23 20:00:14 +00:00
rickg%netscape.com 85e7dbb767 updates to sync with nsString2 api 1999-04-21 23:35:12 +00:00
kipp%netscape.com 2c74cc715a Support aspect scaling everywhere; elminate win32 ifdefs; use revised image loading apis 1999-04-13 21:51:20 +00:00
joki%netscape.com b6f2484b5b New api's into nsEventStateManager for content state change (hover,focus,active) 1999-04-12 21:24:07 +00:00
kipp%netscape.com 3b2b1ba2b2 Support clip property 1999-04-10 17:32:33 +00:00
av%netscape.com 77d2952691 Cleaning up 1999-04-06 01:16:53 +00:00
troy%netscape.com a01ec4ae35 Changed nsHTMLImageLoader::StartLoadImage() to just use mURLSpec as the
absolute URL if mBaseURL is NULL, and not call NS_MakeAbsoluteURL.
This fixes a crash
1999-04-04 05:56:23 +00:00
kipp%netscape.com 60f52440cb Whacked paint methods to use new constants 1999-03-26 00:39:35 +00:00
av%netscape.com e845f0123f *** empty log message *** 1999-02-27 00:57:04 +00:00
kipp%netscape.com 99df251883 Support limited scaling of images on unix 1999-02-26 17:07:28 +00:00
troy%netscape.com da4193eab6 Changed nsIFrame::Init() to take an additional parameter 1999-02-25 03:27:57 +00:00
kipp%netscape.com 7a4a4efc3d Removed a skid mark 1999-02-18 03:26:42 +00:00
kipp%netscape.com 76efa6ea05 Detect errors more often by prioritizing its status over size-available 1999-02-18 03:26:19 +00:00
troy%netscape.com fcbd2edc14 API change for pres shell 1999-02-12 18:22:08 +00:00
kipp%netscape.com 36c243cdc0 COMized nsIPresShell and nsIPresContext 1999-02-12 17:45:58 +00:00
troy%netscape.com 9d570499cf Changed a bunch more nsIFrame member functions to be pointer arguments
instead of references
1999-02-10 05:38:18 +00:00
troy%netscape.com b974e26cea Changed some nsIFrame member functions to use ** instead of *& for OUT
paremeters
1999-02-10 00:42:56 +00:00
troy%netscape.com aaff26f78e Turned off some code until the frame construction code handles the case
where the replaced element that can't be rendered is floated or absolutely
positioned
1999-02-09 04:05:21 +00:00
joki%netscape.com 7a1bff7611 Checking in null check and assertion to handle the crashing on imagemap part of the Mac regression. 1999-02-06 02:07:49 +00:00
troy%netscape.com b8205354d1 Added CantRenderReplacedElement() to nsIPresShell and changed the image frame
code to use it
1999-02-05 18:25:29 +00:00
troy%netscape.com bcc69e2898 Work-in-progress for replaced elements that can't be rendered 1999-02-04 17:03:46 +00:00
troy%netscape.com f2d3dd631e Fixed leak of nsIHTMLDocument interface in GetImageMap() 1999-01-30 01:04:35 +00:00
troy%netscape.com bb2686580f Changed TriggerLink() to release its reference to the nsILinkHandler interface,
and I changed HandleEvent() to make nsIURL interface returned by the call to
GetDocumentURL() is released
1999-01-30 00:34:06 +00:00
michaelp%netscape.com 0084e8879d modified for new DrawString()/GetWidth() APIs. 1999-01-28 05:03:58 +00:00
harishd%netscape.com d913194001 PaintBorder() modified to accept styleContext 1999-01-22 22:26:29 +00:00
troy%netscape.com 0c55cb8b0e Part of the fix for bug #2485 1999-01-19 05:17:39 +00:00
kipp%netscape.com 7f96144059 Spanked away SizeOf methods and nsIListFilter 1999-01-16 00:00:50 +00:00
peterl%netscape.com e86b440abd better base URL support
Checkin during red tree approved by sar
1999-01-15 01:57:58 +00:00
troy%netscape.com 036e6852f2 Removed the content-parent frame pointer. Now we just have the one geometric
parent
1999-01-14 05:16:23 +00:00
troy%netscape.com 5c75ea66f0 Fix for bug #2276, and some initial support for 'right' and 'bottom'
for absolutely positioned elements
1999-01-13 06:37:31 +00:00
vidur%netscape.com 274a4add3e Second pass of attributes as nodes. Improved namespace management - XML elements now hold on to their containing namespace. Fixed Get/SetDOMAttriute naming issue. Added new namespace parsing methods to nsIContent 1999-01-12 16:37:24 +00:00
kipp%netscape.com 19e73d1f62 Use nsImageMap 1999-01-09 00:13:19 +00:00
troy%netscape.com 4b3e1eebad Replaced "maxSize" member if nsReflowState with "availableWidth" and
"availableHeight"
1999-01-05 23:31:18 +00:00
kipp%netscape.com 844a41c615 Use macros from nsTextFragment 1999-01-05 23:02:27 +00:00
troy%netscape.com 4591f9d2ad Changed width/height constraints in nsHTMLReflowState struct 1998-12-30 17:50:00 +00:00
troy%netscape.com 7b5cc03059 Moved logic that deals with moving absolutely positioned frames out of the
flow to the frame construction code
1998-12-29 03:38:16 +00:00
peterl%netscape.com 887cd5f867 sync to new attribute api 1998-12-20 01:21:23 +00:00
kipp%netscape.com c29e5116c7 Revised frame Paint API 1998-12-18 15:54:23 +00:00
harishd%netscape.com d87392317e Changed all the places that previously accessed mBorderStyle and mBorderColor
with the new methods added in nsStyleSpacing
1998-12-07 18:53:07 +00:00
troy%netscape.com b7a4774af0 Removed some commented out old code 1998-12-04 03:46:59 +00:00
troy%netscape.com 2a4b2c503f Added Init() member function to nsIFrame 1998-12-03 06:31:43 +00:00
kipp%netscape.com 2fb0e7ca92 Let style override the cursor choice when using an image map 1998-11-23 22:21:13 +00:00
troy%netscape.com 9b6b15c587 Improved efficiency by avoiding the dreadfully slow NS_MakeAbsoluteURL() and
only setting the image loader's URL and base URL for the initial reflow
1998-11-21 04:04:41 +00:00
kipp%netscape.com 8a2735c01b Added mBorderPadding to cache computed value in case percentages are used; renamed class to nsImageFrame 1998-11-20 17:21:02 +00:00
troy%netscape.com 79aed9646d Added temporary workaround to image frame code to compensate for the fact
that HandleEvent() and GetCursor() are being called with the point not being
translated to the frame's local coordinate space
1998-11-20 06:31:55 +00:00
joki%netscape.com 77fd9c2652 Reworking internal event code to use nsIFrame::GetFrameForPoint
Adding new functionality through nsEventStateManager (cursor change, enter/exit events, tab navig)
1998-11-18 05:25:26 +00:00
peterl%netscape.com 265c4ca8a7 cleaned up cursor style handling 1998-11-18 02:11:54 +00:00
michaelp%netscape.com 7a9e1a4bc1 changes for pixel scaling/printing. 1998-11-14 01:52:27 +00:00
vidur%netscape.com d5fc2aaaea Added support for XLink - simple links and show=replace or new. Modified nsILinkHandler interface. 1998-11-14 00:21:19 +00:00
troy%netscape.com 87eff9d2bf Changed GetLoadImageFailed() so it checks with the image loader rather
than just using the value of mLoadImageFailed. Fixes bug #1287
1998-11-13 21:31:50 +00:00
troy%netscape.com 59a9e518ba Added check for SRC being an empty string 1998-11-13 18:38:16 +00:00
troy%netscape.com 36fd247c25 Changed it so that if there's a NULL URL then we set the mLoadImageFailed
flag and don't try and load the broken image URL. Only on Windows for now
until Mac and Unix support the image icons
1998-11-13 17:00:54 +00:00
karnaze%netscape.com aec75f892e form control content attribute changes (not all) reflected in layout; fixed scrolling on <iframe>, <frame>;
added nsImageControlFrame to handle <input type=image>.
1998-11-09 23:30:16 +00:00
troy%netscape.com fe4e76d9d9 Renamed HaveConstrainedWidth() and HaveConstrainedHeight() to HaveFixedContentWidth()
and HaveFixedContentHeight()
1998-11-01 01:29:00 +00:00
michaelp%netscape.com fc225bf7c1 changes to support nsIRenderingContext that conforms to COM conventions. 1998-10-30 02:08:25 +00:00
peterl%netscape.com 04a0fce0ba renamed cursor defines 1998-10-26 23:14:17 +00:00
kipp%netscape.com a77548baff Removed nsCSSLayout::GetStyleSize and converted callers to use state in the html reflow state 1998-10-12 17:00:32 +00:00
michaelp%netscape.com cb569a69be fixed for new passing of pres context into API. 1998-10-11 00:58:53 +00:00
troy%netscape.com 7aceb4270d Eliminated nsIRunaround interface, and folded space manager parameter into
nsHTMLReflowState structure
1998-10-02 04:10:00 +00:00
michaelp%netscape.com 9b82a28284 modified for new fontmetrics/renderingcontext. 1998-10-02 01:12:39 +00:00
troy%netscape.com ba3c7125c2 Separated reflow process out of nsIFrame and into nsIFrameReflow. Also
added nsIHTMLReflow, which is an HTML specific reflow interface
1998-10-01 04:46:11 +00:00
peterl%netscape.com 7891e67337 moved attribute change code to style sheete
cleaned up content change api
1998-09-29 23:48:07 +00:00
vidur%netscape.com 446dec40b6 Fixed image.src=. Forwarded AttributeChanged notifications from nsPlaceholderFrame to its anchored item. Got rid of redundant calls to AttributeChanged. 1998-09-28 21:22:31 +00:00
kipp%netscape.com 2978482ce0 Fixed mac/unix build problem 1998-09-26 22:48:52 +00:00
kipp%netscape.com bb57a6d08f Added callback to image loading api 1998-09-26 18:36:59 +00:00
kipp%netscape.com 95cd6bc299 Hooked up width/height attributes to style changed reflow 1998-09-25 18:25:20 +00:00
kipp%netscape.com f854c42d85 Removed some dead crud and implemented AttributeChanged 1998-09-25 16:35:01 +00:00
kipp%netscape.com 57b94db9d0 Removed unused include 1998-09-24 21:34:31 +00:00
kipp%netscape.com d8dc49bad0 Use nsHTMLContainerFrame instead of nsHTMLBase 1998-09-23 02:30:21 +00:00
troy%netscape.com 7b43ebb72c Changed to how broken image is handled 1998-09-22 04:01:16 +00:00
troy%netscape.com b2de87b7a4 Added display of icon when loading image 1998-09-22 03:34:44 +00:00
troy%netscape.com 294778023e Work in progress for displaying icon while laoding image... 1998-09-20 00:08:24 +00:00
troy%netscape.com f80fdc69aa Removed CreateFrame() from nsIHTMLContent 1998-09-18 18:04:42 +00:00
kipp%netscape.com 63f55821d6 Turned off image load skid marks 1998-09-09 16:13:52 +00:00
kipp%netscape.com 227e9f8ae1 new 1998-09-08 22:34:40 +00:00