cbiesinger%web.de
965b435ac9
204386 r+sr=bz Allow setting Image.src to empty
...
git-svn-id: svn://10.0.0.236/trunk@142905 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-25 20:43:08 +00:00
dwitte%stanford.edu
dc7e857400
bug 100649: Length() being used where IsEmpty() is meant
...
treewide changes to convert incorrect usages of string.Length() to string.IsEmpty().
thanks to afatecha@idea.com.py (Ariel Fatecha) for the patch. r=dwitte, sr=jst.
got the ok from Asa to land into a closed tree.
git-svn-id: svn://10.0.0.236/trunk@142828 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-23 21:34:47 +00:00
dbaron%dbaron.org
69da9d4a19
Clean up API (and its callers) for getting style data: remove unneeded null checks and switch to new inline member functions (one for each struct) that return values. b=197205 r+sr=roc a=brendan
...
git-svn-id: svn://10.0.0.236/trunk@142488 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-15 03:42:21 +00:00
cbiesinger%web.de
183bf0a7b1
199045 r+sr=bz a=asa Animated image rotates although "Animate images should loop ... [X] never" is marked
...
git-svn-id: svn://10.0.0.236/trunk@142107 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-04 18:06:10 +00:00
bzbarsky%mit.edu
8dea548af1
When doing a placeholder, paint it and the alt text in the foreground layer,
...
not the background one. Bug 156987, r+sr=roc+moz, a=sspitzer
git-svn-id: svn://10.0.0.236/trunk@142092 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-03 02:34:42 +00:00
bzbarsky%mit.edu
3f946372a6
Images with no alt attr in quirks mode should show a placeholder, even if they
...
were blocked. Bug 201288, r+sr=roc+moz, a=asa
git-svn-id: svn://10.0.0.236/trunk@141943 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-29 18:49:42 +00:00
mjudge%netscape.com
25c3b291f9
192566 r=danm sr=smfr even though we may disagree with the user experience in some cases, this fix will stop the editor from drawing the alpha blended images in the case of only the images being selected (see resizing images)
...
git-svn-id: svn://10.0.0.236/trunk@141632 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-22 23:18:34 +00:00
bzbarsky%mit.edu
9861b52663
Make sure that Init() failures for image frames don't mean no alt text. Also
...
fixes a crasher when reframing fixed-pos frames.
This change adds an assertion in ConstructHTMLFrame that InitAndRestoreFrame
should succeed (unless it returns NS_ERROR_FRAME_REPLACED). This is an interim
change; eventually we want to bail out on errors, but there may be frame impls
that return errors in non-error conditions from Init() (eg nsFrameSetFrame did
that) and we're a little close to freeze.
Bug 202506, r=rbs, sr=roc+moz
git-svn-id: svn://10.0.0.236/trunk@141552 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-21 23:57:47 +00:00
cbiesinger%web.de
09e5755e82
70820 patch by keeda@hotpop.com r=dbaron sr=jst ALT in broken image cannot be changed by the DOM
...
git-svn-id: svn://10.0.0.236/trunk@141413 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-18 21:02:49 +00:00
bzbarsky%mit.edu
67db3288d0
"Backing" changes back in since tree has reopened.
...
git-svn-id: svn://10.0.0.236/trunk@140538 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-02 03:19:50 +00:00
bzbarsky%mit.edu
94a9f714fa
Backing all this out, since tree is closed.
...
git-svn-id: svn://10.0.0.236/trunk@140536 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-02 02:02:10 +00:00
bzbarsky%mit.edu
3943474ad6
Make the IconLoad hold a ref to the image listener. Fixes race to a crash.
...
Bug 199021, r=pavlov, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@140533 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-02 01:35:20 +00:00
bzbarsky%mit.edu
41e28a24f2
Don't invalidate and such if no initial reflow yet. Bug 83774, r=pavlov
...
git-svn-id: svn://10.0.0.236/trunk@139754 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-19 06:51:46 +00:00
bzbarsky%mit.edu
2fbc7d38bb
Landing bug 83774 -- move image loading for <img>, <object>, <embed>, <input
...
type="image"> into the content nodes and out of nsImageFrame. r=pavlov, sr=jst
git-svn-id: svn://10.0.0.236/trunk@139743 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-19 03:47:09 +00:00
jkeiser%netscape.com
8013d6e11a
Make ismap images not overwrite the query part of the URL (bug 185169), r+sr=bzbarsky@mit.edu
...
git-svn-id: svn://10.0.0.236/trunk@139346 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-12 21:22:21 +00:00
paper%animecity.nu
3f6fe85102
Bug 196072. Don't invalidate image area when incoming image data is for different frame. r=pavlov sr=bz
...
git-svn-id: svn://10.0.0.236/trunk@138996 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-05 23:55:53 +00:00
bzbarsky%mit.edu
617629aaf0
Eliminate libpr0n's use of prescontexts as unique keys; use documents instead
...
and do not hold a ref to them. Bug 190475, r=pavlov, sr=jst
git-svn-id: svn://10.0.0.236/trunk@138515 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-26 05:51:32 +00:00
heikki%netscape.com
8c3595f3d1
Bug 189077, make nsImageFrame smaller by using frame state bits, r=paper@animecity.nu, sr=roc+moz@cs.cmu.edu.
...
git-svn-id: svn://10.0.0.236/trunk@138382 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-24 22:20:26 +00:00
dbaron%dbaron.org
e6a2b29ebf
Remove nsISizeOfHandler and associated SizeOf methods. b=106792 r=bzbarsky sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@138193 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 15:34:38 +00:00
bryner%netscape.com
c44337949a
Remove nsIStyleContext (bug 114713), r/sr=dbaron. Changed lots of methods to use nsStyleContext* or already_AddRefed<nsStyleContext> as return values, depending on whether a reference is returned. Turn on nsRefPtr (bug 104346), and change nsDerivedSafe to not declare AddRef and Release explicitly virtual, r=jag, sr=dbaron.
...
git-svn-id: svn://10.0.0.236/trunk@138129 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 00:32:13 +00:00
dbaron%dbaron.org
a569c670f5
Replace computation of max-element-size (height and width) with max-element-width alone, since the max-element-height is practically unused and not meaningful for layout. b=186953 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@136064 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-09 14:26:32 +00:00
dbaron%dbaron.org
c278517282
Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag
...
git-svn-id: svn://10.0.0.236/trunk@136010 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 21:19:10 +00:00
dbaron%fas.harvard.edu
a436a28cb1
Reduce code size by using PaintSelf member function to paint background, border, and outline. b=184702 r+sr=roc
...
git-svn-id: svn://10.0.0.236/trunk@135596 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-23 22:05:47 +00:00
sspitzer%netscape.com
002b9c21ce
fix typo in comment.
...
git-svn-id: svn://10.0.0.236/trunk@135308 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-14 20:18:56 +00:00
caillon%returnzero.com
8a1bf17a45
Re-landing these because I don't believe this are responsible for the Txul spike.
...
Bug 181975 - Convert layout to use nsIPrefService, nsIPrefBranch, and friends.
r/sr=roc+moz
git-svn-id: svn://10.0.0.236/trunk@135125 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-11 14:05:41 +00:00
caillon%returnzero.com
d751688cb9
Backing out these changes since they appear to have caused a Txul regression on some tinderboxes (not all... weird...)
...
git-svn-id: svn://10.0.0.236/trunk@135111 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-11 05:11:02 +00:00
caillon%returnzero.com
6b60a8affb
Bug 181975 - Convert layout to use nsIPrefService, nsIPrefBranch, and friends.
...
r/sr=roc+moz
git-svn-id: svn://10.0.0.236/trunk@135068 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-10 23:41:12 +00:00
dbaron%fas.harvard.edu
2644fbd1b6
Remove unneeded stubs for code to support Navigator 4.x-only suppress attribute. b=182554 r=biesi (who noticed the problem) sr=peterv
...
git-svn-id: svn://10.0.0.236/trunk@134581 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-28 23:02:31 +00:00
bzbarsky%mit.edu
f6b3b3afb9
Make nsILinkHandler take uris instead of strings. Bug 176904, r=darin, sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@134133 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-20 00:44:26 +00:00
jerry.tan%sun.com
0acc19c43b
bug 156731, force image with unlimited css width to reflow,
...
patch by jerry.tan@sun.com r=karnaze, sr=bz
git-svn-id: svn://10.0.0.236/trunk@133248 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-07 02:50:39 +00:00
tor%cs.brown.edu
ffb291f8fb
Bug 155939 - frames not replaced correctly on bordered animated gif.
...
Patch by paper@animecity.nu , r=bzbarsky, sr=tor
git-svn-id: svn://10.0.0.236/trunk@133184 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-06 20:44:51 +00:00
dbaron%fas.harvard.edu
7c66f307dd
Miscellaneous performance improvements, mostly related to image loads. Cache a copy of the IO service on the Pres Context for use in starting image loads. b=170116 r=darin sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@133149 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-06 12:58:05 +00:00
caillon%returnzero.com
0f7366d6d0
Correcting our background painting code per the latest CSS specs. By default, backgrounds should be painted to the border
...
area, and not the padding area as per the CSS 2 Errata, CSS2.1 and CSS3. Also, implementing the CSS3 'background-clip'
and 'background-origin' properties (currently with -moz- prefixes) to control this behavior.
Bug 162252, r=dbaron sr=roc+moz
git-svn-id: svn://10.0.0.236/trunk@131419 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-08 10:24:53 +00:00
rpotts%netscape.com
5d90e7c567
bug #145579 (r=darin, sr=jst) send the correct referrer for images...
...
git-svn-id: svn://10.0.0.236/trunk@129799 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-17 18:59:41 +00:00
cbiesinger%web.de
281964d562
bug 151983 patch by bernd.mielke@snafu.de r=paper sr=tor
...
ASSERTION: imgLoader::LoadImage -- NULL URI pointer: 'aURI'
git-svn-id: svn://10.0.0.236/trunk@128754 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-03 22:49:51 +00:00
pete.zha%sun.com
f1830c00be
Reproducible crash when printing page [@nsFloaterCacheList::~nsFloaterCacheList()] (bug=149074)
...
r=karnaze@netscape.com sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@128412 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-29 01:44:15 +00:00
aaronl%netscape.com
6ec7265fbf
Bug 132158. Active Accessibility: expose correct bounds information and accessible value for HTML areas. r=saari, sr=alecf.
...
git-svn-id: svn://10.0.0.236/trunk@127523 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-17 01:46:58 +00:00
cbiesinger%web.de
bbae640797
bug 147938 patch by paper r=dbaron sr=waterson
...
Don't Invalidate nsImageFrame area if it's hidden
git-svn-id: svn://10.0.0.236/trunk@124409 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 18:17:35 +00:00
alexsavulov%netscape.com
0027d9c146
patch for bug 148199 - Images that are "broken" during document editing
...
don't redisplay using broken image icon.
added a request proxy removal from the mLoads to get the broken icon
when paint.
r=glazman, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@123524 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 21:28:53 +00:00
karnaze%netscape.com
49e0a9f4cb
bug 145305 - split floaters during printing. sr=attinasi, r=alexsavulov.
...
git-svn-id: svn://10.0.0.236/trunk@122236 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 22:50:43 +00:00
shanjian%netscape.com
a9c700ad59
#142562 problem with <td align=right or align=center
...
We are observing langGroup in some place while ignor it in others. This patch
make all font metrics call consistent. nsIRenderingContext API is change to
make things neat.
r=rbs, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@122131 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-24 20:11:14 +00:00
jst%netscape.com
0e34136ef1
Fixing bug 146034. Getting rid of nsHTMLIIDs.{h,cpp}. r=jfrancis@netscape.com, sr=rpotts@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@122039 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 00:00:34 +00:00
jst%netscape.com
7b7411c3ef
Fixing bug 134278. Die kNameSpaceID_HTML, die! r=sicking@bigfoot.com, sr=heikki@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@121894 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-20 22:47:02 +00:00
mjudge%netscape.com
5707942d3f
fix from 9.8 added to 9.9 and 1.0 branches. moving to trunk as well. small fix for image display
...
git-svn-id: svn://10.0.0.236/trunk@118696 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-11 01:11:23 +00:00
cbiesinger%web.de
5acc5ee9c8
bug 136382 r=rjesup@wgate.com sr=tor
...
preference to disable image placeholders
git-svn-id: svn://10.0.0.236/trunk@118626 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-10 14:45:05 +00:00
dbaron%fas.harvard.edu
ba46223ec2
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
...
git-svn-id: svn://10.0.0.236/trunk@118512 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-09 01:16:48 +00:00
attinasi%netscape.com
dbe40cd4b1
Support for proprietary style property to allow composer to force broken image icons. b=58646 r=karnaze sr=kin a=asa
...
git-svn-id: svn://10.0.0.236/trunk@117496 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-26 20:14:05 +00:00
dbaron%fas.harvard.edu
4d91361814
Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa
...
git-svn-id: svn://10.0.0.236/trunk@117345 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-23 22:26:36 +00:00
karnaze%netscape.com
4cedce858a
bug 124637 - when figuring available width for HRs subtract out both margins. a=asa, sr=attinasi, r=alexsavulov.
...
git-svn-id: svn://10.0.0.236/trunk@116999 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-20 22:14:27 +00:00
pavlov%netscape.com
c04a410905
fixing bug 131231 r=valeski sr=attinasi a=asa
...
git-svn-id: svn://10.0.0.236/trunk@116703 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-16 05:46:26 +00:00