349 Commits

Author SHA1 Message Date
bryner%brianryner.com
3191a1feaa Inline boolean getters and setters on nsIPresContext, and change the storage to a bitfield. Bug 229371, r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@153018 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-20 17:49:01 +00:00
cbiesinger%web.de
af62af08a0 233890, misc cleanup in some layout files, r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@152949 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-19 18:56:13 +00:00
bryner%brianryner.com
7ace3321e6 Inline TwipsToPixels and PixelsToTwips on nsIPresContext. Bug 229371, r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@152647 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-11 04:57:07 +00:00
bryner%brianryner.com
e6a225b469 Inline getters and setters for scaling factors on nsIDeviceContext. Bug 233103, r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@152326 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-05 01:57:10 +00:00
bryner%brianryner.com
5b5cd321a4 Guarantee that the pres context's device context will be non-null by returning failure from Init() if it's null. Rename inline getter GetDeviceContext() to DeviceContext(), convert all callers to use the inline getter, and remove the virtual/refcounting getter. Bug 229371, r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@152182 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-02 22:17:21 +00:00
bryner%brianryner.com
018aeefc0d More nsIPresContext deCOMtamination (bug 229371). Inline getters and setters for LinkHandler, VisibleArea, and Language; change some methods that don't return any useful data to |void|; make GetContainer return an already_AddRefed. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@152137 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-01 10:09:07 +00:00
bryner%brianryner.com
b4581d93cf Continuing nsIPresContext deCOMtamination (bug 229371). Remove ReParentStyleContext - callers can call frame manager directly. Removed several unused setters. Inlined getters for default colors, font scaler, and focus ring width. Changed GetDefaultFont to return a const nsFont*. r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@152127 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-31 22:41:40 +00:00
bryner%brianryner.com
e46f7c8143 More nsIPresContext deCOMtamination (bug 229371). Removed GetBaseURL, rename GetMedium to Medium and inline it, remove virtual style resolution methods that forward to style set (callers will call style set methods directly). Removed PresContext parameter to StyleSet style resolution functions. r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@151927 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-28 00:18:22 +00:00
bryner%brianryner.com
70bf134ff4 Continuing nsIPresContext deCOMtamination (bug 229371). Remove GetImageLoadFlags (unused). Make failure to fetch the LookAndFeel service cause Init() to fail, don't null check it after that, and inlined the getter. Move IOService caching to nsImageFrame, the only user of it. r+sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@151636 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-21 09:35:59 +00:00
dbaron%dbaron.org
9baf7963db Remove NS_FRAME_HAS_LOADED_IMAGES state bit. b=201076 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@151240 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-13 01:18:51 +00:00
jst%mozilla.jstenback.com
803e4eb910 General deCOMtamination of nsIDocument, nsIContent, and nsIFormSubmission. Eliminating nsIAttributeContent, and doing some URL->URI changes. r+sr=peterv@propagandism.org
git-svn-id: svn://10.0.0.236/trunk@151115 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-09 23:54:21 +00:00
bryner%brianryner.com
468d3e2e8d Eliminate nsIStyleSet as an XPCOM interface, making the implementation internal to layout. Frame constructor ownership moves to the pres shell, and the style set methods that forward to the frame constructor are gone. Rewrote style set sheet add/remove to reduce code size. For more details, see bug 64116. r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@150998 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-07 22:30:53 +00:00
bryner%brianryner.com
019725339d Continuing nsIPresContext deCOMtamination. This patch changes Get/SetImageAnimationMode. Bug 229371, r+sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@150737 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-26 04:24:11 +00:00
bryner%brianryner.com
4cca78120d deCOMtaminate nsIPresContext::GetCompatibilityMode / SetCompatibilityMode (bug 229081). r+sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@150720 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-24 21:51:50 +00:00
bryner%brianryner.com
b5347dd60c Change all callers of nsIPresContext::GetShell() to use the non-refcounting versions. Most callers now use PresShell(), a few that were checking for null conditions are using GetPresShell() -- this will be remedied once we can ensure that a prescontext never has a null pres shell. Bug 227690, r+sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@150598 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-21 05:36:36 +00:00
timeless%mozdev.org
5e89622ca2 Bug 225120 Remove compiler warnings
patch by arne.anka@stupido.com r=dbaron sr=bz


git-svn-id: svn://10.0.0.236/trunk@149081 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-09 22:51:28 +00:00
bryner%brianryner.com
eeddf02bde deCOMtaminate nsIDocument by changing methods to use return value instead of out-params, eliminating unused nsresult return values, moving some members to nsIDocument and inlining the getters/setters. Bug 222134, r=bzbarsky, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@148257 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-22 06:09:48 +00:00
bzbarsky%mit.edu
d43d8c0e1e Add pref for the default :active styling. Bug 142163, patch by
mats.palmgren@bredband.net (Mats Palmgren), r=bzbarsky/sr=dbaron on the
layout/xpfe parts of the patch, r=glazou/sr=bzbarsky on the editor part,
moa=neil on the prefwindow changes.


git-svn-id: svn://10.0.0.236/trunk@147979 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-15 01:56:12 +00:00
dbaron%dbaron.org
37de3855c7 Make URIs in the style system nsIURI pointers instead of strings. b=113173 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@147501 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-01 22:53:56 +00:00
jst%mozilla.jstenback.com
ef67a47aab Fixing bug 215981. DeCOMtaminating nsIContent and nsIDocument some, and also some minor changes to other related interfaces. r=caillon@aillon.org, sr=peterv@propagandism.org.
git-svn-id: svn://10.0.0.236/trunk@147354 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-27 04:18:26 +00:00
bzbarsky%mit.edu
82c14d79dd DeCOMify GetParent/GetBindingParent/GetDocument on nsIContent. Bug 213823,
r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@145289 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-28 21:25:13 +00:00
bzbarsky%mit.edu
1c3e765c18 Don't bother reresolving style when empty stylesheets get added (eg from empty
<style> elements).  Also remove the methods for blowing away the ruletree
during a style reresolve, since ruletrees are now garbage-collected.  Bug
196557, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@144457 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-04 01:44:24 +00:00
roc+%cs.cmu.edu
2b6198e9be Ongoing deCOMtamination. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@144375 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-02 10:30:00 +00:00
jst%netscape.com
b1880963d6 Fixing part of bug 209699. Eliminate bad usage of NS_ConvertU*. r=caillon@aillon.org, sr=alecf@flett.org
git-svn-id: svn://10.0.0.236/trunk@144080 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 01:46:50 +00:00
dbaron%dbaron.org
80187c571f Remove |aPresContext| and |aPresShell| parameters from |nsIFrameManager| methods. b=208190 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@143961 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-19 23:52:58 +00:00
dbaron%dbaron.org
aeee69e663 Begin deCOMtamination of central objects by adding inline getters to get from one object to another. b=208190 r=roc sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@143940 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-19 18:16:53 +00:00
dbaron%dbaron.org
906d582953 Make CSSStyleRuleImpl immutable by changing mutation code (including some merging of code between nsDOMCSSAttributeDeclaration and DOMCSSDeclarationImpl) so that it creates a new rule for the modified declaration. Change StyleRuleChanged notification signatures, and change pres shell's handling of style rule change, addition, and removal to just do reresolution. Remove fine-grained ways of clearing style data. Change PeekStyleData so it doesn't do more work than it needs to, and can be relied on not to access rules that no longer match any content. b=188803 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@143831 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-18 01:59:57 +00:00
alecf%flett.org
71e5d724e5 fix for bug 209220 - now that i18n APIs take ASCII charset names, update consumers to avoid excess conversions.. which usually means storing charset names as ASCII and updating a few other APIs
r=jkeiser, sr=jst and some great comments from jshin@mailaps.org


git-svn-id: svn://10.0.0.236/trunk@143800 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-17 16:40:34 +00:00
bzbarsky%mit.edu
bd3093aabb Use the cached IOService pointer when loading background images. Bug 123401,
r=dougt, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@143711 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-14 18:49:28 +00:00
caillon%returnzero.com
0a6d1ae509 Bug 209087
Content interface out-parameters should use ptr-to-ptrs instead of ref-to-ptrs and some small deCOMtamination.
r+sr=jst@netscape.com


git-svn-id: svn://10.0.0.236/trunk@143683 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-13 20:10:01 +00:00
alecf%flett.org
1c89787dc0 fix for bug 206379:
- combine nsICharsetConverterManager2 and nsICharsetConverterManager
- get rid of nsIAtom in most of the methods
- provide versions of getUnicodeDecoder/Encoder which don't do alias resolution
- change all charset types to ASCII strings
- clean up some other i18n APIs which could be simplified
- fix all consumers of all changed i18n interfaces
r=jshin, smontagu
rs=sfraser


git-svn-id: svn://10.0.0.236/trunk@143589 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-11 18:16:03 +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
dbaron%dbaron.org
14904b0f8b Remove some code left over from old native form controls. b=205575 r+sr=roc a=asa
git-svn-id: svn://10.0.0.236/trunk@142464 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-14 22:36:33 +00:00
bzbarsky%mit.edu
25b77232c7 Fix crash on closing windows that are in the middle of loading standalone
images.  Bug 202895, r=bryner, sr=jst, a=asa


git-svn-id: svn://10.0.0.236/trunk@141771 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-24 22:44:48 +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
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
dbaron%dbaron.org
896d468ce7 Replace the broken (since it can return destroyed data) ResolveStyleContextAndGetStyleData with GetXBLBindingURL. b=193847 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@138299 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-23 17:20:15 +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
bryner%netscape.com
6278746fdf Phase 1 of style context deCOMtamination (bug 114713). Remove all dependencies on nsIStyleContext from outside of content and layout. Make nsIFrame::GetStyleData be a non-inline virtual function when called from outside of layout, since the nsStyleContext implementation won't be available to those callers. r=dbaron, sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@136056 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-09 06:49:07 +00:00
dbaron%dbaron.org
a53a959416 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@136009 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 21:07:51 +00:00
roc+%cs.cmu.edu
8293c257e0 Bug 173072. Ensure that after styles are cleared, we reexecute any work that could depend on the cleared style structs, to ensure a later CalcStyleDifference will not ignore a style struct we really depend on. r+sr=kin
git-svn-id: svn://10.0.0.236/trunk@135301 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-14 16:18:57 +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
bzbarsky%mit.edu
f63931169a Fix crash closing prefs. Bug 150769, r=alexsavulov, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@133236 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-07 00:59:25 +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
colin%theblakes.com
254d42cfbb Fix misplaced #include. b=174527, r=caillon, sr=bzbarsky, a=shaver
git-svn-id: svn://10.0.0.236/trunk@132047 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-15 23:40:38 +00:00
rpotts%netscape.com
c3234b594f bug #93015 (r=darin/sr=jst) First patch that cleans up imglib use of LoadFlags and channel attributes...
git-svn-id: svn://10.0.0.236/trunk@129968 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-18 22:08:12 +00:00
mjudge%netscape.com
d412f97810 14835 r=pavlov sr=sfraser alpha blending on images to denote selection.
git-svn-id: svn://10.0.0.236/trunk@129222 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-11 03:03:49 +00:00
dougt%netscape.com
e289284076 166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com
git-svn-id: svn://10.0.0.236/trunk@129050 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 17:13:19 +00:00
jkeiser%netscape.com
6c53305c36 Fix uninitialized variable crash (bug 160656). Patch by ramon_garcia_f@yahoo.com, r=jkeiser@netscape.com, sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@128314 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-28 00:18:27 +00:00