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

194 Коммитов

Автор SHA1 Сообщение Дата
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