7665 Commits

Author SHA1 Message Date
varga%netscape.com
3cda5b98f6 Fix for bug 195481. Automatic image resize: Image status should be reflected in document title bar and Tab marker.
r=bz, sr=jag


git-svn-id: svn://10.0.0.236/trunk@141536 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-21 22:45:28 +00:00
bzbarsky%mit.edu
9089509b13 Make sure to escape quotes properly in attribute values when serializing. Bug
197342, patch by brofield@jellycan.com (Brodie Thiesfield), r=bzbarsky, sr=heikki


git-svn-id: svn://10.0.0.236/trunk@141505 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-21 04:15:58 +00:00
bryner%netscape.com
18e2476790 attempting to fix irix bustage by removing ^M
git-svn-id: svn://10.0.0.236/trunk@141466 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-20 03:14:09 +00:00
leon.zhang%sun.com
d7f40ef4bd Bug 199412: optimize nsTypedSelection::ScrollIntoView r/sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@141464 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-20 01:03:40 +00:00
bzbarsky%mit.edu
6f3d8509a0 Move document.lastModified up onto nsIDOMNSDocument; refactor the
RetrieveRelevantHeaders stuff a bit.  Bug 192366, patch by Pratik
<psolanki@netscape.net>, r=bzbarsky, sr=jst


git-svn-id: svn://10.0.0.236/trunk@141452 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-19 16:53:44 +00:00
varga%netscape.com
0e6309b161 Fix for bug 199178. Bookmarks folder in personal toolbar is empty
r=hyatt, sr=bryner


git-svn-id: svn://10.0.0.236/trunk@141445 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-19 08:40:32 +00:00
bryner%netscape.com
e95f9f1423 Fix a memory leak my last XBL checkin introduced. Removed unused nsIXBLBindingAttachedHandler and related code. Stopped using XPCOM interfaces for classes internal to nsXBLPrototypeBinding.cpp. r=jkeiser, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@141443 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-19 06:32:08 +00:00
stephend%netscape.com
4c2d7f2b5d Bug 202346. Crash in nsImageLoadingContent::FireEvent global method. If there is no document, stop firing events. Patch by Boris Zbarsky <bzbarsky@mit.edu> r+sr=Johnny Stenback <jst@netscape.com>
git-svn-id: svn://10.0.0.236/trunk@141440 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-19 04:27:55 +00:00
sfraser%netscape.com
be4557e3b3 Fix bug 200745 -- we were using the wrong event coords to start a drag. Fix the ESM to use the coords of the mouse down, not the mouse move, so that dragging small objects is easier. r=jkeiser, sr=bryner.
git-svn-id: svn://10.0.0.236/trunk@141426 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-19 00:46:28 +00:00
jst%netscape.com
4132f747e7 Fixing bug 111514. In an XHTML document served as application/xhtml+xml, |document| is not an HTML document object, but an XML document object. r=bugmail@sicking.cc, sr=peterv@netscape.com
git-svn-id: svn://10.0.0.236/trunk@141424 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-19 00:28:09 +00:00
sfraser%netscape.com
ba0fb4a0dc Bug 193053: drag and drop-related changes to allow for the dragging and copying of image bits, and to allow dragging into the file system. r=pinkerton/brade, sr=bryner/bz.
git-svn-id: svn://10.0.0.236/trunk@141409 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-18 20:20:04 +00:00
ere%atp.fi
618f3f01cd Bug 90337: load chrome xbl bindings synchronously.
r=hyatt
sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@141369 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-18 08:44:25 +00:00
bzbarsky%mit.edu
2869a0b14d Make sure to always add base tag info before setting any other attributes. Bug
201998, r=jkeiser, sr=jst


git-svn-id: svn://10.0.0.236/trunk@141344 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-17 23:15:21 +00:00
mjudge%netscape.com
c9cb3501f0 163235 if we are collapsing selection to the beginning of the extended selection, set the "hint" to the right as a tie breaker. the opposite is true for collapsing forwards in the document. r=jfrancis sr=fraser.
git-svn-id: svn://10.0.0.236/trunk@141340 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-17 21:25:03 +00:00
mjudge%netscape.com
6c52e68d5d 191498 r=danm sr=fraser fixes caret jumping around containers. also fixes 192167
git-svn-id: svn://10.0.0.236/trunk@141338 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-17 21:08:44 +00:00
cbiesinger%web.de
b20f4e6f04 191346 patch by Roland.Mainz@informatik.med.uni-giessen.de r=jkeiser sr=roc+moz RFE: "No printers found" when Xprint not installed should be "Xprint not installed" / there should be only one print error dialog for "no printers found" instead of two
git-svn-id: svn://10.0.0.236/trunk@141332 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-17 20:17:01 +00:00
brade%netscape.com
65b6ed02f9 remove deprecated interfaces (bug 197121)
git-svn-id: svn://10.0.0.236/trunk@141329 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-17 19:42:27 +00:00
heikki%netscape.com
543e87012a Bug 201131, provide an alternative, monospaced pretty print style, r=sicking, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@141324 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-17 18:41:09 +00:00
brade%netscape.com
a74566cb5d removing printf from previous checkin
git-svn-id: svn://10.0.0.236/trunk@141314 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-17 14:24:55 +00:00
brade%netscape.com
d96a69dbe3 browser changes for drag/drop/copy/paste hooks (bug 197121) r=pinkerton sr=smfr
git-svn-id: svn://10.0.0.236/trunk@141308 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-17 13:23:34 +00:00
brade%netscape.com
0945e424dd removing old file; replaced with widget/public/nsIClipboardDragDropHooks.idl
git-svn-id: svn://10.0.0.236/trunk@141307 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-17 13:22:40 +00:00
brade%netscape.com
32116c1416 changes for drag/drop/copy/paste hooks (bug 197121) r=pinkerton sr=smfr
git-svn-id: svn://10.0.0.236/trunk@141305 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-17 13:21:15 +00:00
brade%netscape.com
8c907bfd4f copy hooks (bug 197121) r=jfrancis, sr=smfr
git-svn-id: svn://10.0.0.236/trunk@141303 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-17 13:16:36 +00:00
bryner%netscape.com
2280548d8b Fixing windows orange -- null-terminate the AttributeImpactArray or the while loop can keep going forever.
git-svn-id: svn://10.0.0.236/trunk@141288 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-17 02:50:58 +00:00
alecf%netscape.com
b07ac931f4 ok, reland bug 174802 after addressing jst's comments - gotta remember to check in from the right tree!
change to a table-based GetMappedAttributeImpact for footprint and performance wins
r=dbaron, sr=jst


git-svn-id: svn://10.0.0.236/trunk@141259 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-16 20:54:20 +00:00
alecf%netscape.com
78a23bbe29 argh, back myself out - I'm crashing on startup now! :(
git-svn-id: svn://10.0.0.236/trunk@141250 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-16 18:55:56 +00:00
alecf%netscape.com
78faf6f7fa fix for bug 174802 - simplify GetMappedAttributeImpact, buy making a simple attribute->reflow style map and providing a single helper which walks the map
r=dbaron,sr=jst


git-svn-id: svn://10.0.0.236/trunk@141248 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-16 18:11:45 +00:00
bzbarsky%mit.edu
5ee12c5ec0 Images that replace themselves with alt text should still respond to src
changes.  Bug 198435, r=roc+moz, sr=jst


git-svn-id: svn://10.0.0.236/trunk@141222 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-16 01:53:48 +00:00
danm%netscape.com
85238206aa new popupblocked domevent. also bring the world of ns_assertion home to DOMEvent's accessors and pseudo-subclass Init[...] methods. bug 199705 r=jaggernaut,jst
git-svn-id: svn://10.0.0.236/trunk@141210 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-16 00:00:50 +00:00
danm%netscape.com
2b68000bf3 new popupblocked domevent. bug 199705 r=jaggernaut,jst
git-svn-id: svn://10.0.0.236/trunk@141209 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-16 00:00:46 +00:00
bryner%netscape.com
2231a5f1c5 More XBL deCOMtamination (bug 194834). This checkin removes nsIXBLInsertionPoint and nsIAnonymousContentList. r=jkeiser, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@141195 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-15 20:35:07 +00:00
heikki%netscape.com
ef316f5e01 Bug 186554 XMLSerializer does not serialize documentElement correctly. Extended document encoder API to make it possible to seriaalize a node. r=jfrancis, sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@141188 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-15 18:13:13 +00:00
roc+%cs.cmu.edu
8bd815ab90 Bug 199024. The old way of detecting whether a scroll happened or not in DoWheelScroll doesn't work with smooth scrolling. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@141175 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-15 13:17:36 +00:00
bryner%netscape.com
25088eda3b Oops, meant to check this in as part of my last checkin. nsIBookmarksService.h is in the bookmarks module for phoenix. Fixing bustage.
git-svn-id: svn://10.0.0.236/trunk@141166 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-15 07:34:15 +00:00
dbaron%dbaron.org
15e0345ab1 Remove extraneous |inline| to fix bustage.
git-svn-id: svn://10.0.0.236/trunk@141160 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-15 04:19:27 +00:00
dbaron%dbaron.org
20478cc051 Split nsCSSDeclaration.h and .cpp into separate files for the structs (nsCSSStruct.h and .cpp) and nsCSSDeclaration. b=201681
git-svn-id: svn://10.0.0.236/trunk@141155 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-15 03:07:34 +00:00
bryner%netscape.com
d151aa5a06 fixing _more_ phoenix bustage - different REQUIRES for phoenix
git-svn-id: svn://10.0.0.236/trunk@141148 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-15 02:06:55 +00:00
bzbarsky%mit.edu
99037d7097 Make CreateContextualFragment know what document the fragment is destined for.
Fixes some issues with images and innerHTML.  Bugs 198486, 198989, 201865.
r=jfrancis, sr=jst


git-svn-id: svn://10.0.0.236/trunk@141144 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-15 01:09:09 +00:00
jshin%mailaps.org
b32399e610 bug 198598 Update the window title bar and doc. charset for nsMediaDocument
so that save/save as works correctly for non-8859-1 string. rename
ImageDocument.properties to MediaDocument.properties and move to
content/html/document/src. (r=cbiesinger for an earlier patch, sr=bzbarsky)


git-svn-id: svn://10.0.0.236/trunk@141073 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-13 00:40:26 +00:00
sfraser%netscape.com
a5673a050d Part of fix for bug 201400. r=aaronl, sr=me.
git-svn-id: svn://10.0.0.236/trunk@141050 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-12 03:12:59 +00:00
sfraser%netscape.com
9851fa57a1 Fix for bug 201400: move the "accessibility.browsewithcaret" pref observer to the nsEventStateManager, to remove it from the DOMWindowController. Patch by brade/sfraser, r=aaronl, sr=sfraser.
git-svn-id: svn://10.0.0.236/trunk@141048 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-12 03:03:27 +00:00
brendan%mozilla.org
271e886eb3 Reduce seeks outside the FastLoad file's underlying stream buffer (195010,
r=ben, sr=bryner).

- Pass null scope objects into nsIScriptContext::Compile{EventHandler,Script}
when precompiling for brutal sharing.  The JS engine does not need a non-null
object parameter for static scope.  That parameter can be non-null only if it
helps the compiler "pre-bind" functions to the same scope object that they'll
be parented by when executing, but with brutal sharing, functions are
precompiled once and executed against many different scope objects.

- A problem in XUL FastLoad was that it would serialize master .xul document
out-of-line scripts (those included via script src= from non-overlay, "master"
.xul docs) far from the place in the FastLoad file where XUL prototype script
info was serialized for the <script src=> tag itself.  I fixed that so that,
unless the out-of-line script was previously serialized (by a different src=
reference from another .xul file), the OOL script data immediately follows the
proto-script info in the FastLoad file.

This required adding a SerializeOutOfLine method to nsXULPrototypeScript, which
restores symmetry by matching the existing DeserializeOutOfLine(Script) (note:
I dropped the redundant "Script" from the end of the latter method's name.  We
need SerializeOutOfLine to handle overlay OOL scripts.	They are serialized by
nsXULDocument::OnStreamComplete, because that code knows the difference between
an overlay and a master doc.  This removes all trace of FastLoad writing from
nsXULPrototypeScript::Compile -- FastLoad stuff didn't belong there, not only
because we now want to write master OOL scripts later, when walking the master
XUL prototype doc's element tree, but also for modularity reasons.  The caller
knows about FastLoad, nsXULPrototypeScript::Compile does just what its name
implies.

There are 132 seeks with the patch, only 49 of which dump the underlying file
stream's buffer, vs. 133 seeks without the patch, 87 of which dump the buffer.

- Nit-picked some comments to fit in 80 columns, and made other cosmetic fixes.

- Implicated the nsXULDocument::mIsWritingFastLoad flag from the useXULCache
"is the XUL cache enabled?" flag, so other places that test mIsWritingFastLoad
don't have to query whether the cache is enabled.

- Added METERING synchronous meter-dumping to /tmp/bufstats, only ifdef
DEBUG_brendan, in netwerk/base/src/nsBufferedStreams.cpp.

- Added the deferred seek optimization from the first patch in bug 195010 to
nsFastLoadFile.cpp.

- Fixed nsFastLoadFileReader so it overrides readSegments as well as read.
This catches up with the interface extension made to nsIInputStream to add
readSegments.  The nsFastLoadFileReader extends nsBinaryInputStream, which is
a concrete class, and overrides Read in order to snoop on *all* bytes read.
It does this in order to demultiplex documents interleaved when the FastLoad
file was written.

But since the readSegments move into nsIInputStream.idl, certain primitives
in nsBinaryStream.cpp, e.g., nsBinaryInputStream::ReadCString, have used
ReadSegments, not Read, to consume parts of the underlying stream (to read
the C string's chars, in that example), and the FastLoad file implementation
has not accounted for those bytes.

- Added a new method to nsIFastLoadFileControl and its impls: hasMuxedDocument.
 This is needed when serializing master XUL doc OOL scripts, because we must
not serialize twice, and any OOL script that other XUL docs can include via
script src= could already be in the FastLoad mux.

/be


git-svn-id: svn://10.0.0.236/trunk@141047 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-12 01:34:11 +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
dbaron%dbaron.org
10f629714d Remove lines that do nothing except leak. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@141007 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-10 23:26:36 +00:00
sfraser%netscape.com
561332ed47 Clean up nsContentAreaDragDrop::BuildDragData to fix dragging of unselected elements, dragging of <area> elements, and to prepare for putting native image data into drags. Part of changes in 193053, r=pinkerton, sr=kin.
git-svn-id: svn://10.0.0.236/trunk@141004 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-10 21:21:15 +00:00
sfraser%netscape.com
4a0df27c9c Fix bug 201257 -- clean up use of nsIControllerCommandManager by editor:
Renaming nsIControllerCommandManager to nsIControllerCommandTable to reduce confusion.
Moving the immutability flag from the nsBaseCommandController to the nsControllerCommandTable.
Renaming the 'refcon' on nsIControllerContext to 'context', and giving nsIControllerContext an Init() method that optionally takes a command table.
Fixing the editor and composer module code to create pre-filled nsIControllerCommandTables as services, and the controller constructors to create singleton command tables with do_GetService.
r=brade, sr=alecf.


git-svn-id: svn://10.0.0.236/trunk@140988 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-10 18:44:03 +00:00
dbaron%dbaron.org
ad3dfeb1ed Two separate directories create a content.xpt file. b=201323 r=seawood sr=jst
git-svn-id: svn://10.0.0.236/trunk@140927 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-09 21:16:39 +00:00
roc+%cs.cmu.edu
6f4d9821e6 Bug 201299. Make lazy scrollbars more selective to avoid XUL tree and listbox problems. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@140907 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-09 11:17:42 +00:00
bzbarsky%mit.edu
7812a1f039 Some random code cleanup:
1)  Make SetContentSink and SetParserFilter not claim to return stuff
2)  Clean up nsIParser to use NS_IMETHOD_() where needed.  Sync up with nsParser
3)  Removed some never-used code

Bug 40149, r=harishd, sr=jst


git-svn-id: svn://10.0.0.236/trunk@140868 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-08 21:23:34 +00:00
roc+%cs.cmu.edu
d4ac9a5795 Bug 126263. Whack comboboxes/listboxes to use Gfx scrollbars. Also, make scrollbars attach their XBL content only when they become visible, to avoid pageload hit. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@140858 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-08 20:50:57 +00:00