3361 Commits

Author SHA1 Message Date
bzbarsky%mit.edu
181e2a398a Fix crash when viewing standalone images if images are blocked in mailnews.
Bug 198301, r=jkeiser, sr=jst


git-svn-id: svn://10.0.0.236/trunk@139811 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-20 02:03:13 +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
mkaply%us.ibm.com
d854af2a64 #198036
r=blizzard, sr=kin 
Uninitialized variable


git-svn-id: svn://10.0.0.236/trunk@139702 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 22:18:10 +00:00
brade%netscape.com
3777665ab9 use member command manager; r/sr=dbaron; bug 197583
git-svn-id: svn://10.0.0.236/trunk@139671 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 14:47:17 +00:00
bzbarsky%mit.edu
ea0d50568b s/floorf/floor/. Fixes solaris/AIX/whatever bustage
git-svn-id: svn://10.0.0.236/trunk@139659 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 08:29:00 +00:00
bzbarsky%mit.edu
4f9a4db54e Add math.h too
git-svn-id: svn://10.0.0.236/trunk@139656 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 06:48:04 +00:00
bzbarsky%mit.edu
6a018426c4 Fix build bustage -- looks like not all platforms have round(). r=timeless
git-svn-id: svn://10.0.0.236/trunk@139655 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 06:45:57 +00:00
bzbarsky%mit.edu
61cb208768 Bug 160550 -- implement -moz-hsl() (CSS3 hsl() colors). Implement the parsing end of
-moz-rgba() and -moz-hsla(); the GFX end is bug 147017.  r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@139650 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 05:43:12 +00:00
bzbarsky%mit.edu
4ca70c77f0 Don't parse "string" values for text-align till we actually support them in
layout... Bug 197771, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@139649 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 05:25:37 +00:00
bzbarsky%mit.edu
a0fe9c437e Random CSS parser cleanup -- nsCOMPtr, nsCOMArray, remove unused methods, etc.
Bug 197512, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@139648 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 05:21:30 +00:00
bzbarsky%mit.edu
5861678ec0 Fix regression bug 197823 -- scrolling state restoration broken during history
navigation if URL includes anchor name.  Remove unnecessary and deleterious
flush. r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@139643 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 04:09:24 +00:00
bzbarsky%mit.edu
2a85f35d5f AddDoctypeDecl should not enforce "doctype" being uppercase. Bug 197331, patch
by bugzilla@jellycan.com (Brodie Thiesfield), r=harishd, sr=jst


git-svn-id: svn://10.0.0.236/trunk@139626 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-17 23:24:27 +00:00
bzbarsky%mit.edu
6c1ec16a83 Make imgRequestProxy hold a weak ref to its listener, to prevent reference
cycles.  Bug 196797, r=pavlov, sr=jst


git-svn-id: svn://10.0.0.236/trunk@139608 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-17 16:09:02 +00:00
bzbarsky%mit.edu
d5678f9f7d Make the CSS parser not throw on attempts to parse lengths with unknown units
(bug 197212).  Also fixes a few build warnings and finally removes
NS_CSS_PARSER_DROP_DECLARATION (bug 88423).  r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@139592 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-17 03:58:06 +00:00
bzbarsky%mit.edu
56379f8173 Avoid possible double-delete of CSS declaration. Bug 196271, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@139590 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-17 03:46:17 +00:00
bzbarsky%mit.edu
f0eaf3702e Make all CSSStyleSheets have a useful mDocument so that they can pass change
notifications properly.  Parent sheets are responsible for keeping their kids'
mDocument pointers up-to-date.  Bug 194543, r=dbaron, sr=peterv


git-svn-id: svn://10.0.0.236/trunk@139589 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-17 03:44:02 +00:00
dbaron%dbaron.org
c4b30dddae Fix operator precedence error in previous patch (which I reviewed, eek!). b=197277
git-svn-id: svn://10.0.0.236/trunk@139545 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-16 01:03:20 +00:00
dougt%netscape.com
fed2927b2c Create a new xpcom obsolete library (and component library).
Moved nsFileSpec and related classes into this obsolete library.
  Moved nsRegistry and related libreg functionality into the obsolete library.

Updated many callers using the obsolete nsFile spec to use nsIFile and Necko to do file IO.

Combined the following DLLs (source -> dest)
  uriloader -> docshell
  shistory -> docshell
  jsurl -> jsdom
  gkview -> gklayout

Moved nsAdapterEnumerator out of xpcom/ds and into mailnews, since they're the only consumer

Modifed the xpt_link tool so that you can specify a “only include” cid list that can mask CID’s that you are not interested in.

Added build options:
Prevent the building of xpinstall (--disable-xpinstall)
Prevent the building js component loader (--disable-jsloader)
A build option to only build a single profile (--enable-single-profile)
A build flag to only built the required xpfe components (--disable-xpfe-components).

Removal or hiding of unused functions and classes including nsEscape*, nsDequeIterator, nsRecyclingAllocatorImpl, nsDiscriminatedUnion, nsOpaqueKey, nsCRT::strlen, NS_NewCommandLineService

Bug 194240, r/sr = darin, alec.


git-svn-id: svn://10.0.0.236/trunk@139480 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-15 01:04:32 +00:00
jst%netscape.com
47743d5ece Fixing bug 192837. Freezing the rest of the DOM HTML interfaces. r=fabian@imajes.info, sr=peterv@netscape.com
git-svn-id: svn://10.0.0.236/trunk@139440 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-14 07:00:53 +00:00
jkeiser%netscape.com
3c83a5a70f Make .selectedIndex = -1 clear select (bug 195773), r=peterv@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@139437 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-14 06:18:20 +00:00
bzbarsky%mit.edu
16b3162eea Make :target work for history loads too. Bug 197277, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@139410 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-14 01:16:31 +00:00
dbaron%dbaron.org
e8efd80e8f Make HTMLDocumentColorRule immutable. b=196795 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@139385 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-13 15:30:32 +00:00
dbaron%dbaron.org
efc8215ab8 Ensure that GetStyleData never returns null, even in out-of-memory, by storing a backup set of style structs to return in case of failure. b=154751 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@139384 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-13 15:29:36 +00:00
bzbarsky%mit.edu
1c14eb6841 Fix bug 197090; foo.style.background="" would throw instead of just doing
nothing.  r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@139352 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-12 21:54:50 +00:00
hpradhan%hotpop.com
c1418b7281 bug 196662 : remove some obsolete code in nsHTMLFragmentContentSink r=harishd sr=jst
git-svn-id: svn://10.0.0.236/trunk@139256 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-11 04:38:07 +00:00
jkeiser%netscape.com
07eee61844 Collapse redundant table attr code (bug 191414), r=bernd, sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@139208 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-10 19:01:25 +00:00
roc+%cs.cmu.edu
220a586522 Bug 195883. %-values are not valid for '-moz-opacity'.
git-svn-id: svn://10.0.0.236/trunk@139134 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-08 03:08:25 +00:00
pavlov%netscape.com
6da1f6876e checking in fix for bug 196130
git-svn-id: svn://10.0.0.236/trunk@139050 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-06 23:03:49 +00:00
suresh%netscape.com
388e154175 bug 185692 - enable prefetching of '?' URLs in the context of rel=prefetch. r-dougt, sr-darin
git-svn-id: svn://10.0.0.236/trunk@139044 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-06 21:37:09 +00:00
alecf%netscape.com
326b7425d7 fix for bug 191416 - clean up nsIUnicharInputStream to make it more like nsIInputStream:
- hide Fill() (or remove it where not necessary)
- add ReadSegments() so that we can do reads without copying
- remove the extra offset parameter to Read()
r=dougt, sr=darin


git-svn-id: svn://10.0.0.236/trunk@139039 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-06 19:54:51 +00:00
dbaron%dbaron.org
de7999bf43 Fix dynamic style changes resulting from change to href attribute on HTML links. b=194972 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@139036 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-06 19:19:55 +00:00
dbaron%dbaron.org
3b86a016bb Handle inline style changes by creating new style rules to wrap the modified nsCSSDeclarations, thus moving towards style rule immutability and away from property-based change hints. Patch from Boris Zbarsky <bzbarsky@mit.edu>. r=dbaron sr=roc b=171830
git-svn-id: svn://10.0.0.236/trunk@139034 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-06 19:07:22 +00:00
peterv%netscape.com
c96c6fa64f Fix for bug 195153 (Remove bogus 'extern' decls from NS_New* functions.). Patch by jst, r=sicking, sr=peterv.
git-svn-id: svn://10.0.0.236/trunk@138957 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-05 15:08:41 +00:00
kyle.yuan%sun.com
03f9a54864 Bug 194980 Accessible state change events no longer fired for checkboxes and radios
r=aaronl, sr=henry.jia
rewrite nsHTMLInputElement::FireEventForAccessibility() function


git-svn-id: svn://10.0.0.236/trunk@138913 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-05 03:20:17 +00:00
mkaply%us.ibm.com
e3cecc6586 #192355
r=mstoltz, sr=heikki
Add security for accessing clipboard via Javascript


git-svn-id: svn://10.0.0.236/trunk@138859 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-04 13:56:36 +00:00
sicking%bigfoot.com
5ed56f29ad Bug 184159: Make scripts with for- and event-attributes not lock up the xml-contentsink.
r=peterv sr=jst


git-svn-id: svn://10.0.0.236/trunk@138858 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-04 12:12:48 +00:00
sfraser%netscape.com
6f87b85c6b Fix bug 195160: remove static NS_DEFINE_IID from header files. r=cls, sr=alecf.
git-svn-id: svn://10.0.0.236/trunk@138693 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-28 05:47:36 +00:00
jst%netscape.com
057e7a9ee8 Silly whitespace changes, no code changes.
git-svn-id: svn://10.0.0.236/trunk@138572 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-27 01:03:57 +00:00
jst%netscape.com
ff2baf6763 Fixing bug 191579. Make <script for='window' event='onload'> execute as inline script like it used to. r=bzbarsky@mit.edu, sr=peterv@netscape.com
git-svn-id: svn://10.0.0.236/trunk@138570 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-27 00:49:36 +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
dbaron%dbaron.org
84bd814999 Fix bustage. b=167415
git-svn-id: svn://10.0.0.236/trunk@138283 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-23 05:36:40 +00:00
bzbarsky%mit.edu
b8de299d37 Make CSSStyleSheetImpl::Clone properly set various weak refs on the clone
(parent sheet, parent rule, owning node, document).  Bug 167415, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@138277 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-23 04:44:41 +00:00
ere%atp.fi
8bd449bb27 Bug 194266: Removed extraneous Truncate() calls.
r=smontagu, sr=jst


git-svn-id: svn://10.0.0.236/trunk@138225 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 20:05:00 +00:00
bzbarsky%mit.edu
a99c8b3055 Make the parser recycling list in the loader a class static. Bug 190658,
r=sicking, sr=peterv


git-svn-id: svn://10.0.0.236/trunk@138219 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 19:36:32 +00:00
dbaron%dbaron.org
1565ce1865 Fix bugs with removal of certain properties. b=182294 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@138216 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 19:23:46 +00:00
dbaron%dbaron.org
3f0d2d6a2c Make our ignoring of properties for :first-line and :first-letter a lot closer to the spec (although still buggy). b=103189 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@138214 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 19:20:16 +00:00
dbaron%dbaron.org
104506ddb5 Fix dynamic change bugs by making HTMLColorRule immutable. b=99850 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@138213 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 19:15:46 +00:00
dbaron%dbaron.org
22283f6fd1 Replace nsIStyleSheet::AttributeAffectsStyle with nsIStyleRuleProcessor::HasAttributeDependentStyle. Strengthen the attribute optimization and apply it to HTML as well. b=163556 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@138196 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 16:10:53 +00:00
dbaron%dbaron.org
18e9b2801c Reduce code size of atom lists by storing a table of strings and pointers to fill in. b=181383 r=alecf sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@138195 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 15:58:07 +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