509 Commits

Author SHA1 Message Date
jst%mozilla.jstenback.com
d28978604e Fixing bug 68215. Adding support for the onbeforeunload event. r=peterv@propagandism.org, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@152654 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-11 06:09:51 +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
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
hpradhan%hotpop.com
d2ecf20783 bug 232731 : misc cleanup in printing code
git-svn-id: svn://10.0.0.236/trunk@152139 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-01 12:10:57 +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
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
peterv%propagandism.org
94b69cb574 Miscellaneous cleanup. r/sr=jst.
git-svn-id: svn://10.0.0.236/trunk@151493 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-18 10:45:26 +00:00
bryner%brianryner.com
3d8a7179f8 Improve the way in which nsEvent and its subclasses are initialized. Commonly-used members can now be initialized via an inline constructor, and all other members are initialized to zero. eventStructType is set automatically. This also fixes some cases where an eventStructType was doubling as a message -- NS_TEXT_EVENT is now only used as an eventStructType, with a message of NS_TEXT_TEXT. NS_COMPOSITION_* events get an eventStructType of NS_COMPOSITION_EVENT, and ditto for NS_RECONVERSION_*. NS_DRAGDROP_EVENT is no longer an eventStructType since it is not a unique type of struct. There is also some miscellaneous cleanup to nsDOMEvent. Bug 220228, r=jst, sr=blizzard.
git-svn-id: svn://10.0.0.236/trunk@151191 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-12 08:25:18 +00:00
bryner%brianryner.com
ac2a057898 Revert nsAutoPtr usage here at least until we better understand the bloat. Bug 64116, sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@151170 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-11 09:34:07 +00:00
roc+%cs.cmu.edu
986d8acdaa Bug 225820. Fold nsFrameInnerFrame into nsFrameOuterFrame, rename to nsSubDocumentFrame, and generally clean up this mess. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@151139 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-10 05:36:32 +00:00
roc+%cs.cmu.edu
35c266025d Bug 190735. deCOMtaminate nsIFrame::FirstChild and nsIFrame::GetAdditionalChildListName. r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@151077 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-09 14:20:53 +00:00
bryner%brianryner.com
9dfcd977cb Additional cleanup related to bug 64116. r=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@151039 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-08 19:23:12 +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
timeless%mozdev.org
6e60b330e4 Bug 224018 unused variables gDumpFileNameCnt, gDumpLOFileNameCnt in nsDocumentViewer.cpp
r=jst sr=jst


git-svn-id: svn://10.0.0.236/trunk@148768 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-03 13:17:00 +00:00
timeless%mozdev.org
c9c7dab5e9 MOZ_TIMELINE - Bug 222134
git-svn-id: svn://10.0.0.236/trunk@148306 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-23 10:23:30 +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
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
bryner%brianryner.com
8621b9339d If we're in the middle of printing when window.close() is called, then defer closing the window until printing completes. This avoids tearing down the presentation while the print engine is still using it. Bug 172921, r=jkeiser, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@147348 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-26 21:45:15 +00:00
bzbarsky%mit.edu
c2dacdb070 Make userContent.css come after the prefs sheet in the user sheet list (so that
rules in userContent.css can override prefs).  Bug 215668, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@147251 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-24 19:03:06 +00:00
bryner%brianryner.com
978d05c917 Fix build on gcc 3.4 by removing extra semicolons (bug 218551). r/sr=dbaron, a=brendan.
git-svn-id: svn://10.0.0.236/trunk@146614 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-07 21:50:21 +00:00
roc+%cs.cmu.edu
c0bc42c584 Bug 190735. nsIFrame deCOMtamination, r+rs=dbaron
git-svn-id: svn://10.0.0.236/trunk@145645 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-06 03:07:12 +00:00
jaggernaut%netscape.com
40f122a577 Bug 25886: Get rid of a bunch of unused NS_DEFINE_IID, NS_DEFINE_CID. r=caillon, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@144991 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-20 07:40:43 +00:00
rbs%maths.uq.edu.au
d1abafb525 Stop animated images with Esc key or Stop button, b=70030, r=akkana, sr=jst
git-svn-id: svn://10.0.0.236/trunk@144726 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-11 20:19:34 +00:00
caillon%returnzero.com
99def9ca1c Fixing member re-ordering warnings. r+sr=jst@netscape.com; No bug.
git-svn-id: svn://10.0.0.236/trunk@144453 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-03 23:33:36 +00:00
caillon%returnzero.com
1c1e0c7bb4 Bug 209852. Remove |dont_QueryInterface|.
r=dbaron, sr=jag


git-svn-id: svn://10.0.0.236/trunk@144011 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-21 00:15:41 +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
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
jaggernaut%netscape.com
fd04e5bb85 Bug 203960: Make bookmark groups replace existing tabs instead of appending. r=jkeiser, varga, adamlock, sr=jst, hewitt
git-svn-id: svn://10.0.0.236/trunk@143070 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-30 00:21:01 +00:00
sfraser%netscape.com
cbc443676c Fix bug 196704: implement commands to get the selected text, and insert text, to allow for embedders (like Camino) to use them, e.g. for the Mac OS X services menu. Also fix image copy. r=brade, sr=kin.
git-svn-id: svn://10.0.0.236/trunk@141607 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-22 18:11:12 +00:00
bryner%netscape.com
0c66a2052e Make --disable-xul work (bug 69995). We build enough XUL to support
scrollbars unconditionally, but can now leave out heavyweight widgets like
grid, listbox, and tree.  r=bzbarsky, sr=alecf.


git-svn-id: svn://10.0.0.236/trunk@141016 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 00:56:27 +00:00
bzbarsky%mit.edu
051ffb30eb No need for two separate document viewer constructors. Bug 158804, r=peterv, sr=jst
git-svn-id: svn://10.0.0.236/trunk@140720 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-04 22:37:52 +00:00
heikki%netscape.com
40aa3e1b20 Bug 200382, reduce content's dependencies on webshell, r=adamlock, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@140645 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-03 18:57:33 +00:00
jst%netscape.com
08e9d026e0 Fixing bug 124412. Making nsXULDocument inherit nsXMLDocument to avoid the need to duplicate a large amount of code in nsXULDocument. Also removing nsMarkupDocument and nsIDOMEventCapturer that are no longer needed. Changing the inheritance of nsIDOMXULDocument to avoid ~60 or so forwarding methods, and doing a *lot* of code cleanup. r=bugmail@sicking.cc, sr=peterv@netscape.com
git-svn-id: svn://10.0.0.236/trunk@140344 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-26 07:41:30 +00:00
peterlubczynski%netscape.com
48cef544f1 Creating nsMediaDocument/nsPluginDocument to make full-page
plugins scriptable, bug 90256 r=jkeiser sr=jst


git-svn-id: svn://10.0.0.236/trunk@140032 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-22 03:20:23 +00:00
aaronl%netscape.com
60b1c05bf1 Bug 194968. Use content id properly to expose whether window is content vs. UI. r/sr=roc+moz
git-svn-id: svn://10.0.0.236/trunk@139051 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-06 23:07:00 +00:00
jst%netscape.com
43d9987e62 Fixing bug 182700. Make 'Copy Image Location' work for <input type=image> elements. r=timeless@myrealbox.com, sr=peterv@netscape.com
git-svn-id: svn://10.0.0.236/trunk@138575 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-27 01:38:20 +00:00
timeless%mozdev.org
071ea39d1a Bug 193824 Remove unused globals from nsDocumentViewer.cpp
r=smontagu sr=alecf


git-svn-id: svn://10.0.0.236/trunk@138286 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-23 07:03:09 +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
roc+%cs.cmu.edu
830bdf5a00 Bug 180921. Make nsDocumentViewer::Show call nsDocumentViewer::MakeWindow instead of duplicating code. Fixes a bug where subdoc view linkage was added to MakeWindow but not Show. r=jkeiser,sr=jst
git-svn-id: svn://10.0.0.236/trunk@138234 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 21:48:39 +00:00
dbaron%dbaron.org
57b1c2e02a Fix crash (and refix other crashes in a cleaner way) by making UndisplayedMap own references to content nodes, just like frames do. b=161304 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@136706 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-21 00:47:14 +00:00
cbiesinger%web.de
8b51a21663 remove ifdef IBMBIDI in content/, r+sr=roc+moz, bug 89203
git-svn-id: svn://10.0.0.236/trunk@136507 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-17 12:09:23 +00:00
smontagu%netscape.com
3b982b6a24 Make XUL documents print. Bug 137526, Author=Roland.Mainz@informatik.med.uni-giessen.de, r=smontagu, sr=sfraser.
git-svn-id: svn://10.0.0.236/trunk@136036 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-09 00:22:16 +00:00
dbaron%dbaron.org
30879d2c9e Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it's no longer needed. r=timeless sr=jag
git-svn-id: svn://10.0.0.236/trunk@135991 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 19:24:38 +00:00
peterv%netscape.com
3a3c75b9f7 Fix for bug 183999 (Modernize content). r=caillon, sr=bz.
git-svn-id: svn://10.0.0.236/trunk@135128 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-11 14:24:49 +00:00
caillon%returnzero.com
8eb8abf86c 182954 - Convert content to use nsIPrefService, nsIPrefBranch, and friends.
r=sicking sr=peterv


git-svn-id: svn://10.0.0.236/trunk@135071 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-10 23:44:03 +00:00
bzbarsky%mit.edu
c3731640d3 Make the CSSLoader correctly order stylesheets as they are dynamically added
and removed via the DOM.  Clean up the nsIDocument stylesheet accessors.  Clean
up nsIDocumentObserver stylesheet stuff a bit.  Make style sheets visible in
the CSSOM (though not completely accessible) from the moment the load is kicked
off.  Make us have sheet objects that can be manipulated via CSSOM even for
failed loads. Bug 107567, bug 47734, bug 57225, bug 178407.
r=sicking,  sr=peterv.


git-svn-id: svn://10.0.0.236/trunk@134667 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-03 05:48:14 +00:00
peterv%netscape.com
d103a96ada Fix for bug 176610 (Make nsNameSpaceManager a service). r=caillon, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@134587 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-29 23:44:07 +00:00
rods%netscape.com
4215ce8014 Make it so SetDocument doesn't get set when returning from PP
Bug 176201 r=dcone sr=jst


git-svn-id: svn://10.0.0.236/trunk@134041 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-18 14:34:09 +00:00
rods%netscape.com
f94983c561 This patch is a bit different, instead of having the DocShell figure out whether it or one of its children are printing or PP, it gets told whether it is, and it caches that value.
This was done so navigation is as fast as possible, meaning it doesn't have to figure it out each time.
The patch:
1) Adds a method to the nsIContentViewerContainer to tell it whether we are printing or in PP.
2) Fix up the DV and PrintEngine, the DV SetIsXXXX didn't need to set any
values in the PrintEngine, but now instead makes calls and sets the values in DocShells
3) Cleaned up and add a macro to nsIDocumentViewerPrint
Bug 171161 r=dcone sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@131423 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-08 13:17:56 +00:00