When we parse a message, we emitt the main message headers as well the headers
of embedded messages. We must call nsIMsgMailNewsUrl::SetMimeHeaders only for
the main headers.
R=sspitzer, SR=bienvenu, A=chofmann
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@133096 18797224-902f-48f8-a5cc-f745e15eee43
GetACPString inside CreateGlobalDevModeAndInit, it is always passed in correctly.
We could convert the name inside CreateGlobalDevModeAndInit, but all the
platform calls require a LPTSTR, so this is the best way.
Bug 167128 sr=blizzard r=dcone a=rjesup
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@133030 18797224-902f-48f8-a5cc-f745e15eee43
fixes bug 175495 "Password Manager reprompts whether or not to save passwords
it already has stored" r=morse sr=dveditz a=asa ADT+
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@132766 18797224-902f-48f8-a5cc-f745e15eee43
JS stack with principal informtaion for the security manager.
r=dveditz, sr=jst, a=chofmann, buckland
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@132680 18797224-902f-48f8-a5cc-f745e15eee43
- Place right floaters at the unconstrained right edge during an unconstrained reflow. This ensures that the floater will be repositioned when the constrained reflow comes around.
- Fixed |if| expression that was used to detect whether or not we were trying to do an unconstrained reflow.
r=karnaze@netscape.comsr=dbaron@fas.harvard.edua=chofmann@netscape.comadt=buckland@netscape.com
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@132407 18797224-902f-48f8-a5cc-f745e15eee43
I just copy every from that file to here. It is basically the same thing as last checkin.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@132287 18797224-902f-48f8-a5cc-f745e15eee43
memory cache entries being evicted incorrectly (images not loaded on Back
with a disabled disk cache); with loadflags (wrong document channel
assertions), and avoiding useless progress notifications for images loaded
by imglib (they belong to the proxy loader). Subsumes bug 171053, bug
129795, and bug 150142. r=rpotts, sr=darin a=brendan/asa/shaver (171053
is r=jst, sr=darin, a=rjesup)
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@132163 18797224-902f-48f8-a5cc-f745e15eee43
b=166448; r=harishd; sr=dveditz
*** NOT PART OF BUILD YET ***
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@131359 18797224-902f-48f8-a5cc-f745e15eee43
- Need to create a caret before calling ImmSetCandidateWindow()
this is a work-around of a bug with MS PinYin.
- Caret is created when we receive StartComposition()
and is destroyed when we receive EndComposition()
- impact only in WinXP with MS PinYin
r=shanjian sr=jst a=chofmann/dveditz
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@130410 18797224-902f-48f8-a5cc-f745e15eee43
don't collect incoming mail by default. r/sr=bienvenu, a=putterman for 1.0 branch.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@130368 18797224-902f-48f8-a5cc-f745e15eee43
line end when saved or viewed." r=dougt sr=bzbarsky a=rjesup adt+
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@130260 18797224-902f-48f8-a5cc-f745e15eee43
for bug 143706 by David Baron)
sr= kin r= alexsavulov a= rjesup. the fix was requested by adt.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@130209 18797224-902f-48f8-a5cc-f745e15eee43
post doc populate its charset to child frame to disable autodetection.
r=jkeiser, jebak, sr=jst.
a=valeski, adt, a=chofmann
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@130167 18797224-902f-48f8-a5cc-f745e15eee43
which is generated after the text is converted from Uincode,
bug 168041, r=pink, sr=sfraser, a=rjesup@wgate.com, edt.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@129804 18797224-902f-48f8-a5cc-f745e15eee43
type used for HTTP connections" r=dougt sr=rpotts a=rjesup
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@129416 18797224-902f-48f8-a5cc-f745e15eee43
patch by joshua.xia@sun.com, r/sr=blizzard a=rjesup@wgate.com for MOZILLA_1_0_BRANCH
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@129314 18797224-902f-48f8-a5cc-f745e15eee43
change name from aIsBreakable to aCanBreakBefore,
apply RevertSpaceToNBSP in all situations.
make a word to be breakable before if it is not the first word.
r=rbs, sr=bzbarsky, a=edt, chofmann
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@129292 18797224-902f-48f8-a5cc-f745e15eee43
mozilla/layout/base/src/nsSpaceManager.cpp
mozilla/layout/base/src/nsSpaceManager.h
- Implemented nsSpaceManager methods PushState() and PopState().
mozilla/layout/html/base/src/nsBlockReflowContext.cpp
- Modified nsBlockReflowContext::DoReflowBlock() to
call PushState() and PopState() to remove any
floaters that may have been added to the SpaceManager
during the intermediate "unconstrained" Reflow()
call, used to calculate the max block width. This
allows the Reflow() call that immediately follows
it to properly place the floaters.
r=waterson@netscape.comsr=dbaron@fas.harvard.edua=rjesup@wgate.com (on behalf of drivers@mozilla.org)
a=chofmann@netscape.com (on behalf of edt@netscape.com)
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@129277 18797224-902f-48f8-a5cc-f745e15eee43
assertions and cleanup JSProtocolhandler to work with deferred
handling of BaseURIs. r=bzbarsky, sr=darin, a=brendan (missing file
from previous checkin)
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@128837 18797224-902f-48f8-a5cc-f745e15eee43
assertions and cleanup JSProtocolhandler to work with deferred
handling of BaseURIs. r=bzbarsky, sr=darin, a=brendan
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@128836 18797224-902f-48f8-a5cc-f745e15eee43
and bug 163225 [success or failure of ExtractScheme is not enough to
decide if a url is absolute or relative] this two patches add backwards
compatibility support for deprecated relative urls like http:file or
http:/file; r=bbaetz, sr=darin, a=rjesup
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@128579 18797224-902f-48f8-a5cc-f745e15eee43
* copy from Mozilla, added fallback to try non system default scripts
* copy to Mozilla, check 'styl' and if available use that script instead of
using the system's default
bug 108029, r=pinkerton, sr=sfraser, a=chofmann.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@128395 18797224-902f-48f8-a5cc-f745e15eee43
p=naoki, r=ftang, sr=bzbarsky
a=adt, chofmann
This checkin also contains change in 161174.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@128197 18797224-902f-48f8-a5cc-f745e15eee43
if the previous charset is from autodetection.
Add PrevDocCharset field and use it for POST document charset resolution.
r=ftang, darin sr=jst, a=adt, chofman
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@127752 18797224-902f-48f8-a5cc-f745e15eee43
fact that key doesn't exist when going to delete it. Otherwise, error could lead to installer
aborting when it should just treat the delete as a noop. a=valeski, r=hewitt, sr=dveditz,
caffeine=pepsi.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@127663 18797224-902f-48f8-a5cc-f745e15eee43
Let key and IME message have the same priority so that they can
be processed in right order.
p=shotaro , r =shanjian, sr=kin a=Randell.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@127290 18797224-902f-48f8-a5cc-f745e15eee43
Bug 140234: CJK auto detector detects wrong.
Only impact if we have CJK detector on. Checking in for shanjian
/r=yokoyama /sr=jst, /adt=scott, /moz1.0+=valeski
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@126923 18797224-902f-48f8-a5cc-f745e15eee43
sorting per js engine includes alphabetically to match js engine prevailing style
rs=brendan
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@126842 18797224-902f-48f8-a5cc-f745e15eee43
this fix disables the prompt before loading images option.
patch by waterson r=morse sr=alecf a=jesup
bug 146513 is filed to track a replacement.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@126794 18797224-902f-48f8-a5cc-f745e15eee43
check if the joined 2 pieces is breakable in between before moving to 2nd piece.
r=kin, sr=rbs, a=adt, chofman
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@126526 18797224-902f-48f8-a5cc-f745e15eee43
sr=rpotts, r=jst, a=rjesup@wgate.com,jaime@netscape.com
make sure we always post new reflow events to the topmost queue, and don't skip creating new reflow events just because we happen to have one an elder queue.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@126184 18797224-902f-48f8-a5cc-f745e15eee43
sr=jst, r=roc+mozilla@cs.cmu.edu, a=rjesup@wgate.com,jaime@netscape.com
make sure we always post new invalidate events to the topmost queue, and don't skip creating new reflow events just because we happen to have one an elder queue.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@126183 18797224-902f-48f8-a5cc-f745e15eee43
most parts are r=bz sr=jst. other parts r=peterv/jst/mstoltz sr=bz.
a=rjesup adt=jaimejr
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@126176 18797224-902f-48f8-a5cc-f745e15eee43
Page Info's label-control association is broken (should be by id).
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@126131 18797224-902f-48f8-a5cc-f745e15eee43
bug=90008 r=jkeiser sr=bzbarsky a=rjesup@wgate.com
Description: Just disable these two buttons on download dialog when we are on Unix
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@126105 18797224-902f-48f8-a5cc-f745e15eee43
crash trashes user directory, requires new profile
avoid BOM at iconv() for Solaris platform
patch from jk@tools.de
a=chofmann,r=Roland.Mainz@informatik.med.uni-giessen.de,sr=darin
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@126037 18797224-902f-48f8-a5cc-f745e15eee43
Removed |!aReflowState.path->mReflowCommand| check from |if| condition for the first block that attempts to incrementally reflow the block's absolute children.
This was preventing us from properly reflowing an absolute positioned child or one its children when the current reflow path tree contained both a reflow command targeted at the block and one targeted at the aboslutely positioned child or one of its children. This check shouldn't be necessary since nsAbsoluteContainingBlock::IncrementalReflow() does the necessary checks to see if it really should reflow any of the absolute children.
r=karnaze@netscape.com,waterson@netscape.comsr=dbaron@fas.harvard.edua=rjesup@wgate.com
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@125985 18797224-902f-48f8-a5cc-f745e15eee43
Navigator preferences leave blank space where "make default browser" would be
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@125902 18797224-902f-48f8-a5cc-f745e15eee43
Update installed-chrome.txt
to support marquee for embedder
/r=chak, adam, /a=jud
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@125872 18797224-902f-48f8-a5cc-f745e15eee43
".exe" all the time to things on Windows. patch by me and
jruderman@hmc.edu, r=law, sr=jag, a=rjesup
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@125823 18797224-902f-48f8-a5cc-f745e15eee43
supporting marquee tag.
few new files are added and makefile.xxx are modified.
/r=timeless, dveditz /sr=jst, /a=jaime
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@125676 18797224-902f-48f8-a5cc-f745e15eee43
fix a misuse of parenthesis
p= Andrew Schultz r=bstell, sr=rbs, a=brendan
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@125522 18797224-902f-48f8-a5cc-f745e15eee43
This causes the SOAP HTTPS transport object to implement the proper interfaces,
as HTTP does, so that it will work. Very minimal risk because change is to an
object that was otherwise broken and only used by HTTPS. This permits users of
SOAP to use secure https transport for e-commerce or other transactions that
need to be secure. Has been checked in on the trunk for a while and verified.
This is only even loaded as paert of the xmlextras module.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@125426 18797224-902f-48f8-a5cc-f745e15eee43
"sizeof" of the DEVMODE struct, instead of checking the struct size with dmSize
and the size of the private (device-specific) data with dmDriverExtra. Now it
creates the correct size of memory and copies all the non-private data and private data.
Bug 156318 r=dcone sr=kin,waterson,rpotts a=asa adt=putterman
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@125383 18797224-902f-48f8-a5cc-f745e15eee43
r=wtc, sr=blizzard, a=chofmann
OS/2 only - don't try to escape quotation marks when using DosStartSession
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@125376 18797224-902f-48f8-a5cc-f745e15eee43
r=dougt, sr=blizzard, a=chofmann
OS/2 only - up the number of file handles when starting Moz, and handle specific error with DosCopy
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@125375 18797224-902f-48f8-a5cc-f745e15eee43
r=pedemont, sr=blizzard, a=chofmann
OS/2 only - truncate title bar text to 256 to workaround OS bug
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@125371 18797224-902f-48f8-a5cc-f745e15eee43
r=pedemont, sr=blizzard (platform specific code), a=valeski
OS/2 only - addition to already approved fix for bug that works around a bad computation on 800x600
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@125328 18797224-902f-48f8-a5cc-f745e15eee43
r=pedemont, sr=blizzard (platform specific code), a=valeski
OS/2 only - add a preference to enable trackpoint scrolling by creating invisible scrollbars on all windows
Relanding after bustage
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@125327 18797224-902f-48f8-a5cc-f745e15eee43
unable to load ./libmozpango-thaix.so
modified pango.modules to fix the location of the .so
r=Roland.Mainz@informatik.med.uni-giessen.de
sr=sfraser,a=chofmann
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@125278 18797224-902f-48f8-a5cc-f745e15eee43
tis620-2 is not defined as th language group
added tis620-2 entry as language Thai
r=ftang,sr=sfraser,a=chofmann
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@125277 18797224-902f-48f8-a5cc-f745e15eee43
get or set cookies for URL schemes which do not support the host field.
r=morse, sr=jst, dveditz, a=asa.
Bug 149943 - "pin" hostnames to IP numbers for the duration of a session to
prevent DNS spoofing. Patch by darin, r=dougt, sr=dveditz, a=asa
Bug 154930 - Prevent another DNS spoofing attack by restricting use of
document.domain. r=dveditz, sr=jst, a=valeski
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@125141 18797224-902f-48f8-a5cc-f745e15eee43
Contained referenced to mIsScrollBar which exists in trunk, but not in branch
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@125007 18797224-902f-48f8-a5cc-f745e15eee43
add a way to create custom files for components
WINDOWS ONLY
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@125005 18797224-902f-48f8-a5cc-f745e15eee43
r=pedemont, sr=blizzard (platform specific code), a=valeski
OS/2 only - add a preference to enable trackpoint scrolling by creating invisible scrollbars on windows
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@124987 18797224-902f-48f8-a5cc-f745e15eee43
r=pedemont, sr=blizzard (platform specific code), a=valeski
OS/2 only - don't draw any rectangles if width is 0
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@124986 18797224-902f-48f8-a5cc-f745e15eee43
r=pedemont, sr=blizzard (platform specific code), a=valeski
OS/2 only - don't let Mozilla windows cover up the Warpcenter
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@124985 18797224-902f-48f8-a5cc-f745e15eee43
mozilla. r=dougt,sr=rpotts. Help Windows NT, 2000, and XP dialup a RAS
connection when a network address is unreachable. The controlling pref
is "network.autodial-helper.enabled". Patch by smeredith, all credits
to him :-)
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@124900 18797224-902f-48f8-a5cc-f745e15eee43
of the document (mail msg) is done loading. This is wrong because if the mail
msg has attachments they may not be loaded and then the msgPrintEngine gets
additional notification for when the attachments have started to load and since
it has already started toprint error dialogs appear AND the attachments don't get printed.
The solution here is to cache a pointer to the DOM Window for the msg(s) being
printed. Then as the "stop" notifications come in we can ignore any documents
(which would be the attachments) where the dom window doesn't match the msg's
dom window. Then when they match which is the last notifiaction we can call print.
The notification that comes thru where the docLoader is NULL means the previous
document has completed printing and the engine should print the next msg.
Bug 155430 r=cavin sr=kin/sspitzer adt=putterman a=chofmann
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@124806 18797224-902f-48f8-a5cc-f745e15eee43
The patch allows Administrators to control the migration behavior wrt IMAP and Local Folders files. Today, during migration, we copy all those (IMAP & Local Folders) besides others into the newly created dierctory for the migrated profile. Some external parties have expressed concern over this approach due the large amount of mails they have in 4.x folders and all of those getting copied again wasting the disk space and also making the migration too slow. So, a hidden pref mail.migration.copyMailFiles is introduced (which can be set to false) for those who those interested to share the 4.x IMAP and Local Folders. Please see the bug report for the possible side effects and other discussion points wrt the sharing folders with 4.x. The pref is set to true by default which means we will continue to do the migration the way we have always done.
Patch by henry.jia@sun.com. r=racham, sr=sspitzer, a=chofmann
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@124665 18797224-902f-48f8-a5cc-f745e15eee43
r=dbradley sr=brendan a=chofman
this patch is not identical to the trunk, to compile some blocks of code were moved around
also the trunk has ACQUIRE_DTOA_LOCK() whereas the branch has ACQUIRE_DTOA_LOCK(n).
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@124581 18797224-902f-48f8-a5cc-f745e15eee43
r=pedemont, sr=blizzard, a=valeski
OS/2 only - get NPNULL plugin working on OS/2 - somehow I forgot these files
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@124576 18797224-902f-48f8-a5cc-f745e15eee43
stringwas dependent, extracted bad value for subsequent memory request.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@124522 18797224-902f-48f8-a5cc-f745e15eee43
r=varga sr=kin a=valeski
<grid></grid> with no rows or collumns
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@124521 18797224-902f-48f8-a5cc-f745e15eee43
Cannot type in URL/address/location bar or text boxes - no caret/cursor. (Keyboard locks/freezes up / no input)
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@124485 18797224-902f-48f8-a5cc-f745e15eee43
automatically, but the user sure thinks we do). r=law, sr=jag,
a=chofmann
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@124441 18797224-902f-48f8-a5cc-f745e15eee43
r=pedemont, sr=blizzard, a=valeski
OS/2 only - display Euro using current font, not Unicode font
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@124370 18797224-902f-48f8-a5cc-f745e15eee43
r=cls, a=valeski
OS/2 only - get NPNULL plugin working on OS/2
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@124368 18797224-902f-48f8-a5cc-f745e15eee43
r=pedemont, sr=blizzard, a=valeski
OS/2 only - get NPNULL plugin working on OS/2
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@124367 18797224-902f-48f8-a5cc-f745e15eee43
r=mkaply, sr=blizzard, a=valeski
OS/2 only from jblanco - only set number of copies in one place
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@124362 18797224-902f-48f8-a5cc-f745e15eee43
r=bnesse, sr=jst, a=valeski
OS/2 only - skip over EOF character on JS files in prefs
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@124361 18797224-902f-48f8-a5cc-f745e15eee43
r=jeffreyj@us.ibm.com, sr=blizzard, a=valeski
Take Windows code - keep a handle on window during deletion to prevent crash
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@124360 18797224-902f-48f8-a5cc-f745e15eee43
r=mkaply, sr=jag, a=valeski
Regression in RFind - -1 should be default offset, not 0
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@124355 18797224-902f-48f8-a5cc-f745e15eee43
-fshort-wchar for g++.
Include <stddef.h> instead of <stdlib.h> in wchar_t tests to avoid exit() declar
ation issues with autoconf.
Bug #139211 r=bryner,dbaron a=dbaron
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@124349 18797224-902f-48f8-a5cc-f745e15eee43
Use same modulename for xlib module in Makefile as the code uses.
Bug #144182 r=bryner a=dbaron
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@124347 18797224-902f-48f8-a5cc-f745e15eee43
Thanks to Andrew Schultz <ajschult@eos.ncsu.edu> for the patch.
Bug #57866 r=cls a=valeski
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@124294 18797224-902f-48f8-a5cc-f745e15eee43
Thanks to srilatha@netscape.com for the patch.
r=cls, sr=sspitzer a=dbaron
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@124290 18797224-902f-48f8-a5cc-f745e15eee43
Frequency analysis is only applied to euc clone encoding, and gb18030 is
not one of it. The existence of gb18030 will prevent frequency sampling from
happening. So eliminate gb18030 when considering frequency sampling.
r=ftang, sr=jst a=adt, valeski
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@124252 18797224-902f-48f8-a5cc-f745e15eee43
just copy over the source URL and other relevant fields (to avoid copying event
handlers). r=bzbarsky, sr=jag, a=valeski. Patch by jrgm@netscape.com.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@124219 18797224-902f-48f8-a5cc-f745e15eee43
Don't enter pause dialog if http response indicates an error
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@124160 18797224-902f-48f8-a5cc-f745e15eee43
it is one of our objects before doing the static cast.
Bug 106211 r=pink sr=jst a=dbaron adt=jaime
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@123967 18797224-902f-48f8-a5cc-f745e15eee43
BeginObservingDocument was already called. This means the PresShell is still
registered as an observer of the document and then later can cause a crash when
the document loops thru the observer list.
Bug 152536 r=dcone sr=jst a=jud adt=paw
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@123966 18797224-902f-48f8-a5cc-f745e15eee43
let config.ini control cleanup of previous version reg keys
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@123962 18797224-902f-48f8-a5cc-f745e15eee43
make superseded components invisible in selection lists
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@123961 18797224-902f-48f8-a5cc-f745e15eee43
r=jeffreyj@us.ibm.com, sr=mscott, a=valeski
OS/2 only - support for new mail notification in the OS
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@123917 18797224-902f-48f8-a5cc-f745e15eee43
r=wtc, a=dbaron
OS/2 only - DosWrite is not returning an error when the disk is full.
We can tell the write failed if we did a partial write.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@123911 18797224-902f-48f8-a5cc-f745e15eee43
AMPM order needs to be cared in time format
check the order AM/PM string from strftime()
r=yokoyama,sr=blizzard,a=valeski@netscape.com
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@123864 18797224-902f-48f8-a5cc-f745e15eee43
Stop caching jsdIValues, it doesn't seem to be worth the lookup cost. This has the side effect of plugging the leak, as described in the bug.
also...
* Convert a few raw pointers to nsCOMPtrs
* Fix a bug where removing the last filter did not null out the list head,
causing a crash the next time filters were used.
* Track live jsdStackFrames, so we can invalidate them all when execution
continues. Without this, only the top frame is properly invalidated, and any
other frame accessed after a continue will do Bad Things.
* Add some debugging prints to GetInitAtService, which seems to be failing at
random times.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@123855 18797224-902f-48f8-a5cc-f745e15eee43
CJK IME text input related bug fixes.
/r=shanjian,/sr/brendan,/driver=jud,/adt=ok
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@123851 18797224-902f-48f8-a5cc-f745e15eee43
to detect insufficient input data error. With mozilla1.0.1+ and adt1.0.1+
approvals.
Tag: MOZILLA_1_0_BRANCH
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@123818 18797224-902f-48f8-a5cc-f745e15eee43
include license.txt with saved files when saving installer files
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@123779 18797224-902f-48f8-a5cc-f745e15eee43
r=rods, sr=jst, a=valeski
OS/2 - Just return if there are no printers to prevent crash
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@123707 18797224-902f-48f8-a5cc-f745e15eee43
r=timeless, sr=jag, a=valeski
Windows - map + on numpad to + character
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@123703 18797224-902f-48f8-a5cc-f745e15eee43
on copying msg because sent folder was being subscribed again.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@123647 18797224-902f-48f8-a5cc-f745e15eee43
instead of Sender and localizing webmail "Sent" and "Draft" folder
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@123637 18797224-902f-48f8-a5cc-f745e15eee43
in the process of destruction when windows are destroyed be cause setfocus
causes the flush of reflow commands
r=kmcclusk sr=waterson a=rjesup
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@123623 18797224-902f-48f8-a5cc-f745e15eee43
force default size to be 9 when system says 8 for simplified chinese system.
r=ftang, sr=alecf, a=adt
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@123562 18797224-902f-48f8-a5cc-f745e15eee43
r=jpierre, sr=blizzard, a=dbaron
OS/2 only - int32 math causing incorrect computation of disk space
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@123250 18797224-902f-48f8-a5cc-f745e15eee43
r=jkobal, sr=blizzard, a=dbaron
OS/2 only -handle special case of WM_QUIT so we don't stop the OS from shutting down
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@123249 18797224-902f-48f8-a5cc-f745e15eee43
Thanks to Chris Blizzard <blizzard@mozilla.org> for the patch.
Bug #149483 r=cls a=valeski
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@123217 18797224-902f-48f8-a5cc-f745e15eee43
swap the order of weakdoc charset and default charset so that previous
doc charset can be inherited as default charset.
disabled charset autodetection for post document.
r=ftang, sr=darin, a=adt,
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@123201 18797224-902f-48f8-a5cc-f745e15eee43
r=mkaply, sr=blizzard, a=valeski
OS/2 only - when rods checked in 144128, he missed the OS/2 changes.
146252 is OS/2 print preview fixes. It has been over three days since
approval, but I couldn't check it in until the rods stuff was figured out.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@123079 18797224-902f-48f8-a5cc-f745e15eee43
b=145388; r=dcone; sr=attinasi; a=chofmann
(checking in for rods; required for bug 133506)
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@123032 18797224-902f-48f8-a5cc-f745e15eee43
fix typo - [noscrpit] was used instead of [noscript]
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122981 18797224-902f-48f8-a5cc-f745e15eee43
bug 137141 - Wrong context menu items in stand alone mail window
bug 138826 - context menu problems in stand alone message window: "Open Link in New Window" doesn't work, too many items are showing up, etc.
r=neil@parkwaycc.co.uk, sr=sspitzer, a=drivers,adt
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122955 18797224-902f-48f8-a5cc-f745e15eee43
+ if (_tcscmp(lpInfo[i].pPrinterName, aPrinterName) == 0) {
I also removed the failure check after the calls to EnumerateNativePrinters
because even if one fails, it doesn't mean the others will. So it should keep trying.
The rest of the code is extra error checking that is all ifdef'ed out
Bug 143241 r=dcone sr=kin adt=putterman a=jud
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122886 18797224-902f-48f8-a5cc-f745e15eee43
for future and is needed for the API freeze.
Bug 144716 r=dcone sr=attinasi adt=putterman a=jud
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122884 18797224-902f-48f8-a5cc-f745e15eee43
This patch does the following:
1) Introduces a new public interface nsIPrintSettingService which emables
consumers to create PS objects whithout a nsIWebBrowserPrint interface
2) The implementation is nsPrintOptionsImpl which now impls the private
interface nsIPrintOptions and the public iface nsIPrintSettingsService
3) Several methods/attrs have been moved from nsIWebBrowserPrint iface to nsIPrintSettingsService
4) The CIDs for nsIPrintOptions and nsIPrinSettingsService are now the same.
5) There is no longer a CID "@mozilla.org/gfx/printoptions;1"
6) nsIWebBrowserPrint still has the "globalPrintSettings" attr so if you
already have an nsIWebBrowserPrint you don't have to create the PS Service to get it.
7) A bug has been filed to rename the imlp of nsPrintOptionsImpl to nsPrintSettingsService.
Bug 144128 r=dcone sr=kin adt=putterman a=jud
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122882 18797224-902f-48f8-a5cc-f745e15eee43
This patch does the following:
1) Introduces a new public interface nsIPrintSettingService which emables
consumers to create PS objects whithout a nsIWebBrowserPrint interface
2) The implementation is nsPrintOptionsImpl which now impls the private
interface nsIPrintOptions and the public iface nsIPrintSettingsService
3) Several methods/attrs have been moved from nsIWebBrowserPrint iface to nsIPrintSettingsService
4) The CIDs for nsIPrintOptions and nsIPrinSettingsService are now the same.
5) There is no longer a CID "@mozilla.org/gfx/printoptions;1"
6) nsIWebBrowserPrint still has the "globalPrintSettings" attr so if you
already have an nsIWebBrowserPrint you don't have to create the PS Service to get it.
7) A bug has been filed to rename the imlp of nsPrintOptionsImpl to nsPrintSettingsService.
Bug 144128 r=dcone sr=kin adt=putterman a=jud
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122881 18797224-902f-48f8-a5cc-f745e15eee43
Modified SlideLine() to use the combined area instead of the linebox
bounds when invalidating. This makes sure that we invalidate the
area occupied by the list bullets/ordinals.
r=dbaron@fas.harvard.edusr=waterson@netscape.coma=valeski@netscape.com
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122874 18797224-902f-48f8-a5cc-f745e15eee43
The listener is deconstructed and it is still registered as a listener, so in some cases a blur event goes to the old listener that is why it crashes.
Bug 132672 r=dcone sr=jst adt=putterman a=jud
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122773 18797224-902f-48f8-a5cc-f745e15eee43
pop3 mail on biff, also fix other related problems
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122724 18797224-902f-48f8-a5cc-f745e15eee43
add SupersedeMinVersion to components in win32 installer
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122665 18797224-902f-48f8-a5cc-f745e15eee43
- this site crashes the browser, every time]" r=dougt sr=rpotts a=chofmann ADT+
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122651 18797224-902f-48f8-a5cc-f745e15eee43
r=timeless, sr=hewitt, a=chofmann
return FAILURE rather than crashing when output stream can't be opend
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122618 18797224-902f-48f8-a5cc-f745e15eee43
Use "sourceTextEncoding" to convert search name and description,
bug 92314, r=rjc, sr=alecf.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122615 18797224-902f-48f8-a5cc-f745e15eee43
Modified TypeInState::NotifySelectionChanged() to work around
bogus selection changed notifications (bug 140303). We now
call reset when the collapsed selection changes position, or
becomes uncollapsed.
mozilla/editor/libeditor/html/TypeInState.cpp
mozilla/editor/libeditor/html/TypeInState.h
r=jfrancis@netscape.comsr=attinasi@netscape.coma=chofmann@netscape.com
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122590 18797224-902f-48f8-a5cc-f745e15eee43
Don't call StopBlinking() if the selection changed notification is
for a selection that is different from the one in mDomSelectionWeak.
r=akkana@netscape.comsr=attinasi@netscape.coma=chofmann@netscape.com
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122589 18797224-902f-48f8-a5cc-f745e15eee43
r=pedemont, sr=blizzard, a=valeski
OS/2 only - make focus code work more like Windows
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122517 18797224-902f-48f8-a5cc-f745e15eee43
r=pedemont, sr=blizzard, a=valeski
OS/2 only - don't write an extra NULL char to URL objects
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122516 18797224-902f-48f8-a5cc-f745e15eee43
r=pedemont, sr=blizzard, a=valeski
OS/2 only - suppot for custom splash screen - same as Win - thanks to Bjorn Anderson for the sample code
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122514 18797224-902f-48f8-a5cc-f745e15eee43
Quick Launch: After an exit, IMAP password dialog may appears with Biff and "Check new message on startup" setup.
r=naving,sr=mscott,a=adt,a=rjesup
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122495 18797224-902f-48f8-a5cc-f745e15eee43
SetFont API has been changed in nsIRenderingContext, need to change
nsRenderingContextBeOS.h as well.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122483 18797224-902f-48f8-a5cc-f745e15eee43
Solaris specific mime names are not supported in Mozilla/Netscape Mail
Added some lines for chinese and TIS-620 for iso8859-11
r=ftang, sr=alecf, a=rjesup@wgate.com
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122458 18797224-902f-48f8-a5cc-f745e15eee43
Update gb18030 statemachine, and use gb18030 state machine to
replace gb2312.
r=ftang, sr=scc, a=adt
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122454 18797224-902f-48f8-a5cc-f745e15eee43
changed nsRenderingContext API, and let GetMetricsFor
take lang group as a required argument. Changed all such
calls. Implement a convenient function to simplifed the
code.
r=rbs, sr=waterson, a=adt, rjesup
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122452 18797224-902f-48f8-a5cc-f745e15eee43
Error in walletOverlay.js on startup [redeclaration of const hide]
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122417 18797224-902f-48f8-a5cc-f745e15eee43
- IME input repositioning of Candidate window
- affect Windows 2000/XP - Simplified Chinese and MS PinYing and NeiMa IME only
/r=shanjian; /sr=brendan, /drivers=jud, /adt1.0.1=jaime
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122346 18797224-902f-48f8-a5cc-f745e15eee43
if a bunch of people get mozilla 1.0, they'll overload tbox.
r=callion,sr=bienvenu,a=leaf
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122267 18797224-902f-48f8-a5cc-f745e15eee43
rg/projects/embedding/MRE.html for details.)
Changes:
* Added EXTRA_COMPONENTS variable to build. Use it to automagically install files
into the components dir.
* Added SYSINSTALL variable. Use it install files onto the system.
* Move mozilla-config generation from configure to makefiles
* mozilla-config will now generate paths based upon the MRE-based directory layout.
* Generate mozilla script from template
The installation heirarchy currently looks like:
$prefix -> /bin/mozilla
/bin/mozilla-config
/include/mozilla-ver/*
/lib/mozilla-ver (mozappdir)
/components
/res
/defaults
/chrome
There is preliminary build support for MRE dirs as well though the component manage
r hasn't had MRE support added yet.
$prefix -> /lib/mre/mre-ver (mredir)
/components
Bug #56601 r=leaf a=scc,shaver,tor
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122149 18797224-902f-48f8-a5cc-f745e15eee43
rg/projects/embedding/MRE.html for details.)
Changes:
* Added EXTRA_COMPONENTS variable to build. Use it to automagically install files
into the components dir.
* Added SYSINSTALL variable. Use it install files onto the system.
* Move mozilla-config generation from configure to makefiles
* mozilla-config will now generate paths based upon the MRE-based directory layout.
* Generate mozilla script from template
The installation heirarchy currently looks like:
$prefix -> /bin/mozilla
/bin/mozilla-config
/include/mozilla-ver/*
/lib/mozilla-ver (mozappdir)
/components
/res
/defaults
/chrome
There is preliminary build support for MRE dirs as well though the component manage
r hasn't had MRE support added yet.
$prefix -> /lib/mre/mre-ver (mredir)
/components
Bug #56601 r=leaf a=scc,shaver,tor
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122148 18797224-902f-48f8-a5cc-f745e15eee43
rg/projects/embedding/MRE.html for details.)
Changes:
* Added EXTRA_COMPONENTS variable to build. Use it to automagically install files
into the components dir.
* Added SYSINSTALL variable. Use it install files onto the system.
* Move mozilla-config generation from configure to makefiles
* mozilla-config will now generate paths based upon the MRE-based directory layout.
* Generate mozilla script from template
The installation heirarchy currently looks like:
$prefix -> /bin/mozilla
/bin/mozilla-config
/include/mozilla-ver/*
/lib/mozilla-ver (mozappdir)
/components
/res
/defaults
/chrome
There is preliminary build support for MRE dirs as well though the component manage
r hasn't had MRE support added yet.
$prefix -> /lib/mre/mre-ver (mredir)
/components
Bug #56601 r=leaf a=scc,shaver,tor
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122145 18797224-902f-48f8-a5cc-f745e15eee43
Changes:
* Added EXTRA_COMPONENTS variable to build. Use it to automagically install files into the components dir.
* Added SYSINSTALL variable. Use it install files onto the system.
* Move mozilla-config generation from configure to makefiles
* mozilla-config will now generate paths based upon the MRE-based directory layout.
* Generate mozilla script from template
The installation heirarchy currently looks like:
$prefix -> /bin/mozilla
/bin/mozilla-config
/include/mozilla-ver/*
/lib/mozilla-ver (mozappdir)
/components
/res
/defaults
/chrome
There is preliminary build support for MRE dirs as well though the component manager hasn't had MRE support added yet.
$prefix -> /lib/mre/mre-ver (mredir)
/components
Bug #56601 r=leaf a=scc,shaver,tor
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122141 18797224-902f-48f8-a5cc-f745e15eee43
Changes:
* Added EXTRA_COMPONENTS variable to build. Use it to automagically install files into the components dir.
* Added SYSINSTALL variable. Use it install files onto the system.
* Move mozilla-config generation from configure to makefiles
* mozilla-config will now generate paths based upon the MRE-based directory layout.
* Generate mozilla script from template
The installation heirarchy currently looks like:
$prefix -> /bin/mozilla
/bin/mozilla-config
/include/mozilla-ver/*
/lib/mozilla-ver (mozappdir)
/components
/res
/defaults
/chrome
There is preliminary build support for MRE dirs as well though the component manager hasn't had MRE support added yet.
$prefix -> /lib/mre/mre-ver (mredir)
/components
Bug #56601 r=leaf,a=scc,shaver,tor
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122140 18797224-902f-48f8-a5cc-f745e15eee43
"BinarySearchForPosition" code from the nsTextFrame for finding cursor
position. Instead of cursor position, it is just uses the available width.
Bug 139384 r=dcone sr=attinasi a=chofmann,rjesup adt=putterman
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122019 18797224-902f-48f8-a5cc-f745e15eee43
Not part of the build. Global a= for this part of the tree.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122010 18797224-902f-48f8-a5cc-f745e15eee43
correct state machine of gb18030, and eliminate gb18030 as option
when only 2 candidates left.
r=ftang, sr=scc, a=chofman, adt
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@122004 18797224-902f-48f8-a5cc-f745e15eee43
FTP site is broken for Japanese server
Impact for only displaying ftp directory listing.
/r=bbaetz,/sr=darin,/a=chofmann,/adt=putterman
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@121979 18797224-902f-48f8-a5cc-f745e15eee43
Retrieve IMEProperty by calling ImmGetProperty() and
determine if the IME supports W API.
Impact only in Win2k and WinXP Simplified Chinese platforms
/r=shanjian,/sr=kin@netscape.com
/adt=putterman,/a=permission call from driver@mozilla.org
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@121978 18797224-902f-48f8-a5cc-f745e15eee43
r/sr=dmose, darin, jag, mozbot, lumpy, callion, jst, akkana (various parts of various patches, after baking on the trunk for a while)
a=chofmann
adt=jaimejr
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@121959 18797224-902f-48f8-a5cc-f745e15eee43
the branch (i backed it out late last night to see).
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@121940 18797224-902f-48f8-a5cc-f745e15eee43
due to nonexistent favorites folder (Windows 95 without IE4+ does not have
a favorites folder, so null check before using it)
r=ftang, sr=hyatt, a=rjesup
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@121869 18797224-902f-48f8-a5cc-f745e15eee43
correctly. Patch by morse, r=pinkerton, sr=alecf, a=drivers for the branch.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@121847 18797224-902f-48f8-a5cc-f745e15eee43
r=gerv, sr=alecf, a=chofmann,brendan
OS/2 only if statement - Os/2 has different default DPI values
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@121828 18797224-902f-48f8-a5cc-f745e15eee43
(results possibly in an kill because of out of memory)"
patch1: author=gordon r=dougt sr=darin
patch2: author=darin r=gordon,dougt sr=rpotts
a=brendan
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@121822 18797224-902f-48f8-a5cc-f745e15eee43
Thanks to Colin Blake <colin@theblakes.com> for the original patch.
Bug #127442 r=bryner a=chofmann
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@121726 18797224-902f-48f8-a5cc-f745e15eee43
Note: "512 is a good compromise between the transport speed and the system memor
y resources consumed."
Thanks to Jeff Wasilko <jw-mozilla@smoe.org> for the patch.
Bug #118846 r=cls a=rjesup@wgate.com
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@121717 18797224-902f-48f8-a5cc-f745e15eee43
r=bzbarsky, sr=blizzard, a=chofmann
OS/2 only - new helper app code - more like unix - new protoocl handler code
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@121634 18797224-902f-48f8-a5cc-f745e15eee43
r=me,sr=blizzard, a=chofmann
OS/2 only - change splash from Warpzila to Mozilla
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@121632 18797224-902f-48f8-a5cc-f745e15eee43
2) It can be difficult to determine whether you are creating/reflowing a UI or
doc scrollbar (SB)
3) They share the same PresContext which has a single scale value that UI SBs
need to ignore, but the doc SBs need to use.
This patch does the following:
1) Enables the PrintPreviewContext to turn on and of the scaling of twips
2) When creating a new scrollbar, it checks to see if the frame parent is
is a viewportframe that way it knows if it is in the UI or in the document
then for UI scrollbars it turns off the saling, and for doc scrollbars it
turns it on. This needs to be done at creation time as well as, reflow
because it GetScaledPixelsToTwips get called during both.
3) The nsSimpleSequenceFrame turns on scaling during its children reflow
then turns it off.
4) When PrintPreview "setup" is done it turns off the scaling in the
PrintPreviewContext because any reflowing other usages for
GetScaledPixelsToTwips will be for UI scrollbars
5) A copy of all the style rules for scrollbars is made and placed inside of
a media type "print" This way the style resultion for the scaled scrollbars
in the document are not shared with the UI.
Bug 120616 r=dcone sr=attinasi adt=putterman a=chofmann
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@121622 18797224-902f-48f8-a5cc-f745e15eee43
bug 143503, "long channel topic isn't wrapped properly"
r=samuel@sieb.net, sr=shaver@mozilla.org, a=leaf@mozilla.org
insert spaces in long topic words so things can wrap.
bug 140088, "Chatzilla is crashing when switching tabs."
r=samuel@sieb.net, sr=shaver, a=rjesup@wgate.com
don't touch the tree selection while the tree is hidden.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@121577 18797224-902f-48f8-a5cc-f745e15eee43
from the previous PP data object instead of fetching it from the DC, the DC
contains the current value and it may not represent what is actually the
Original value.
Bug 139459 r=dcone sr=attinasi a=asa,rjesup adt=putterman
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@121526 18797224-902f-48f8-a5cc-f745e15eee43
r=bengoodger, sr=hewitt, a=chofmann on behalf of drivers
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@121505 18797224-902f-48f8-a5cc-f745e15eee43
On CJK system, we have to use mbsrchr to identify the last "\" of a string.
r=dougt, sr=alecf, a=asa, adt
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@121455 18797224-902f-48f8-a5cc-f745e15eee43
r=nhotta, sr=blizzard, a=rjesup
New enum for specifying charset of 4.x prefs.js
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@121454 18797224-902f-48f8-a5cc-f745e15eee43
r=nhotta, sr=blizzard, a=rjesup
New enum for specifying charset of 4.x prefs.js
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@121453 18797224-902f-48f8-a5cc-f745e15eee43
r=pedemonte, sr=blizzard, a=rjesup
OS/2 only - use button 2 for drag
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@121449 18797224-902f-48f8-a5cc-f745e15eee43
s up in debug builds.
Bug #138726 r=rginda sr=alecf a=rjesup
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@121365 18797224-902f-48f8-a5cc-f745e15eee43
r=tao, sr=jag, a=asa
(no adt because this is a licensing-only change, no code is changed here)
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@121359 18797224-902f-48f8-a5cc-f745e15eee43
sr=blizzard, a=rjesup/asa/etc (checking in for Blake at Asa's request).
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@121252 18797224-902f-48f8-a5cc-f745e15eee43
addressbook export to ldif, re-import is lossy.
fix two issue, multi line attributes need to be base64 encoded
and there are several attributes that are not being exported / imported.
r=dmose, sr=bienvenu. a=putterman,asa
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@121251 18797224-902f-48f8-a5cc-f745e15eee43
r=mkaply, sr=blizzard, a=rjesup
OS/2 only - code from Jessica Blanco - don't use CRLF in printer names
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@121246 18797224-902f-48f8-a5cc-f745e15eee43
r=pinkerton, sr=jst, a=asa
Change for OS/2 only - use right mouse button for drag
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@121244 18797224-902f-48f8-a5cc-f745e15eee43
Can't turn on IM after a popup window opens
Call SetFocus() of XIC again to the current focused widget
r=blizzard,sr=shaver,a=asa(for1.0branch)
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@121232 18797224-902f-48f8-a5cc-f745e15eee43
Bug 140088 Chatzilla is crashing when switching tabs.
rs=blizzard, a=asa
spackle to avoid crasher. don't tweak the tree root if the tree isn't visible.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@121223 18797224-902f-48f8-a5cc-f745e15eee43
sent with a 'Last-Modified' header"
r=bbaetz sr=rpotts a=valeski,chofmann ADT+
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@121128 18797224-902f-48f8-a5cc-f745e15eee43
and document.load calls. Also enable HTTP basic-auth dialog for both functions.
r=heikki, jst sr=jband, a=chofmann, putterman
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@121049 18797224-902f-48f8-a5cc-f745e15eee43
patch=jst, r=rginda, sr=hyatt, a=asa
clear element box object when the element is removed from the document.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@120918 18797224-902f-48f8-a5cc-f745e15eee43
up some interfaces into separate IDL files (b=124465)
reviewed by dougt and bbaetz
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@120799 18797224-902f-48f8-a5cc-f745e15eee43
forcing a min height and min width on the the tree. This fixes the famous 100 % CPU hang.
Patch from kin@netscape.com
r=mscott
sr=hyatt
a=asa
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@120763 18797224-902f-48f8-a5cc-f745e15eee43
Mail/News only. Freeze when user scroll the msg header.
- infinite loop caused by creating an invalid UTF-8 string.
- invalid UTF-8 string was created when Unicode Decoder failed.
/r=nhotta, /sr=bienvenu, /a=asa, /adt=jaime
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@120757 18797224-902f-48f8-a5cc-f745e15eee43
correct the command name for the View->Open At Startup option
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@120752 18797224-902f-48f8-a5cc-f745e15eee43
Deleted a printf statement in the Neutrino builds. Bug 135692.
a=scc
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@120735 18797224-902f-48f8-a5cc-f745e15eee43
Not part of the build. Global a= for this part of the tree.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@120670 18797224-902f-48f8-a5cc-f745e15eee43
thanks to dp for the fix. r=blizzard,sr=bienvenu,a=shaver
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@120642 18797224-902f-48f8-a5cc-f745e15eee43
profiles. r=ccarlen, sr=bievenu, a=chofmann. thanks to ccarlen for the
initial patch. by default, no re-migration for mozilla builds.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@120637 18797224-902f-48f8-a5cc-f745e15eee43
Not part of the build. Global a= for this part of the tree.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@120628 18797224-902f-48f8-a5cc-f745e15eee43
Not part of the build. Global a= for this part of the tree.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@120621 18797224-902f-48f8-a5cc-f745e15eee43
r=pedemonte, sr=blizzard, a=rjesup
OS/2 only - don't add the hidden window to the task list
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@120598 18797224-902f-48f8-a5cc-f745e15eee43
launch. Don't null the filter list on server unless we are unloading it.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@120471 18797224-902f-48f8-a5cc-f745e15eee43
Not part of the build. Global a= for this part of the tree.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@120434 18797224-902f-48f8-a5cc-f745e15eee43
Not part of the build. Global a= for this part of the tree.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@120433 18797224-902f-48f8-a5cc-f745e15eee43
The safety checks in finalize_translation is the key to stopping the crash, but
the added ones in end_document are important also.
Bug 139369 r=dcone,roland sr=attinasi adt=jaime
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@120427 18797224-902f-48f8-a5cc-f745e15eee43
patch was meant to land along with yesterday's pipelining landing.
r=gagan sr=rpotts a=chofmann ADT+
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@120315 18797224-902f-48f8-a5cc-f745e15eee43
Not part of the build. Global "a=" for this part of the tree.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@120267 18797224-902f-48f8-a5cc-f745e15eee43
Not part of the build. Global "a=" for this part of the tree.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@120266 18797224-902f-48f8-a5cc-f745e15eee43
Not part of the build; global "a=" for this part of the tree.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@120251 18797224-902f-48f8-a5cc-f745e15eee43
Not part of the build; global "a=" for this part of the tree.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@120250 18797224-902f-48f8-a5cc-f745e15eee43
Christof Meerwald.
Not part of the build; global "a=" for this part of the tree.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@120249 18797224-902f-48f8-a5cc-f745e15eee43
r=pedemont, sr=blizzard, a=asa
OS/2 only - fix some edge cases where file dialog didn't appear, general cleanup
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@120245 18797224-902f-48f8-a5cc-f745e15eee43
Bug 89835: Window opened up with JavaScript has focus in the URL bar while NN4 and IE put focus on the content area
Focus will now always go to the content area unless we're opening for a blank page.
r=sgehani, sr=hewitt, a=drivers, a=adt
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@120186 18797224-902f-48f8-a5cc-f745e15eee43
nsAllocator with nsMemory.
Not part of the build; using global "a=" for this part of the tree.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@120173 18797224-902f-48f8-a5cc-f745e15eee43
(configure.in change was made for :
#91305 add universal chardet into unix default extensions list.
That was checked in a week ago, but configure file is not updated yet.
)
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@120154 18797224-902f-48f8-a5cc-f745e15eee43
r=chak, sr=dveditz, a=dbaron
no ADT because this is simply a comment/doc change - there is no code involved.
trying to do the right thing here and just land this puppy.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@120083 18797224-902f-48f8-a5cc-f745e15eee43
Allow the cache to grow if necessary to hold large objects. r=nelsonb,wtc.
a=asa (on behalf of drivers) for checkin to the 1.0 branch
Modified Files: h_bigkey.c hash_buf.c
Tag: MOZILLA_1_0_0_BRANCH
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@120076 18797224-902f-48f8-a5cc-f745e15eee43
work on Windows 95.
Modified files: configure configure.in WIN32.mk _win95.h w95dllmain.c
w95thred.c
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@120072 18797224-902f-48f8-a5cc-f745e15eee43
r=lpham, sr=leaf, a=asa for blanket version approval.
asasaki checking in as cltbld.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@120045 18797224-902f-48f8-a5cc-f745e15eee43
bug 139883, "ErrorHookProc can be tricked into thinking it never finished running", r=peterv, a=scc
fixes bad early return in jsds_ErrorHookProc
test for correct max params (12, not 8) in CreatePPLineMap
use nsnull instead of 0 for null pointer return value
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@120001 18797224-902f-48f8-a5cc-f745e15eee43
ABBR and ACRONYM should not have arrow/question cursor
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@119996 18797224-902f-48f8-a5cc-f745e15eee43
possible relative url do not return an error when the urlparser
identifies an invalid scheme, instead take the string as relative url
instead, r=morse, sr=darin, a=asa
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@119995 18797224-902f-48f8-a5cc-f745e15eee43
name we use for regisry and path names
(Bug 140178, r=ssu, sr=dveditz, a=asa)
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@119941 18797224-902f-48f8-a5cc-f745e15eee43
moveTo() [of directories with subdirectories] on windows doesn't behave the same as it does on linux and mac. r=dougt, sr=bienvenu, a=asa
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@119916 18797224-902f-48f8-a5cc-f745e15eee43
r=mkaply, sr=blizzard, a=roc+moz
OS/2 only - from Jessica Blanco - different way to allocate printer data to fix crash/hang on some drivers
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@119864 18797224-902f-48f8-a5cc-f745e15eee43
r=mkaply, sr=blizzard, a=roc+moz
OS/2 only - from Javier Pedemonte - implement ConstrainPosition
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@119862 18797224-902f-48f8-a5cc-f745e15eee43
r=pedemont, sr=blizzard, a=roc+moz
OS/2 only - convert filtername to platform specific charset
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@119859 18797224-902f-48f8-a5cc-f745e15eee43
xpis can be triggered from urls with query strings
118216 - r=syd sr=dveditz a=scc adt=putterman
avoid edge case crashes by adding a few error checks
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@119812 18797224-902f-48f8-a5cc-f745e15eee43
instead of acting non-existent in the message.
r=ducarroz
sr=bienvenu
a=scc
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@119770 18797224-902f-48f8-a5cc-f745e15eee43
r=pedemont, sr=blizzard, a=asa
OS/2 only - remove unnecessary XP_OS2 chunk that tries to fix form element fonts
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@119762 18797224-902f-48f8-a5cc-f745e15eee43
in order to workaround the converter problem (bug 138578),
bug 120728, r=ducarroz, sr=sspitzer, a=rjesup@wgate.com, adt.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@119761 18797224-902f-48f8-a5cc-f745e15eee43
r=cls, a=scc
OS/2 only - remove high performance timer code - switch to OS millisecond timers
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@119760 18797224-902f-48f8-a5cc-f745e15eee43
check existing charset source and send notification only when existing charset source is
lower than meta charset.
r=ftang, sr=jst, a=shaver, adt
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@119663 18797224-902f-48f8-a5cc-f745e15eee43
r=mkaply, sr=blizzard, a=shaver
OS/2 only - code from Javier Pedemonte to properly set font heights
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@119626 18797224-902f-48f8-a5cc-f745e15eee43
it back when leaving Print Preview
Bug 136785 r=dcone sr=attinasi adt=putterman
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@119536 18797224-902f-48f8-a5cc-f745e15eee43
Case of first letter in text labels is sometimes wrong in the Media tab
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@119499 18797224-902f-48f8-a5cc-f745e15eee43
The idea is that when the SelectAreaFrame (which is the parent) of the options
is asked to paint then it asks the ListControlframe to paint the focus ring in
the correct spot. It need to find the first non-disabled option (ignoring opt
groups) and if nothing is selected it need to find the first frame which is the
dummy option. Also, it now track thru a static data member which listControl
frame currently has focus (this was taking from how comboboxes track it internally)
Bug 64165 r=jkeiser sr=attinasi adt=jaime
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@119486 18797224-902f-48f8-a5cc-f745e15eee43
to never go away.
Bug #135753 --> figure out the folder to select when the user clicks on the
animated alert to ensure that we select the right folder.
Bug #123104 --> fix an inaccuracy in the new mail count. Always reset to 0
if we discover we have no new mail even if the state has already been changed
that way.
r=naving, sr=bienvenu/sspitzer
a=asa
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@119471 18797224-902f-48f8-a5cc-f745e15eee43
r=mkaply, sr=blizzard, a=rjesup@wgate.com
OS/2 only - workaround for MINCHO font bug
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@119422 18797224-902f-48f8-a5cc-f745e15eee43
data: protocol doesn't unescape its uri string
also fixes bug where data: urls w/o mimetype didn't work (e.g. data:,foobar)
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@119404 18797224-902f-48f8-a5cc-f745e15eee43
- Moved MoveChildrenTo() and GetRealFrame() to a point in the
file where they could be called from my new utility method
AdjustOutOfFlowFrameParentPtrs().
- Modified MoveChildrenTo() to take an nsFrameConstructorState arg,
so that it can call my new method AdjustOutOfFlowFrameParentPtrs()
so that out-of-flow floater frames are reparented to the correct
containing block when the placeholder is moved under the block
created in ConstructInline().
r=attinasi@netscape.comsr=waterson@netscape.comadt=jaimejr@netscape.coma=rjesup@wgate.com
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@119395 18797224-902f-48f8-a5cc-f745e15eee43
- Modified GetSelectionRegionRectAndScrollableView() to clip
aRect so that it is completely within the bounds of the
scrolledView. This insures that other scrolled views in
the parent hierarchy will not scroll more than they have to.
r=brade@netscape.comsr=sfraser@netscape.comadt=jaimejr@netscape.coma=asa@mozilla.org
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@119394 18797224-902f-48f8-a5cc-f745e15eee43
r=dmose r=cls a=asa (for build bustage checkin and on behalf of drivers)
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@119299 18797224-902f-48f8-a5cc-f745e15eee43
Also fixes some other S/Mime issues, as described in the bug.
r=ddrinan/ducarroz/darin sr=alecf a=rjesup
Fixing bustage, approval for checkin to the closed tree from asasaki
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@119238 18797224-902f-48f8-a5cc-f745e15eee43
Also fixes some other S/Mime issues, as described in the bug.
r=ddrinan/ducarroz/darin sr=alecf a=rjesup
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@119230 18797224-902f-48f8-a5cc-f745e15eee43
reflowed. So if a frameset frame's root frame is zero height then we mark it
hidden and not to be printed.
Bug 134769 r=dcone sr=attinasi adt=jaime
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@119221 18797224-902f-48f8-a5cc-f745e15eee43
replace default "default char" from '?' to '_'. The former one is not
acceptable in windows filename.
r=ftang, sr=alecf, a=asa, adt
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@119212 18797224-902f-48f8-a5cc-f745e15eee43
focus model is "focus follows mouse". Until we figure that out (see #137698),
we need to disable this performance trick on unix.
APPROVED FOR THE CLOSED 1.0 BRANCH.
r/sr=bienvenu, a=asa,leaf, adt=jaime
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@119163 18797224-902f-48f8-a5cc-f745e15eee43
reflowed. So if a frameset frame's root frame is zero height then we mark it
hidden and not to be printed.
Bug 134769 r=dcone sr=attinasi adt=jaime
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@119152 18797224-902f-48f8-a5cc-f745e15eee43
install Carbon Input Text event handler for embedding project
from trunk
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@119039 18797224-902f-48f8-a5cc-f745e15eee43
from trunk. add implementation to deal with Carboneevnt for input method
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@119034 18797224-902f-48f8-a5cc-f745e15eee43
All these changes should be OpenVMS only.
b=136884 r=rods sr=attinasi a=asa
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@118924 18797224-902f-48f8-a5cc-f745e15eee43
This patch is contributed by Michael Kaply <mkaply@us.ibm.com>.
Modified files: _os2 os2cv.c os2vacpp.asm
Tag: MOZILLA_1_0_0_BRANCH
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@118815 18797224-902f-48f8-a5cc-f745e15eee43
a=rjesup@wgate.com for check into the mozilla 1.0.0 branch.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@118773 18797224-902f-48f8-a5cc-f745e15eee43
Added SuppressEventHandlers() utility routine, which PreDestroy()
and CreateAnonymousContent() now call to determine if the controller
unregister/register code should be executed.
r=rods@netscape.comsr=sfraser@netscape.comadt=jaimejr@netscape.coma=asa@mozilla.org
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@118754 18797224-902f-48f8-a5cc-f745e15eee43
in which <br> tags within <pre> blocks are translated to newlines.
r=nhotta,ducarroz,tmutreja sr=sspitzer a=rjesup adt1.0.0+
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@118673 18797224-902f-48f8-a5cc-f745e15eee43
r=wtc, a=asa
OS/2 only - don't set priority if it is the default
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@118669 18797224-902f-48f8-a5cc-f745e15eee43
# we need to manually load Moz::ProjectXML, becaues not everyone will have the
# required perl modules in their distro.
my($cur_dir)=cwd();
chdir(dirname($0));# change to the script dir
eval"require Moz::ProjectXML";
if($@){die"Error: could not do Project XML munging because you do not have the correct XML modules installed. Error is:\n################\n $@################";}
MochiKit is dual-licensed software. It is available under the terms of the
MIT License, or the Academic Free License version 2.1. The full text of
each license is included below.
MIT License
===========
Copyright (c) 2005 Bob Ippolito. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Academic Free License v. 2.1
============================
Copyright (c) 2005 Bob Ippolito. All rights reserved.
This Academic Free License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following notice immediately following the copyright notice for the Original Work:
Licensed under the Academic Free License version 2.1
1) Grant of Copyright License. Licensor hereby grants You a world-wide, royalty-free, non-exclusive, perpetual, sublicenseable license to do the following:
a) to reproduce the Original Work in copies;
b) to prepare derivative works ("Derivative Works") based upon the Original Work;
c) to distribute copies of the Original Work and Derivative Works to the public;
d) to perform the Original Work publicly; and
e) to display the Original Work publicly.
2) Grant of Patent License. Licensor hereby grants You a world-wide, royalty-free, non-exclusive, perpetual, sublicenseable license, under patent claims owned or controlled by the Licensor that are embodied in the Original Work as furnished by the Licensor, to make, use, sell and offer for sale the Original Work and Derivative Works.
3) Grant of Source Code License. The term "Source Code" means the preferred form of the Original Work for making modifications to it and all available documentation describing how to modify the Original Work. Licensor hereby agrees to provide a machine-readable copy of the Source Code of the Original Work along with each copy of the Original Work that Licensor distributes. Licensor reserves the right to satisfy this obligation by placing a machine-readable copy of the Source Code in an information repository reasonably calculated to permit inexpensive and convenient access by You for as long as Licensor continues to distribute the Original Work, and by publishing the address of that information repository in a notice immediately following the copyright notice that applies to the Original Work.
4) Exclusions From License Grant. Neither the names of Licensor, nor the names of any contributors to the Original Work, nor any of their trademarks or service marks, may be used to endorse or promote products derived from this Original Work without express prior written permission of the Licensor. Nothing in this License shall be deemed to grant any rights to trademarks, copyrights, patents, trade secrets or any other intellectual property of Licensor except as expressly stated herein. No patent license is granted to make, use, sell or offer to sell embodiments of any patent claims other than the licensed claims defined in Section 2. No right is granted to the trademarks of Licensor even if such marks are included in the Original Work. Nothing in this License shall be interpreted to prohibit Licensor from licensing under different terms from this License any Original Work that Licensor otherwise would have a right to license.
5) This section intentionally omitted.
6) Attribution Rights. You must retain, in the Source Code of any Derivative Works that You create, all copyright, patent or trademark notices from the Source Code of the Original Work, as well as any notices of licensing and any descriptive text identified therein as an "Attribution Notice." You must cause the Source Code for any Derivative Works that You create to carry a prominent Attribution Notice reasonably calculated to inform recipients that You have modified the Original Work.
7) Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that the copyright in and to the Original Work and the patent rights granted herein by Licensor are owned by the Licensor or are sublicensed to You under the terms of this License with the permission of the contributor(s) of those copyrights and patent rights. Except as expressly stated in the immediately proceeding sentence, the Original Work is provided under this License on an "AS IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without limitation, the warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No license to Original Work is granted hereunder except under this disclaimer.
8) Limitation of Liability. Under no circumstances and under no legal theory, whether in tort (including negligence), contract, or otherwise, shall the Licensor be liable to any person for any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or the use of the Original Work including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. This limitation of liability shall not apply to liability for death or personal injury resulting from Licensor's negligence to the extent applicable law prohibits such limitation. Some jurisdictions do not allow the exclusion or limitation of incidental or consequential damages, so this exclusion and limitation may not apply to You.
9) Acceptance and Termination. If You distribute copies of the Original Work or a Derivative Work, You must make a reasonable effort under the circumstances to obtain the express assent of recipients to the terms of this License. Nothing else but this License (or another written agreement between Licensor and You) grants You permission to create Derivative Works based upon the Original Work or to exercise any of the rights granted in Section 1 herein, and any attempt to do so except under the terms of this License (or another written agreement between Licensor and You) is expressly prohibited by U.S. copyright law, the equivalent laws of other countries, and by international treaty. Therefore, by exercising any of the rights granted to You in Section 1 herein, You indicate Your acceptance of this License and all of its terms and conditions.
10) Termination for Patent Action. This License shall terminate automatically and You may no longer exercise any of the rights granted to You by this License as of the date You commence an action, including a cross-claim or counterclaim, against Licensor or any licensee alleging that the Original Work infringes a patent. This termination provision shall not apply for an action alleging patent infringement by combinations of the Original Work with other software or hardware.
11) Jurisdiction, Venue and Governing Law. Any action or suit relating to this License may be brought only in the courts of a jurisdiction wherein the Licensor resides or in which Licensor conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any use of the Original Work outside the scope of this License or after its termination shall be subject to the requirements and penalties of the U.S. Copyright Act, 17 U.S.C. § 101 et seq., the equivalent laws of other countries, and international treaty. This section shall survive the termination of this License.
12) Attorneys Fees. In any action to enforce the terms of this License or seeking damages relating thereto, the prevailing party shall be entitled to recover its costs and expenses, including, without limitation, reasonable attorneys' fees and costs incurred in connection with such action, including any appeal of such action. This section shall survive the termination of this License.
13) Miscellaneous. This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable.
14) Definition of "You" in This License. "You" throughout this License, whether in upper or lower case, means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with you. For purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
15) Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You.
This license is Copyright (C) 2003-2004 Lawrence E. Rosen. All rights reserved. Permission is hereby granted to copy and distribute this license without modification. This license may not be modified without the express written permission of its copyright owner.
<p>The Deferred constructor encapsulates a single value that
is not available yet. The most important example of this
in the context of a web browser would be an <ttclass="docutils literal"><spanclass="pre">XMLHttpRequest</span></tt>
to a server. The importance of the Deferred is that it
allows a consistent API to be exposed for all asynchronous
computations that occur exactly once.</p>
<p>The producer of the Deferred is responsible for doing all
of the complicated work behind the scenes. This often
means waiting for a timer to fire, or waiting for an event
(e.g. <ttclass="docutils literal"><spanclass="pre">onreadystatechange</span></tt> of <ttclass="docutils literal"><spanclass="pre">XMLHttpRequest</span></tt>).
It could also be coordinating several events (e.g.
<ttclass="docutils literal"><spanclass="pre">XMLHttpRequest</span></tt> with a timeout, or several Deferreds
(e.g. fetching a set of XML documents that should be
processed at the same time).</p>
<p>Since these sorts of tasks do not respond immediately, the
producer of the Deferred does the following steps before
returning to the consumer:</p>
<olclass="arabic simple">
<li>Create a <ttclass="docutils literal"><spanclass="pre">new</span></tt><aclass="mochiref reference"href="#fn-deferred">Deferred();</a> object and keep a reference
to it, because it will be needed later when the value is
ready.</li>
<li>Setup the conditions to create the value requested (e.g.
create a new <ttclass="docutils literal"><spanclass="pre">XMLHttpRequest</span></tt>, set its
<li>Return the <aclass="mochiref reference"href="#fn-deferred">Deferred</a> object.</li>
</ol>
<p>Since the value is not yet ready, the consumer attaches
a function to the Deferred that will be called when the
value is ready. This is not unlike <ttclass="docutils literal"><spanclass="pre">setTimeout</span></tt>, or
other similar facilities you may already be familiar with.
The consumer can also attach an "errback" to the
<aclass="mochiref reference"href="#fn-deferred">Deferred</a>, which is a callback for error handling.</p>
<p>When the value is ready, the producer simply calls
<ttclass="docutils literal"><spanclass="pre">myDeferred.callback(theValue)</span></tt>. If an error occurred,
it should call <ttclass="docutils literal"><spanclass="pre">myDeferred.errback(theValue)</span></tt> instead.
As soon as this happens, the callback that the consumer
attached to the <aclass="mochiref reference"href="#fn-deferred">Deferred</a> is called with <ttclass="docutils literal"><spanclass="pre">theValue</span></tt>
as the only argument.</p>
<p>There are quite a few additional "advanced" features
baked into <aclass="mochiref reference"href="#fn-deferred">Deferred</a>, such as cancellation and
Results passed to <ttclass="docutils literal"><spanclass="pre">.fail</span></tt> or <ttclass="docutils literal"><spanclass="pre">.errback</span></tt> of a <aclass="mochiref reference"href="#fn-deferred">Deferred</a>
are wrapped by this <ttclass="docutils literal"><spanclass="pre">Error</span></tt> if <ttclass="docutils literal"><spanclass="pre">!(result</span><spanclass="pre">instanceof</span><spanclass="pre">Error)</span></tt>.</blockquote>
Thrown when an <ttclass="docutils literal"><spanclass="pre">XMLHttpRequest</span></tt> does not complete successfully
for any reason. The <ttclass="docutils literal"><spanclass="pre">req</span></tt> property of the error is the failed
<ttclass="docutils literal"><spanclass="pre">XMLHttpRequest</span></tt> object, and for convenience the <ttclass="docutils literal"><spanclass="pre">number</span></tt>
property corresponds to <ttclass="docutils literal"><spanclass="pre">req.status</span></tt>.</blockquote>
Encapsulates a sequence of callbacks in response to a value that
may not yet be available. This is modeled after the Deferred class
from Twisted <aclass="footnote-reference"href="#id9"id="id3"name="id3">[3]</a>.</blockquote>
<blockquote>
<p>Why do we want this? JavaScript has no threads, and even if it did,
threads are hard. Deferreds are a way of abstracting non-blocking
events, such as the final response to an <ttclass="docutils literal"><spanclass="pre">XMLHttpRequest</span></tt>.</p>
<p>The sequence of callbacks is internally represented as a list
of 2-tuples containing the callback/errback pair. For example,
the following call sequence:</p>
<preclass="literal-block">
var d = new Deferred();
d.addCallback(myCallback);
d.addErrback(myErrback);
d.addBoth(myBoth);
d.addCallbacks(myCallback, myErrback);
</pre>
<p>is translated into a <aclass="mochiref reference"href="#fn-deferred">Deferred</a> with the following internal
representation:</p>
<preclass="literal-block">
[
[myCallback, null],
[null, myErrback],
[myBoth, myBoth],
[myCallback, myErrback]
]
</pre>
<p>The <aclass="mochiref reference"href="#fn-deferred">Deferred</a> also keeps track of its current status (fired).
Its status may be one of the following three values:</p>
<blockquote>
<tableborder="1"class="docutils">
<colgroup>
<colwidth="14%"/>
<colwidth="86%"/>
</colgroup>
<theadvalign="bottom">
<tr><thclass="head">Value</th>
<thclass="head">Condition</th>
</tr>
</thead>
<tbodyvalign="top">
<tr><td>-1</td>
<td>no value yet (initial condition)</td>
</tr>
<tr><td>0</td>
<td>success</td>
</tr>
<tr><td>1</td>
<td>error</td>
</tr>
</tbody>
</table>
</blockquote>
<p>A <aclass="mochiref reference"href="#fn-deferred">Deferred</a> will be in the error state if one of the following
conditions are met:</p>
<olclass="arabic simple">
<li>The result given to callback or errback is "<ttclass="docutils literal"><spanclass="pre">instanceof</span><spanclass="pre">Error</span></tt>"</li>
<li>The callback or errback threw while executing. If the thrown object
is not <ttclass="docutils literal"><spanclass="pre">instanceof</span><spanclass="pre">Error</span></tt>, it will be wrapped with
<p>Add the same function as both a callback and an errback as the
next element on the callback sequence. This is useful for code
that you want to guarantee to run, e.g. a finalizer.</p>
<p>If additional arguments are given, then <ttclass="docutils literal"><spanclass="pre">func</span></tt> will be replaced
with <aclass="mochiref reference"href="Base.html#fn-partial">MochiKit.Base.partial.apply(null, arguments)</a>. This
differs from <aclass="reference"href="http://twistedmatrix.com/">Twisted</a>, because the result of the callback or
errback will be the <em>last</em> argument passed to <ttclass="docutils literal"><spanclass="pre">func</span></tt>.</p>
<p>If <ttclass="docutils literal"><spanclass="pre">func</span></tt> returns a <aclass="mochiref reference"href="#fn-deferred">Deferred</a>, then it will be chained
(its value or error will be passed to the next callback). Note that
once the returned <ttclass="docutils literal"><spanclass="pre">Deferred</span></tt> is chained, it can no longer accept new
<p>Add a single callback to the end of the callback sequence.</p>
<p>If additional arguments are given, then <ttclass="docutils literal"><spanclass="pre">func</span></tt> will be replaced
with <aclass="mochiref reference"href="Base.html#fn-partial">MochiKit.Base.partial.apply(null, arguments)</a>. This
differs from <aclass="reference"href="http://twistedmatrix.com/">Twisted</a>, because the result of the callback will
be the <em>last</em> argument passed to <ttclass="docutils literal"><spanclass="pre">func</span></tt>.</p>
<p>If <ttclass="docutils literal"><spanclass="pre">func</span></tt> returns a <aclass="mochiref reference"href="#fn-deferred">Deferred</a>, then it will be chained
(its value or error will be passed to the next callback). Note that
once the returned <ttclass="docutils literal"><spanclass="pre">Deferred</span></tt> is chained, it can no longer accept new
<p>Add separate callback and errback to the end of the callback
sequence. Either callback or errback may be <ttclass="docutils literal"><spanclass="pre">null</span></tt>,
but not both.</p>
<p>If <ttclass="docutils literal"><spanclass="pre">callback</span></tt> or <ttclass="docutils literal"><spanclass="pre">errback</span></tt> returns a <aclass="mochiref reference"href="#fn-deferred">Deferred</a>,
then it will be chained (its value or error will be passed to the
next callback). Note that once the returned <ttclass="docutils literal"><spanclass="pre">Deferred</span></tt> is chained,
<p>Add a single errback to the end of the callback sequence.</p>
<p>If additional arguments are given, then <ttclass="docutils literal"><spanclass="pre">func</span></tt> will be replaced
with <aclass="mochiref reference"href="Base.html#fn-partial">MochiKit.Base.partial.apply(null, arguments)</a>. This
differs from <aclass="reference"href="http://twistedmatrix.com/">Twisted</a>, because the result of the errback will
be the <em>last</em> argument passed to <ttclass="docutils literal"><spanclass="pre">func</span></tt>.</p>
<p>If <ttclass="docutils literal"><spanclass="pre">func</span></tt> returns a <aclass="mochiref reference"href="#fn-deferred">Deferred</a>, then it will be chained
(its value or error will be passed to the next callback). Note that
once the returned <ttclass="docutils literal"><spanclass="pre">Deferred</span></tt> is chained, it can no longer accept new
<p>Begin the callback sequence with a non-<ttclass="docutils literal"><spanclass="pre">Error</span></tt> result. Result
may be any value except for a <aclass="mochiref reference"href="#fn-deferred">Deferred</a>.</p>
<p>Either <ttclass="docutils literal"><spanclass="pre">.callback</span></tt> or <ttclass="docutils literal"><spanclass="pre">.errback</span></tt> should
be called exactly once on a <aclass="mochiref reference"href="#fn-deferred">Deferred</a>.</p>
<p>Begin the callback sequence with an error result.
Result may be any value except for a <aclass="mochiref reference"href="#fn-deferred">Deferred</a>,
but if <ttclass="docutils literal"><spanclass="pre">!(result</span><spanclass="pre">instanceof</span><spanclass="pre">Error)</span></tt>, it will be wrapped
with <aclass="mochiref reference"href="#fn-genericerror">GenericError</a>.</p>
<p>Either <ttclass="docutils literal"><spanclass="pre">.callback</span></tt> or <ttclass="docutils literal"><spanclass="pre">.errback</span></tt> should
<p>The <ttclass="docutils literal"><spanclass="pre">locked</span></tt> property of a <aclass="mochiref reference"href="#fn-deferredlock">DeferredLock</a> will be <ttclass="docutils literal"><spanclass="pre">true</span></tt> if
it locked, <ttclass="docutils literal"><spanclass="pre">false</span></tt> otherwise. Do not change this property.</p>
<p>Call <ttclass="docutils literal"><spanclass="pre">func(args...)</span></tt> after at least <ttclass="docutils literal"><spanclass="pre">seconds</span></tt> seconds have elapsed.
<p>Perform a simple <ttclass="docutils literal"><spanclass="pre">XMLHttpRequest</span></tt> and wrap it with a
<aclass="mochiref reference"href="#fn-deferred">Deferred</a> that may be cancelled.</p>
<p>Note that currently, only <ttclass="docutils literal"><spanclass="pre">200</span></tt> (OK) and <ttclass="docutils literal"><spanclass="pre">304</span></tt>
(NOT_MODIFIED) are considered success codes at this time, other
status codes will result in an errback with an <ttclass="docutils literal"><spanclass="pre">XMLHttpRequestError</span></tt>.</p>
<dd><aclass="mochiref reference"href="#fn-deferred">Deferred</a> that will callback with the <ttclass="docutils literal"><spanclass="pre">XMLHttpRequest</span></tt>
<p>Evaluate a JSON <aclass="footnote-reference"href="#id10"id="id4"name="id4">[4]</a><ttclass="docutils literal"><spanclass="pre">XMLHttpRequest</span></tt></p>
<p>Return a <aclass="mochiref reference"href="#fn-deferred">Deferred</a> that has already had <ttclass="docutils literal"><spanclass="pre">.errback(result)</span></tt>
called.</p>
<p>See <ttclass="docutils literal"><spanclass="pre">succeed</span></tt> documentation for rationale.</p>
A convenience function that returns a <aclass="mochiref reference"href="#fn-deferredlist">DeferredList</a>
from the given <ttclass="docutils literal"><spanclass="pre">Array</span></tt> of <aclass="mochiref reference"href="#fn-deferred">Deferred</a> instances
that will callback with an <ttclass="docutils literal"><spanclass="pre">Array</span></tt> of just results when
they're available, or errback on the first array.</blockquote>
<dd>A new <aclass="mochiref reference"href="#fn-deferred">Deferred</a> based on the call to <ttclass="docutils literal"><spanclass="pre">func</span></tt>. If <ttclass="docutils literal"><spanclass="pre">func</span></tt>
does not naturally return a <aclass="mochiref reference"href="#fn-deferred">Deferred</a>, its result or error
<dd><aclass="mochiref reference"href="#fn-deferred">Deferred</a> that will callback with the evaluated JSON <aclass="footnote-reference"href="#id10"id="id6"name="id6">[4]</a>
response upon successful <ttclass="docutils literal"><spanclass="pre">XMLHttpRequest</span></tt></dd>
<p>Set an <ttclass="docutils literal"><spanclass="pre">onreadystatechange</span></tt> handler on an <ttclass="docutils literal"><spanclass="pre">XMLHttpRequest</span></tt> object
and send it off. Will return a cancellable <aclass="mochiref reference"href="#fn-deferred">Deferred</a> that will
callback on success.</p>
<p>Note that currently, only <ttclass="docutils literal"><spanclass="pre">200</span></tt> (OK) and <ttclass="docutils literal"><spanclass="pre">304</span></tt>
(NOT_MODIFIED) are considered success codes at this time, other
status codes will result in an errback with an <ttclass="docutils literal"><spanclass="pre">XMLHttpRequestError</span></tt>.</p>
<dd>Optional string or DOM content to send over the <ttclass="docutils literal"><spanclass="pre">XMLHttpRequest</span></tt>.</dd>
<dt><em>returns</em>:</dt>
<dd><aclass="mochiref reference"href="#fn-deferred">Deferred</a> that will callback with the <ttclass="docutils literal"><spanclass="pre">XMLHttpRequest</span></tt>
<p>Return a <aclass="mochiref reference"href="#fn-deferred">Deferred</a> that has already had <ttclass="docutils literal"><spanclass="pre">.callback(result)</span></tt>
called.</p>
<p>This is useful when you're writing synchronous code to an asynchronous
interface: i.e., some code is calling you expecting a <aclass="mochiref reference"href="#fn-deferred">Deferred</a>
result, but you don't actually need to do anything asynchronous. Just
Return a new cancellable <aclass="mochiref reference"href="#fn-deferred">Deferred</a> that will <ttclass="docutils literal"><spanclass="pre">.callback(res)</span></tt>
after at least <ttclass="docutils literal"><spanclass="pre">seconds</span></tt> seconds have elapsed.</blockquote>
<tr><tdclass="label"><aclass="fn-backref"href="#id2"name="id8">[2]</a></td><td>Twisted, an event-driven networking framework written in Python: <aclass="reference"href="http://twistedmatrix.com/">http://twistedmatrix.com/</a></td></tr>
<p>Copyright 2005 Bob Ippolito <<aclass="reference"href="mailto:bob@redivi.com">bob@redivi.com</a>>. This program is dual-licensed
free software; you can redistribute it and/or modify it under the terms of the
<aclass="reference"href="http://www.opensource.org/licenses/mit-license.php">MIT License</a> or the <aclass="reference"href="http://www.opensource.org/licenses/afl-2.1.php">Academic Free License v2.1</a>.</p>
<p>Represents a color. Component values should be integers between <ttclass="docutils literal"><spanclass="pre">0.0</span></tt>
and <ttclass="docutils literal"><spanclass="pre">1.0</span></tt>. You should use one of the <aclass="mochiref reference"href="#fn-color">Color</a> factory
functions such as <aclass="mochiref reference"href="#fn-color.fromrgb">Color.fromRGB</a>, <aclass="mochiref reference"href="#fn-color.fromhsl">Color.fromHSL</a>,
etc. instead of constructing <aclass="mochiref reference"href="#fn-color">Color</a> objects directly.</p>
<p><aclass="mochiref reference"href="#fn-color">Color</a> instances can be compared with
<aclass="mochiref reference"href="Base.html#fn-compare">MochiKit.Base.compare</a> (though ordering is on RGB, so is not
particularly meaningful except for equality), and the default <ttclass="docutils literal"><spanclass="pre">toString</span></tt>
Returns a <aclass="mochiref reference"href="#fn-color">Color</a> object from the given hexadecimal color string.
For example, <ttclass="docutils literal"><spanclass="pre">"#FFFFFF"</span></tt> would return a <aclass="mochiref reference"href="#fn-color">Color</a> with
<p>Return a <aclass="mochiref reference"href="#fn-color">Color</a> object from the given <ttclass="docutils literal"><spanclass="pre">hue</span></tt>, <ttclass="docutils literal"><spanclass="pre">saturation</span></tt>,
<ttclass="docutils literal"><spanclass="pre">lightness</span></tt> values. Values should be numbers between <ttclass="docutils literal"><spanclass="pre">0.0</span></tt> and
<p>If <ttclass="docutils literal"><spanclass="pre">alpha</span></tt> is not given, then <ttclass="docutils literal"><spanclass="pre">1.0</span></tt> (completely opaque) will be used.</p>
Returns a <aclass="mochiref reference"href="#fn-color">Color</a> object from the given decimal hsl color string.
For example, <ttclass="docutils literal"><spanclass="pre">"hsl(0,0%,100%)"</span></tt> would return a <aclass="mochiref reference"href="#fn-color">Color</a> with
<p>Return a <aclass="mochiref reference"href="#fn-color">Color</a> object from the given <ttclass="docutils literal"><spanclass="pre">hue</span></tt>, <ttclass="docutils literal"><spanclass="pre">saturation</span></tt>,
<ttclass="docutils literal"><spanclass="pre">value</span></tt> values. Values should be numbers between <ttclass="docutils literal"><spanclass="pre">0.0</span></tt> and
<p>If <ttclass="docutils literal"><spanclass="pre">alpha</span></tt> is not given, then <ttclass="docutils literal"><spanclass="pre">1.0</span></tt> (completely opaque) will be used.</p>
Returns a <aclass="mochiref reference"href="#fn-color">Color</a> object corresponding to the given
SVG 1.0 color keyword name <aclass="footnote-reference"href="#id7"id="id2"name="id2">[2]</a> as per the W3C CSS3
Color Module <aclass="footnote-reference"href="#id8"id="id3"name="id3">[3]</a>. <ttclass="docutils literal"><spanclass="pre">"transparent"</span></tt> is also accepted
as a color name, and will return <aclass="mochiref reference"href="#fn-color.transparentcolor">Color.transparentColor()</a>.</blockquote>
<p>Return a <aclass="mochiref reference"href="#fn-color">Color</a> object from the given <ttclass="docutils literal"><spanclass="pre">red</span></tt>, <ttclass="docutils literal"><spanclass="pre">green</span></tt>,
<ttclass="docutils literal"><spanclass="pre">blue</span></tt>, and <ttclass="docutils literal"><spanclass="pre">alpha</span></tt> values. Values should be numbers between <ttclass="docutils literal"><spanclass="pre">0</span></tt>
and <ttclass="docutils literal"><spanclass="pre">1.0</span></tt>.</p>
<p>If <ttclass="docutils literal"><spanclass="pre">alpha</span></tt> is not given, then <ttclass="docutils literal"><spanclass="pre">1.0</span></tt> (completely opaque) will be used.</p>
Returns a <aclass="mochiref reference"href="#fn-color">Color</a> object from the given decimal rgb color string.
For example, <ttclass="docutils literal"><spanclass="pre">"rgb(255,255,255)"</span></tt> would return a <aclass="mochiref reference"href="#fn-color">Color</a> with
<aclass="mochiref reference"href="#fn-color.fromhslstring">Color.fromHSLString</a> and <aclass="mochiref reference"href="#fn-color.fromname">Color.fromName</a> more
Returns an object with properties for each SVG 1.0 color keyword
name <aclass="footnote-reference"href="#id7"id="id4"name="id4">[2]</a> supported by CSS3 <aclass="footnote-reference"href="#id8"id="id5"name="id5">[3]</a>. Property names are the color keyword
name in lowercase, and the value is a string suitable for
Return a new <aclass="mochiref reference"href="#fn-color">Color</a> whose RGBA component values are a weighted sum
of this color and <ttclass="docutils literal"><spanclass="pre">other</span></tt>. Each component of the returned color
is the <ttclass="docutils literal"><spanclass="pre">fraction</span></tt> of other's value plus <ttclass="docutils literal"><spanclass="pre">1</span><spanclass="pre">-</span><spanclass="pre">fraction</span></tt> of this
<p>Return the decimal <ttclass="docutils literal"><spanclass="pre">"rgb(red,</span><spanclass="pre">green,</span><spanclass="pre">blue)"</span></tt> string representation of this
color.</p>
<p>If the alpha component is not <ttclass="docutils literal"><spanclass="pre">1.0</span></tt> (fully opaque), the
<ttclass="docutils literal"><spanclass="pre">"rgba(red,</span><spanclass="pre">green,</span><spanclass="pre">blue,</span><spanclass="pre">alpha)"</span></tt> string representation will be used.</p>
<p>Return the decimal <ttclass="docutils literal"><spanclass="pre">"hsl(hue,</span><spanclass="pre">saturation,</span><spanclass="pre">lightness)"</span></tt>
string representation of this color.</p>
<p>If the alpha component is not <ttclass="docutils literal"><spanclass="pre">1.0</span></tt> (fully opaque), the
Return the RGB (red, green, blue, alpha) components of this color as an
object with <ttclass="docutils literal"><spanclass="pre">r</span></tt>, <ttclass="docutils literal"><spanclass="pre">g</span></tt>, <ttclass="docutils literal"><spanclass="pre">b</span></tt>, and <ttclass="docutils literal"><spanclass="pre">a</span></tt> properties that have
values between <ttclass="docutils literal"><spanclass="pre">0.0</span></tt> and <ttclass="docutils literal"><spanclass="pre">1.0</span></tt>.</blockquote>
Return the HSL (hue, saturation, lightness, alpha) components of this
color as an object with <ttclass="docutils literal"><spanclass="pre">h</span></tt>, <ttclass="docutils literal"><spanclass="pre">s</span></tt>, <ttclass="docutils literal"><spanclass="pre">l</span></tt> and <ttclass="docutils literal"><spanclass="pre">a</span></tt> properties
that have values between <ttclass="docutils literal"><spanclass="pre">0.0</span></tt> and <ttclass="docutils literal"><spanclass="pre">1.0</span></tt>.</blockquote>
Return the HSV (hue, saturation, value, alpha) components of this
color as an object with <ttclass="docutils literal"><spanclass="pre">h</span></tt>, <ttclass="docutils literal"><spanclass="pre">s</span></tt>, <ttclass="docutils literal"><spanclass="pre">v</span></tt> and <ttclass="docutils literal"><spanclass="pre">a</span></tt> properties
that have values between <ttclass="docutils literal"><spanclass="pre">0.0</span></tt> and <ttclass="docutils literal"><spanclass="pre">1.0</span></tt>.</blockquote>
<p>Returns <ttclass="docutils literal"><spanclass="pre">num</span><spanclass="pre">*</span><spanclass="pre">scale</span></tt> clamped between <ttclass="docutils literal"><spanclass="pre">0</span></tt> and <ttclass="docutils literal"><spanclass="pre">scale</span></tt>.</p>
<p><aclass="mochiref reference"href="#fn-clampcolorcomponent">clampColorComponent</a> is not exported by default when using JSAN.</p>
<p>Convert num to a zero padded hexadecimal digit for use in a hexadecimal
color string. Num should be an integer between <ttclass="docutils literal"><spanclass="pre">0</span></tt> and <ttclass="docutils literal"><spanclass="pre">255</span></tt>.</p>
<p><aclass="mochiref reference"href="#fn-tocolorpart">toColorPart</a> is not exported by default when using JSAN.</p>
<p>Computes HSL values based on the provided RGB values. The return value is
a mapping with <ttclass="docutils literal"><spanclass="pre">"h"</span></tt>, <ttclass="docutils literal"><spanclass="pre">"s"</span></tt>, <ttclass="docutils literal"><spanclass="pre">"l"</span></tt> and <ttclass="docutils literal"><spanclass="pre">"a"</span></tt> keys.</p>
<p>Computes HSV values based on the provided RGB values. The return value is
a mapping with <ttclass="docutils literal"><spanclass="pre">"h"</span></tt>, <ttclass="docutils literal"><spanclass="pre">"s"</span></tt>, <ttclass="docutils literal"><spanclass="pre">"v"</span></tt> and <ttclass="docutils literal"><spanclass="pre">"a"</span></tt> keys.</p>
<p>Copyright 2005 Bob Ippolito <<aclass="reference"href="mailto:bob@redivi.com">bob@redivi.com</a>>. This program is dual-licensed
free software; you can redistribute it and/or modify it under the terms of the
<aclass="reference"href="http://www.opensource.org/licenses/mit-license.php">MIT License</a> or the <aclass="reference"href="http://www.opensource.org/licenses/afl-2.1.php">Academic Free License v2.1</a>.</p>
<p>As you probably know, the DOM APIs are some of the most painful Java-inspired
APIs you'll run across from a highly dynamic language. Don't worry about that
though, because they provide a reasonable basis to build something that
sucks a lot less.</p>
<p>MochiKit.DOM takes much of its inspiration from Nevow's <aclass="footnote-reference"href="#id5"id="id1"name="id1">[1]</a> stan <aclass="footnote-reference"href="#id6"id="id2"name="id2">[2]</a>.
This means you choose a tag, give it some attributes, then stuff it full
of <em>whatever objects you want</em>. MochiKit.DOM isn't stupid, it knows that
a string should be a text node, and that you want functions to be called,
and that <ttclass="docutils literal"><spanclass="pre">Array</span></tt>-like objects should be expanded, and stupid <ttclass="docutils literal"><spanclass="pre">null</span></tt> values
should be skipped.</p>
<p>Hell, it will let you return strings from functions, and use iterators from
<aclass="mochiref reference"href="Iter.html">MochiKit.Iter</a>. If that's not enough, just teach it new tricks with
<aclass="mochiref reference"href="#fn-registerdomconverter">registerDOMConverter</a>. If you have never used an API like this for
creating DOM elements, you've been wasting your damn time. Get with it!</p>
<p>In order of precedence, <aclass="mochiref reference"href="#fn-createdom">createDOM</a> coerces given arguments to DOM
nodes using the following rules:</p>
<olclass="arabic simple">
<li>Functions are called with a <ttclass="docutils literal"><spanclass="pre">this</span></tt> of the parent
node and their return value is subject to the
following rules (even this one).</li>
<li><ttclass="docutils literal"><spanclass="pre">undefined</span></tt> and <ttclass="docutils literal"><spanclass="pre">null</span></tt> are ignored.</li>
<li>Iterables (see <aclass="mochiref reference"href="Iter.html">MochiKit.Iter</a>) are flattened
(as if they were passed in-line as nodes) and each
return value is subject to all of these rules.</li>
<li>Values that look like DOM nodes (objects with a
<ttclass="docutils literal"><spanclass="pre">.nodeType</span><spanclass="pre">></span><spanclass="pre">0</span></tt>) are <ttclass="docutils literal"><spanclass="pre">.appendChild</span></tt>'ed to the created
DOM fragment.</li>
<li>Strings are wrapped up with <ttclass="docutils literal"><spanclass="pre">document.createTextNode</span></tt></li>
<li>Objects that are not strings are run through the <ttclass="docutils literal"><spanclass="pre">domConverters</span></tt>
<p>In order to prevent having to pass a <ttclass="docutils literal"><spanclass="pre">window</span></tt> and/or <ttclass="docutils literal"><spanclass="pre">document</span></tt>
variable to every MochiKit.DOM function (e.g. when working with a
child window), MochiKit.DOM maintains a context variable for each
of them. They are managed with the <aclass="mochiref reference"href="#fn-withwindow">withWindow</a> and
<aclass="mochiref reference"href="#fn-withdocument">withDocument</a> functions, and can be acquired with
<aclass="mochiref reference"href="#fn-currentwindow">currentWindow()</a> and <aclass="mochiref reference"href="#fn-currentdocument">currentDocument()</a></p>
<p>For example, if you are creating DOM nodes in a child window, you
could do something like this:</p>
<preclass="literal-block">
withWindow(child, function () {
var doc = currentDocument();
appendChildNodes(doc.body, H1(null, "This is in the child!"));
});
</pre>
<p>Note that <aclass="mochiref reference"href="#fn-withwindow">withWindow(win, ...)</a> also implies
<p>The <aclass="mochiref reference"href="#fn-hideelement">hideElement</a> and <aclass="mochiref reference"href="#fn-showelement">showElement</a> functions are
provided as a convenience, but only work for elements that are
<ttclass="docutils literal"><spanclass="pre">display:</span><spanclass="pre">block</span></tt>. For a general solution to showing, hiding, and checking
the explicit visibility of elements, we recommend using a solution that
Ensure that the given <ttclass="docutils literal"><spanclass="pre">element</span></tt> has <ttclass="docutils literal"><spanclass="pre">className</span></tt> set as part of its
class attribute. This will not disturb other class names.
<ttclass="docutils literal"><spanclass="pre">element</span></tt> is looked up with <aclass="mochiref reference"href="#fn-getelement">getElement</a>, so string identifiers
<p>Note that <aclass="mochiref reference"href="#fn-addloadevent">addLoadEvent</a> can not be used in combination with
<aclass="mochiref reference"href="Signal.html">MochiKit.Signal</a> if the <ttclass="docutils literal"><spanclass="pre">onload</span></tt> event is connected.
Once an event is connected with <aclass="mochiref reference"href="Signal.html">MochiKit.Signal</a>, no other APIs
may be used for that same event.</p>
<p>This will stack <ttclass="docutils literal"><spanclass="pre">window.onload</span></tt> functions on top of each other.
Each function added will be called after <ttclass="docutils literal"><spanclass="pre">onload</span></tt> in the
<p>Note that <aclass="mochiref reference"href="#fn-addtocallstack">addToCallStack</a> is not compatible with
<aclass="mochiref reference"href="Signal.html">MochiKit.Signal</a>. Once an event is connected with
<aclass="mochiref reference"href="Signal.html">MochiKit.Signal</a>, no other APIs may be used for that same event.</p>
<p>Set the property <ttclass="docutils literal"><spanclass="pre">path</span></tt> of <ttclass="docutils literal"><spanclass="pre">target</span></tt> to a function that calls the
existing function at that property (if any), then calls <ttclass="docutils literal"><spanclass="pre">func</span></tt>.</p>
<p>If <ttclass="docutils literal"><spanclass="pre">target[path]()</span></tt> returns exactly <ttclass="docutils literal"><spanclass="pre">false</span></tt>, then <ttclass="docutils literal"><spanclass="pre">func</span></tt> will
not be called.</p>
<p>If <ttclass="docutils literal"><spanclass="pre">once</span></tt> is <ttclass="docutils literal"><spanclass="pre">true</span></tt>, then <ttclass="docutils literal"><spanclass="pre">target[path]</span></tt> is set to <ttclass="docutils literal"><spanclass="pre">null</span></tt> after
the function call stack has completed.</p>
<p>If called several times for the same <ttclass="docutils literal"><spanclass="pre">target[path]</span></tt>, it will create
a stack of functions (instead of just a pair).</p>
<dd><pclass="first">An object whose properties will be used as the attributes
(e.g. <ttclass="docutils literal"><spanclass="pre">{'style':</span><spanclass="pre">'display:block'}</span></tt>), or <ttclass="docutils literal"><spanclass="pre">null</span></tt> if no
attributes need to be set.</p>
<p>See <aclass="mochiref reference"href="#fn-updatenodeattributes">updateNodeAttributes</a> for more information.</p>
<pclass="last">For convenience, if <ttclass="docutils literal"><spanclass="pre">attrs</span></tt> is a string, <ttclass="docutils literal"><spanclass="pre">null</span></tt> is used
and the string will be considered the first <ttclass="docutils literal"><spanclass="pre">node</span></tt>.</p>
Return the current <ttclass="docutils literal"><spanclass="pre">document</span></tt><aclass="reference"href="#dom-context">DOM Context</a>. This will always
be the same as the global <ttclass="docutils literal"><spanclass="pre">document</span></tt> unless <aclass="mochiref reference"href="#fn-withdocument">withDocument</a> or
<aclass="mochiref reference"href="#fn-withwindow">withWindow</a> is currently executing.</blockquote>
Return the current <ttclass="docutils literal"><spanclass="pre">window</span></tt><aclass="reference"href="#dom-context">DOM Context</a>. This will always
be the same as the global <ttclass="docutils literal"><spanclass="pre">window</span></tt> unless <aclass="mochiref reference"href="#fn-withwindow">withWindow</a> is
Return the absolute pixel width and height of <ttclass="docutils literal"><spanclass="pre">element</span></tt> as an object with
<ttclass="docutils literal"><spanclass="pre">w</span></tt> and <ttclass="docutils literal"><spanclass="pre">h</span></tt> properties, or <ttclass="docutils literal"><spanclass="pre">undefined</span></tt> if <ttclass="docutils literal"><spanclass="pre">element</span></tt> is not in the
document. <ttclass="docutils literal"><spanclass="pre">element</span></tt> may be specified as a string to be looked up with
<aclass="mochiref reference"href="#fn-getelement">getElement</a>, a DOM element, or trivially as an object with
<p>Return the absolute pixel position of <ttclass="docutils literal"><spanclass="pre">element</span></tt> in the document as an
object with <ttclass="docutils literal"><spanclass="pre">x</span></tt> and <ttclass="docutils literal"><spanclass="pre">y</span></tt> properties, or <ttclass="docutils literal"><spanclass="pre">undefined</span></tt> if <ttclass="docutils literal"><spanclass="pre">element</span></tt>
is not in the document. <ttclass="docutils literal"><spanclass="pre">element</span></tt> may be specified as a string to
be looked up with <aclass="mochiref reference"href="#fn-getelement">getElement</a>, a DOM element, or trivially
as an object with <ttclass="docutils literal"><spanclass="pre">x</span></tt> and/or <ttclass="docutils literal"><spanclass="pre">y</span></tt> properties.</p>
<p>If <ttclass="docutils literal"><spanclass="pre">relativeTo</span></tt> is given, then its coordinates are subtracted from
the absolute position of <ttclass="docutils literal"><spanclass="pre">element</span></tt>, e.g.:</p>
<preclass="literal-block">
var elemPos = elementPosition(elem);
var anotherElemPos = elementPosition(anotherElem);
Search the DOM tree, starting at <ttclass="docutils literal"><spanclass="pre">elem</span></tt>, for any elements with a
<ttclass="docutils literal"><spanclass="pre">name</span></tt> and <ttclass="docutils literal"><spanclass="pre">value</span></tt> attribute. Return a 2-element <ttclass="docutils literal"><spanclass="pre">Array</span></tt> of
<ttclass="docutils literal"><spanclass="pre">names</span></tt> and <ttclass="docutils literal"><spanclass="pre">values</span></tt> suitable for use with
<p>Returns an array of elements in <ttclass="docutils literal"><spanclass="pre">parent</span></tt> that match the tag name
and class name provided. If <ttclass="docutils literal"><spanclass="pre">parent</span></tt> is a string, it will be looked
up with <aclass="mochiref reference"href="#fn-getelement">getElement</a>.</p>
<p>If <ttclass="docutils literal"><spanclass="pre">tagName</span></tt> is <ttclass="docutils literal"><spanclass="pre">null</span></tt> or <ttclass="docutils literal"><spanclass="pre">"*"</span></tt>, all elements will be searched
for the matching class.</p>
<p>If <ttclass="docutils literal"><spanclass="pre">className</span></tt> is <ttclass="docutils literal"><spanclass="pre">null</span></tt>, all elements matching the provided tag are
Return the pixel width and height of the viewport as an object with <ttclass="docutils literal"><spanclass="pre">w</span></tt>
and <ttclass="docutils literal"><spanclass="pre">h</span></tt> properties. <ttclass="docutils literal"><spanclass="pre">element</span></tt> is looked up with
<aclass="mochiref reference"href="#fn-getelement">getElement</a>, so string identifiers are also acceptable.</blockquote>
Return <ttclass="docutils literal"><spanclass="pre">true</span></tt> if <ttclass="docutils literal"><spanclass="pre">className</span></tt> is found on the <ttclass="docutils literal"><spanclass="pre">element</span></tt>.
<ttclass="docutils literal"><spanclass="pre">element</span></tt> is looked up with <aclass="mochiref reference"href="#fn-getelement">getElement</a>, so string identifiers
Ensure that the given <ttclass="docutils literal"><spanclass="pre">element</span></tt> does not have <ttclass="docutils literal"><spanclass="pre">className</span></tt> set as part
of its class attribute. This will not disturb other class names.
<ttclass="docutils literal"><spanclass="pre">element</span></tt> is looked up with <aclass="mochiref reference"href="#fn-getelement">getElement</a>, so string identifiers
<p>If <ttclass="docutils literal"><spanclass="pre">asArray</span></tt> is <ttclass="docutils literal"><spanclass="pre">true</span></tt>, then an <ttclass="docutils literal"><spanclass="pre">Array</span></tt> will be returned with
each individual text node. These two are equivalent:</p>
Set the entire class attribute of <ttclass="docutils literal"><spanclass="pre">element</span></tt> to <ttclass="docutils literal"><spanclass="pre">className</span></tt>.
<ttclass="docutils literal"><spanclass="pre">element</span></tt> is looked up with <aclass="mochiref reference"href="#fn-getelement">getElement</a>, so string identifiers
<dd>An object with <ttclass="docutils literal"><spanclass="pre">w</span></tt> and <ttclass="docutils literal"><spanclass="pre">h</span></tt> properties</dd>
<dd>An object with <ttclass="docutils literal"><spanclass="pre">x</span></tt> and <ttclass="docutils literal"><spanclass="pre">y</span></tt> properties</dd>
Sets <ttclass="docutils literal"><spanclass="pre">opacity</span></tt> for <ttclass="docutils literal"><spanclass="pre">element</span></tt>. Valid <ttclass="docutils literal"><spanclass="pre">opacity</span></tt> values range from 0
(invisible) to 1 (opaque). <ttclass="docutils literal"><spanclass="pre">element</span></tt> is looked up with
<aclass="mochiref reference"href="#fn-getelement">getElement</a>, so string identifiers are also acceptable.</blockquote>
<p>Replace <ttclass="docutils literal"><spanclass="pre">dest</span></tt> in a DOM tree with <ttclass="docutils literal"><spanclass="pre">src</span></tt>, returning <ttclass="docutils literal"><spanclass="pre">src</span></tt>.</p>
<dd>the DOM element (or string id of one) to replace it with, or
<ttclass="docutils literal"><spanclass="pre">null</span></tt> if <ttclass="docutils literal"><spanclass="pre">dest</span></tt> is to be removed (replaced with nothing).</dd>
<dt><em>returns</em>:</dt>
<dd>a DOM element (<ttclass="docutils literal"><spanclass="pre">src</span></tt>)</dd>
If <ttclass="docutils literal"><spanclass="pre">fromClass</span></tt> is set on <ttclass="docutils literal"><spanclass="pre">element</span></tt>, replace it with <ttclass="docutils literal"><spanclass="pre">toClass</span></tt>.
This will not disturb other classes on that element.
<ttclass="docutils literal"><spanclass="pre">element</span></tt> is looked up with <aclass="mochiref reference"href="#fn-getelement">getElement</a>, so string identifiers
<dd><pclass="first">An object whose properties will be used to set the attributes
(e.g. <ttclass="docutils literal"><spanclass="pre">{'class':</span><spanclass="pre">'invisible'}</span></tt>), or <ttclass="docutils literal"><spanclass="pre">null</span></tt> if no
attributes need to be set. If an object is given for the
attribute value (e.g. <ttclass="docutils literal"><spanclass="pre">{'style':</span><spanclass="pre">{'display':</span><spanclass="pre">'block'}}</span></tt>)
then <aclass="mochiref reference"href="Base.html#fn-updatetree">MochiKit.Base.updatetree</a> will be used to set that
attribute.</p>
<pclass="last">Note that it will do the right thing for IE, so don't do
the <ttclass="docutils literal"><spanclass="pre">class</span></tt> -><ttclass="docutils literal"><spanclass="pre">className</span></tt> hack yourself, and it deals with
<p>Call <ttclass="docutils literal"><spanclass="pre">func</span></tt> with the <ttclass="docutils literal"><spanclass="pre">window</span></tt><aclass="reference"href="#dom-context">DOM Context</a> set to <ttclass="docutils literal"><spanclass="pre">win</span></tt> and
the <ttclass="docutils literal"><spanclass="pre">document</span></tt><aclass="reference"href="#dom-context">DOM Context</a> set to <ttclass="docutils literal"><spanclass="pre">win.document</span></tt>. When
<ttclass="docutils literal"><spanclass="pre">func()</span></tt> returns or throws an error, the <aclass="reference"href="#dom-context">DOM Context</a> will be
restored to its previous state.</p>
<p>The return value of <ttclass="docutils literal"><spanclass="pre">func()</span></tt> is returned by this function.</p>
<p>Call <ttclass="docutils literal"><spanclass="pre">func</span></tt> with the <ttclass="docutils literal"><spanclass="pre">doc</span></tt><aclass="reference"href="#dom-context">DOM Context</a> set to <ttclass="docutils literal"><spanclass="pre">doc</span></tt>.
When <ttclass="docutils literal"><spanclass="pre">func()</span></tt> returns or throws an error, the <aclass="reference"href="#dom-context">DOM Context</a>
will be restored to its previous state.</p>
<p>The return value of <ttclass="docutils literal"><spanclass="pre">func()</span></tt> is returned by this function.</p>
<tr><tdclass="label"><aname="id5">[1]</a></td><td><em>(<aclass="fn-backref"href="#id1">1</a>, <aclass="fn-backref"href="#id3">2</a>)</em> Nevow, a web application construction kit for Python: <aclass="reference"href="http://nevow.com/">http://nevow.com/</a></td></tr>
<tr><tdclass="label"><aname="id6">[2]</a></td><td><em>(<aclass="fn-backref"href="#id2">1</a>, <aclass="fn-backref"href="#id4">2</a>)</em> nevow.stan is a domain specific language for Python
(read as "crazy getitem/call overloading abuse") that Donovan and I
schemed up at PyCon 2003 at this super ninja Python/C++ programmer's
(David Abrahams) hotel room. Donovan later inflicted this upon the
masses in Nevow. Check out the Divmod project page for some
<p>Copyright 2005 Bob Ippolito <<aclass="reference"href="mailto:bob@redivi.com">bob@redivi.com</a>>. This program is dual-licensed
free software; you can redistribute it and/or modify it under the terms of the
<aclass="reference"href="http://www.opensource.org/licenses/mit-license.php">MIT License</a> or the <aclass="reference"href="http://www.opensource.org/licenses/afl-2.1.php">Academic Free License v2.1</a>.</p>
Convert a <ttclass="docutils literal"><spanclass="pre">Date</span></tt> object to an ISO 8601 <aclass="footnote-reference"href="#id3"id="id2"name="id2">[1]</a> date string (YYYY-MM-DD)</blockquote>
<tr><tdclass="label"><aname="id3">[1]</a></td><td><em>(<aclass="fn-backref"href="#id1">1</a>, <aclass="fn-backref"href="#id2">2</a>)</em> W3C profile of ISO 8601: <aclass="reference"href="http://www.w3.org/TR/NOTE-datetime">http://www.w3.org/TR/NOTE-datetime</a></td></tr>
<p>Copyright 2005 Bob Ippolito <<aclass="reference"href="mailto:bob@redivi.com">bob@redivi.com</a>>. This program is dual-licensed
free software; you can redistribute it and/or modify it under the terms of the
<aclass="reference"href="http://www.opensource.org/licenses/mit-license.php">MIT License</a> or the <aclass="reference"href="http://www.opensource.org/licenses/afl-2.1.php">Academic Free License v2.1</a>.</p>
<td>The decimal separator. The quantity of <ttclass="docutils literal"><spanclass="pre">#</span></tt> or <ttclass="docutils literal"><spanclass="pre">0</span></tt>
after the decimal separator will determine the precision of
the result. If no decimal separator is present, the
fractional precision is <ttclass="docutils literal"><spanclass="pre">0</span></tt> -- meaning that it will be
<td>If present, the number will be multiplied by <ttclass="docutils literal"><spanclass="pre">100</span></tt> and
the <ttclass="docutils literal"><spanclass="pre">%</span></tt> will be replaced by <ttclass="docutils literal"><spanclass="pre">locale.percent</span></tt>.</td>
<p>Returns a string based on <ttclass="docutils literal"><spanclass="pre">str</span></tt> with leading whitespace stripped.</p>
<p>If <ttclass="docutils literal"><spanclass="pre">chars</span></tt> is given, then that expression will be used instead of
whitespace. <ttclass="docutils literal"><spanclass="pre">chars</span></tt> should be a string suitable for use in a <ttclass="docutils literal"><spanclass="pre">RegExp</span></tt>
<p>Roughly equivalent to: <ttclass="docutils literal"><spanclass="pre">sprintf("%.2f%%",</span><spanclass="pre">someFloat</span><spanclass="pre">*</span><spanclass="pre">100)</span></tt></p>
<p>Return a string representation of <ttclass="docutils literal"><spanclass="pre">aNumber</span></tt>, rounded to <ttclass="docutils literal"><spanclass="pre">precision</span></tt>
digits with trailing zeros. This is similar to
<ttclass="docutils literal"><spanclass="pre">Number.toFixed(aNumber,</span><spanclass="pre">precision)</span></tt>, but this has implementation
consistent rounding behavior (some versions of Safari round 0.5 down!)
and also includes preceding <ttclass="docutils literal"><spanclass="pre">0</span></tt> for numbers less than <ttclass="docutils literal"><spanclass="pre">1</span></tt> (Safari,
again).</p>
<p>For example, <aclass="mochiref reference"href="#fn-roundtofixed">roundToFixed(0.1357, 2)</a> returns <ttclass="docutils literal"><spanclass="pre">0.14</span></tt> on every
supported platform, where some return <ttclass="docutils literal"><spanclass="pre">.13</span></tt> for <ttclass="docutils literal"><spanclass="pre">(0.1357).toFixed(2)</span></tt>.</p>
<p>Returns a string based on <ttclass="docutils literal"><spanclass="pre">str</span></tt> with trailing whitespace stripped.</p>
<p>If <ttclass="docutils literal"><spanclass="pre">chars</span></tt> is given, then that expression will be used instead of
whitespace. <ttclass="docutils literal"><spanclass="pre">chars</span></tt> should be a string suitable for use in a <ttclass="docutils literal"><spanclass="pre">RegExp</span></tt>
<p>Returns a string based on <ttclass="docutils literal"><spanclass="pre">str</span></tt> with leading and trailing whitespace
stripped (equivalent to <aclass="mochiref reference"href="#fn-lstrip">lstrip(rstrip(str, chars), chars)</a>).</p>
<p>If <ttclass="docutils literal"><spanclass="pre">chars</span></tt> is given, then that expression will be used instead of
whitespace. <ttclass="docutils literal"><spanclass="pre">chars</span></tt> should be a string suitable for use in a <ttclass="docutils literal"><spanclass="pre">RegExp</span></tt>
<p>Return a string representation of <ttclass="docutils literal"><spanclass="pre">aNumber</span></tt>, truncated to <ttclass="docutils literal"><spanclass="pre">precision</span></tt>
digits with trailing zeros. This is similar to
<ttclass="docutils literal"><spanclass="pre">aNumber.toFixed(precision)</span></tt>, but this truncates rather than rounds and
has implementation consistent behavior for numbers less than 1.
Specifically, <aclass="mochiref reference"href="#fn-trunctofixed">truncToFixed(aNumber, precision)</a> will always have a
preceding <ttclass="docutils literal"><spanclass="pre">0</span></tt> for numbers less than <ttclass="docutils literal"><spanclass="pre">1</span></tt>.</p>
<p>For example, <aclass="mochiref reference"href="#fn-tofixed">toFixed(0.1357, 2)</a> returns <ttclass="docutils literal"><spanclass="pre">0.13</span></tt>.</p>
<p>Copyright 2005 Bob Ippolito <<aclass="reference"href="mailto:bob@redivi.com">bob@redivi.com</a>>. This program is dual-licensed
free software; you can redistribute it and/or modify it under the terms of the
<aclass="reference"href="http://www.opensource.org/licenses/mit-license.php">MIT License</a> or the <aclass="reference"href="http://www.opensource.org/licenses/afl-2.1.php">Academic Free License v2.1</a>.</p>
<p>All of the functional programming missing from <aclass="mochiref reference"href="Base.html">MochiKit.Base</a> lives
here. The functionality in this module is largely inspired by Python's iteration
protocol <aclass="footnote-reference"href="#id4"id="id1"name="id1">[1]</a>, and the itertools module <aclass="footnote-reference"href="#id5"id="id2"name="id2">[2]</a>.</p>
<p>MochiKit.Iter defines a standard way to iterate over anything, that you can
extend with <aclass="mochiref reference"href="#fn-registeriterator">registerIterator</a>, or by implementing the <ttclass="docutils literal"><spanclass="pre">.iter()</span></tt>
protocol. Iterators are lazy, so it can potentially be cheaper to build a
filter chain of iterators than to build lots of intermediate arrays.
Especially when the data set is very large, but the result is not.</p>
Return <ttclass="docutils literal"><spanclass="pre">true</span></tt> if <ttclass="docutils literal"><spanclass="pre">func(item)</span></tt> is <ttclass="docutils literal"><spanclass="pre">true</span></tt> for every item in
Call <ttclass="docutils literal"><spanclass="pre">func</span></tt> for each item in <ttclass="docutils literal"><spanclass="pre">iterable</span></tt>, and don't save the results.</blockquote>
Just like <aclass="mochiref reference"href="#fn-list">list(iterable)</a>, except it pushes results on <ttclass="docutils literal"><spanclass="pre">lst</span></tt>
<ttclass="docutils literal"><spanclass="pre">ifilter(pred,</span><spanclass="pre">seq)</span></tt> --> elements of seq where <ttclass="docutils literal"><spanclass="pre">pred(elem)</span></tt> is <ttclass="docutils literal"><spanclass="pre">true</span></tt></blockquote>
<dt><ttclass="docutils literal"><spanclass="pre">ifilterfalse(pred,</span><spanclass="pre">seq)</span></tt> --> elements of seq where <ttclass="docutils literal"><spanclass="pre">pred(elem)</span></tt> is</dt>
<dt><ttclass="docutils literal"><spanclass="pre">islice(seq,</span><spanclass="pre">[start,]</span><spanclass="pre">stop[,</span><spanclass="pre">step])</span></tt> --> elements from</dt>
<dd>seq[start:stop:step] (in Python slice syntax)</dd>
<li>If <ttclass="docutils literal"><spanclass="pre">iterable</span></tt> is an iterator (implements <ttclass="docutils literal"><spanclass="pre">.next()</span></tt>), then it will
be returned as-is.</li>
<li>If <ttclass="docutils literal"><spanclass="pre">iterable</span></tt> is an iterator factory (implements <ttclass="docutils literal"><spanclass="pre">.iter()</span></tt>), then
the result of <ttclass="docutils literal"><spanclass="pre">iterable.iter()</span></tt> will be returned.</li>
<li>Otherwise, the iterator factory <aclass="mochiref reference"href="Base.html#fn-adapterregistry">MochiKit.Base.AdapterRegistry</a>
is used to find a match.</li>
<li>If no factory is found, it will throw <ttclass="docutils literal"><spanclass="pre">TypeError</span></tt></li>
</ol>
<p>Built-in iterator factories are present for Array-like objects, and
objects that implement the <ttclass="docutils literal"><spanclass="pre">iterateNext</span></tt> protocol (e.g. the result of
Convert <ttclass="docutils literal"><spanclass="pre">iterable</span></tt> to a new <ttclass="docutils literal"><spanclass="pre">Array</span></tt></blockquote>
<p>Return an iterator containing an arithmetic progression of integers.</p>
<p><ttclass="docutils literal"><spanclass="pre">range(i,</span><spanclass="pre">j)</span></tt> returns <aclass="mochiref reference"href="#fn-iter">iter([i, i + 1, i + 2, ..., j - 1])</a></p>
<p><ttclass="docutils literal"><spanclass="pre">start</span></tt> (!) defaults to <ttclass="docutils literal"><spanclass="pre">0</span></tt>. When <ttclass="docutils literal"><spanclass="pre">step</span></tt> is given, it specifies the
increment (or decrement). The end point is omitted!</p>
<p>For example, <ttclass="docutils literal"><spanclass="pre">range(4)</span></tt> returns <aclass="mochiref reference"href="#fn-iter">iter([0, 1, 2, 3])</a>.
This iterates over exactly the valid indexes for an array of 4 elements.</p>
<p>Register an iterator factory for use with the iter function.</p>
<p><ttclass="docutils literal"><spanclass="pre">check</span></tt> is a <ttclass="docutils literal"><spanclass="pre">function(a)</span></tt> that returns <ttclass="docutils literal"><spanclass="pre">true</span></tt> if <ttclass="docutils literal"><spanclass="pre">a</span></tt> can be
converted into an iterator with <ttclass="docutils literal"><spanclass="pre">iterfactory</span></tt>.</p>
<p><ttclass="docutils literal"><spanclass="pre">iterfactory</span></tt> is a <ttclass="docutils literal"><spanclass="pre">function(a)</span></tt> that returns an object with a
<ttclass="docutils literal"><spanclass="pre">.next()</span></tt> method that returns the next value in the sequence.</p>
<p><ttclass="docutils literal"><spanclass="pre">iterfactory</span></tt> is guaranteed to only be called if <ttclass="docutils literal"><spanclass="pre">check(a)</span></tt>
returns a true value.</p>
<p>If <ttclass="docutils literal"><spanclass="pre">override</span></tt> is <ttclass="docutils literal"><spanclass="pre">true</span></tt>, then it will be made the
highest precedence iterator factory. Otherwise, the lowest.</p>
<ttclass="docutils literal"><spanclass="pre">repeat(elem,</span><spanclass="pre">[,n])</span></tt> --> elem, elem, elem, ... endlessly or up to n times</blockquote>
Return <ttclass="docutils literal"><spanclass="pre">true</span></tt> if <ttclass="docutils literal"><spanclass="pre">func(item)</span></tt> is <ttclass="docutils literal"><spanclass="pre">true</span></tt> for at least one item in
<tr><tdclass="label"><aclass="fn-backref"href="#id3"name="id6">[3]</a></td><td>Iteration in JavaScript: <aclass="reference"href="http://bob.pythonmac.org/archives/2005/07/06/iteration-in-javascript/">http://bob.pythonmac.org/archives/2005/07/06/iteration-in-javascript/</a></td></tr>
<p>Copyright 2005 Bob Ippolito <<aclass="reference"href="mailto:bob@redivi.com">bob@redivi.com</a>>. This program is dual-licensed
free software; you can redistribute it and/or modify it under the terms of the
<aclass="reference"href="http://www.opensource.org/licenses/mit-license.php">MIT License</a> or the <aclass="reference"href="http://www.opensource.org/licenses/afl-2.1.php">Academic Free License v2.1</a>.</p>
<p>As of MochiKit 1.3, the default logger will log all messages to your browser's
native console. This is currently supported in Safari, Opera 9, and Firefox
when the <aclass="reference"href="http://www.joehewitt.com/software/firebug/">FireBug</a> extension is installed.</p>
<p>To disable this behavior:</p>
<preclass="literal-block">
MochiKit.Logging.logger.useNativeLogging = false;
</pre>
</div>
<divclass="section">
<h2><aid="bookmarklet-based-debugging"name="bookmarklet-based-debugging">Bookmarklet Based Debugging</a></h2>
<p>JavaScript is at a serious disadvantage without a standard console for
"print" statements. Everything else has one. The closest thing that
you get in a browser environment is the <ttclass="docutils literal"><spanclass="pre">alert</span></tt> function, which is
absolutely evil.</p>
<p>This leaves you with one reasonable solution: do your logging in the page
somehow. The problem here is that you don't want to clutter the page with
debugging tools. The solution to that problem is what we call BBD, or
Bookmarklet Based Debugging <aclass="footnote-reference"href="#id8"id="id4"name="id4">[3]</a>.</p>
<p>Simply create a bookmarklet for <aclass="reference"href="javascript:MochiKit.Logging.logger.debuggingBookmarklet()">javascript:MochiKit.Logging.logger.debuggingBookmarklet()</a>,
and whack it whenever you want to see what's in the logger. Of course, this
means you must drink the MochiKit.Logging kool-aid. It's tangy and sweet,
don't worry.</p>
<p>Currently this is an ugly <ttclass="docutils literal"><spanclass="pre">alert</span></tt>, but we'll have something spiffy
Real Soon Now, and when we do, you only have to upgrade MochiKit.Logging,
<p>A basic logger object that has a buffer of recent messages
plus a listener dispatch mechanism for "real-time" logging
of important messages.</p>
<p><ttclass="docutils literal"><spanclass="pre">maxSize</span></tt> is the maximum number of entries in the log.
If <ttclass="docutils literal"><spanclass="pre">maxSize</span><spanclass="pre">>=</span><spanclass="pre">0</span></tt>, then the log will not buffer more than that
many messages. So if you don't like logging at all, be sure to
Remove a listener using the ident given to <aclass="mochiref reference"href="#fn-logger.prototype.addlistener">Logger.prototype.addListener</a></blockquote>
<tr><tdclass="label"><aclass="fn-backref"href="#id2"name="id7">[2]</a></td><td>PEP 282, where they admit all of the Java influence: <aclass="reference"href="http://www.python.org/peps/pep-0282.html">http://www.python.org/peps/pep-0282.html</a></td></tr>
<p>Copyright 2005 Bob Ippolito <<aclass="reference"href="mailto:bob@redivi.com">bob@redivi.com</a>>. This program is dual-licensed
free software; you can redistribute it and/or modify it under the terms of the
<aclass="reference"href="http://www.opensource.org/licenses/mit-license.php">MIT License</a> or the <aclass="reference"href="http://www.opensource.org/licenses/afl-2.1.php">Academic Free License v2.1</a>.</p>
<p>A listener for a <aclass="mochiref reference"href="Logging.html">MochiKit.Logging</a> logger with an interactive
DOM representation.</p>
<p>If <ttclass="docutils literal"><spanclass="pre">inline</span></tt> is <ttclass="docutils literal"><spanclass="pre">true</span></tt>, then the <ttclass="docutils literal"><spanclass="pre">LoggingPane</span></tt> will be a <ttclass="docutils literal"><spanclass="pre">DIV</span></tt>
at the bottom of the document. Otherwise, it will be in a pop-up
window with a name based on the calling page's URL. If there is an
element in the document with an id of <ttclass="docutils literal"><spanclass="pre">_MochiKit_LoggingPane</span></tt>,
it will be used instead of appending a new <ttclass="docutils literal"><spanclass="pre">DIV</span></tt> to the body.</p>
<p><ttclass="docutils literal"><spanclass="pre">logger</span></tt> is the reference to the <aclass="mochiref reference"href="Logging.html#fn-logger">MochiKit.Logging.Logger</a> to
listen to. If not specified, the global default logger is used.</p>
<dd>Reference to the pop-up window (<ttclass="docutils literal"><spanclass="pre">undefined</span></tt> if <ttclass="docutils literal"><spanclass="pre">inline</span></tt>)</dd>
<dd><ttclass="docutils literal"><spanclass="pre">true</span></tt> if the <ttclass="docutils literal"><spanclass="pre">LoggingPane</span></tt> is inline</dd>
Close the <aclass="mochiref reference"href="#fn-loggingpane">LoggingPane</a> (close the child window, or
remove the <ttclass="docutils literal"><spanclass="pre">_MochiKit_LoggingPane</span></tt><ttclass="docutils literal"><spanclass="pre">DIV</span></tt> from the document).</blockquote>
Create or return an existing <aclass="mochiref reference"href="#fn-loggingpane">LoggingPane</a> for this document
with the given inline setting. This is preferred over using
<aclass="mochiref reference"href="#fn-loggingpane">LoggingPane</a> directly, as only one <aclass="mochiref reference"href="#fn-loggingpane">LoggingPane</a>
should be present in a given document.</blockquote>
<p>Copyright 2005 Bob Ippolito <<aclass="reference"href="mailto:bob@redivi.com">bob@redivi.com</a>>. This program is dual-licensed
free software; you can redistribute it and/or modify it under the terms of the
<aclass="reference"href="http://www.opensource.org/licenses/mit-license.php">MIT License</a> or the <aclass="reference"href="http://www.opensource.org/licenses/afl-2.1.php">Academic Free License v2.1</a>.</p>
<h2><aid="using-signal-for-dom-events"name="using-signal-for-dom-events">Using Signal for DOM Events</a></h2>
<p>When using MochiKit.Signal, do not use the browser's native event API. That
means, no <ttclass="docutils literal"><spanclass="pre">onclick="blah"</span></tt>, no <ttclass="docutils literal"><spanclass="pre">elem.addEventListener(...)</span></tt>, and certainly
no <ttclass="docutils literal"><spanclass="pre">elem.attachEvent(...)</span></tt>. This also means that
<aclass="mochiref reference"href="DOM.html#fn-addtocallstack">MochiKit.DOM.addToCallStack</a> and
<aclass="mochiref reference"href="DOM.html#fn-addloadevent">MochiKit.DOM.addLoadEvent</a> should not be used in combination with
this module.</p>
<p>Signals for DOM objects are named with the <ttclass="docutils literal"><spanclass="pre">'on'</span></tt> prefix, e.g.:
<p>Connects a signal to a slot, and return a unique identifier that can be
used to disconnect that signal.</p>
<p><ttclass="docutils literal"><spanclass="pre">src</span></tt> is the object that has the signal. You may pass in a string, in
which case, it is interpreted as an id for an HTML element.</p>
<p><ttclass="docutils literal"><spanclass="pre">signal</span></tt> is a string that represents a signal name. If 'src' is an HTML
Element, <ttclass="docutils literal"><spanclass="pre">window</span></tt>, or the <ttclass="docutils literal"><spanclass="pre">document</span></tt>, then it can be one of the
'on-XYZ' events. You must include the 'on' prefix, and it must be all
lower-case.</p>
<p><ttclass="docutils literal"><spanclass="pre">dest</span></tt> and <ttclass="docutils literal"><spanclass="pre">func</span></tt> describe the slot, or the action to take when the
signal is triggered.</p>
<blockquote>
<ulclass="simple">
<li>If <ttclass="docutils literal"><spanclass="pre">dest</span></tt> is an object and <ttclass="docutils literal"><spanclass="pre">func</span></tt> is a string, then
<ttclass="docutils literal"><spanclass="pre">dest[func].apply(dest,</span><spanclass="pre">...)</span></tt> will be called when the signal
is signalled.</li>
<li>If <ttclass="docutils literal"><spanclass="pre">dest</span></tt> is an object and <ttclass="docutils literal"><spanclass="pre">func</span></tt> is a function, then
<ttclass="docutils literal"><spanclass="pre">func.apply(dest,</span><spanclass="pre">...)</span></tt> will be called when the signal is
signalled.</li>
<li>If <ttclass="docutils literal"><spanclass="pre">func</span></tt> is undefined and <ttclass="docutils literal"><spanclass="pre">dest</span></tt> is a function, then
<ttclass="docutils literal"><spanclass="pre">func.apply(src,</span><spanclass="pre">...)</span></tt> will be called when the signal is
signalled.</li>
</ul>
</blockquote>
<p>No other combinations are allowed and will raise an exception.</p>
<p>The return value can be passed to <aclass="mochiref reference"href="#fn-disconnect">disconnect</a> to disconnect
To disconnect a signal, pass its ident returned by <aclass="mochiref reference"href="#fn-connect">connect()</a>.
This is similar to how the browser's <ttclass="docutils literal"><spanclass="pre">setTimeout</span></tt> and <ttclass="docutils literal"><spanclass="pre">clearTimeout</span></tt>
<p><ttclass="docutils literal"><spanclass="pre">disconnectAll(src)</span></tt> removes all signals from src.</p>
<p><ttclass="docutils literal"><spanclass="pre">disconnectAll(src,</span><spanclass="pre">'onmousedown',</span><spanclass="pre">'mySignal')</span></tt> will remove all
<ttclass="docutils literal"><spanclass="pre">'onmousedown'</span></tt> and <ttclass="docutils literal"><spanclass="pre">'mySignal'</span></tt> signals from src.</p>
This will signal a signal, passing whatever additional parameters on to
the connected slots. <ttclass="docutils literal"><spanclass="pre">src</span></tt> and <ttclass="docutils literal"><spanclass="pre">signal</span></tt> are the same as for
The event type (<ttclass="docutils literal"><spanclass="pre">'click'</span></tt>, <ttclass="docutils literal"><spanclass="pre">'mouseover'</span></tt>, <ttclass="docutils literal"><spanclass="pre">'keypress'</span></tt>, etc.) as a
string. Does not include the <ttclass="docutils literal"><spanclass="pre">'on'</span></tt> prefix.</blockquote>
Returns <ttclass="docutils literal"><spanclass="pre">{shift,</span><spanclass="pre">ctrl,</span><spanclass="pre">meta,</span><spanclass="pre">alt,</span><spanclass="pre">any}</span></tt>, where each property is <ttclass="docutils literal"><spanclass="pre">true</span></tt>
if its respective modifier key was pressed, <ttclass="docutils literal"><spanclass="pre">false</span></tt> otherwise. <ttclass="docutils literal"><spanclass="pre">any</span></tt>
is <ttclass="docutils literal"><spanclass="pre">true</span></tt> if any modifier is pressed, <ttclass="docutils literal"><spanclass="pre">false</span></tt> otherwise.</blockquote>
Shortcut that calls <ttclass="docutils literal"><spanclass="pre">stopPropagation()</span></tt> and <ttclass="docutils literal"><spanclass="pre">preventDefault()</span></tt>.</blockquote>
<p>Use <ttclass="docutils literal"><spanclass="pre">'onkeydown'</span></tt> and <ttclass="docutils literal"><spanclass="pre">'onkeyup'</span></tt> handlers to detect control
characters such as <ttclass="docutils literal"><spanclass="pre">'KEY_F1'</span></tt>. Use the <ttclass="docutils literal"><spanclass="pre">'onkeypressed'</span></tt> handler to
detect "printable" characters, such as <ttclass="docutils literal"><spanclass="pre">'é'</span></tt>.</p>
<p>When a user presses F1, in <ttclass="docutils literal"><spanclass="pre">'onkeydown'</span></tt> and <ttclass="docutils literal"><spanclass="pre">'onkeyup'</span></tt> this method
returns <ttclass="docutils literal"><spanclass="pre">{code:</span><spanclass="pre">122,</span><spanclass="pre">string:</span><spanclass="pre">'KEY_F1'}</span></tt>. In <ttclass="docutils literal"><spanclass="pre">'onkeypress'</span></tt>, it returns
<p>If a user presses Shift+2 on a US keyboard, this method returns
<ttclass="docutils literal"><spanclass="pre">{code:</span><spanclass="pre">50,</span><spanclass="pre">string:</span><spanclass="pre">'KEY_2'}</span></tt> in <ttclass="docutils literal"><spanclass="pre">'onkeydown'</span></tt> and <ttclass="docutils literal"><spanclass="pre">'onkeyup'</span></tt>.
In <ttclass="docutils literal"><spanclass="pre">'onkeypress'</span></tt>, it returns <ttclass="docutils literal"><spanclass="pre">{code:</span><spanclass="pre">64,</span><spanclass="pre">string:</span><spanclass="pre">'@'}</span></tt>.</p>
<p>See <ttclass="docutils literal"><spanclass="pre">_specialKeys</span></tt> in the source code for a comprehensive list of
<p>Properties for <ttclass="docutils literal"><spanclass="pre">'onmouse*'</span></tt>, <ttclass="docutils literal"><spanclass="pre">'onclick'</span></tt>, <ttclass="docutils literal"><spanclass="pre">'ondblclick'</span></tt>, and
<li><ttclass="docutils literal"><spanclass="pre">page</span></tt> is a <aclass="mochiref reference"href="DOM.html#fn-coordinates">MochiKit.DOM.Coordinates</a> object that
represents the cursor position relative to the HTML document.
Equivalent to <ttclass="docutils literal"><spanclass="pre">pageX</span></tt> and <ttclass="docutils literal"><spanclass="pre">pageY</span></tt> in Safari, Mozilla, and
Opera.</li>
<li><ttclass="docutils literal"><spanclass="pre">client</span></tt> is a <aclass="mochiref reference"href="DOM.html#fn-coordinates">MochiKit.DOM.Coordinates</a> object that
represents the cursor position relative to the visible portion of
the HTML document. Equivalent to <ttclass="docutils literal"><spanclass="pre">clientX</span></tt> and <ttclass="docutils literal"><spanclass="pre">clientY</span></tt> on
all browsers.</li>
</ul>
</blockquote>
<p>Properties for <ttclass="docutils literal"><spanclass="pre">'onmouseup'</span></tt>, <ttclass="docutils literal"><spanclass="pre">'onmousedown'</span></tt>, <ttclass="docutils literal"><spanclass="pre">'onclick'</span></tt>, and
<li><ttclass="docutils literal"><spanclass="pre">mouse().button</span></tt> returns <ttclass="docutils literal"><spanclass="pre">{left,</span><spanclass="pre">right,</span><spanclass="pre">middle}</span></tt> where each
property is <ttclass="docutils literal"><spanclass="pre">true</span></tt> if the mouse button was pressed, <ttclass="docutils literal"><spanclass="pre">false</span></tt>
otherwise.</li>
</ul>
</blockquote>
<p>Known browser bugs:</p>
<blockquote>
<ul>
<li><pclass="first">Current versions of Safari won't signal <ttclass="docutils literal"><spanclass="pre">'ondblclick'</span></tt> when
attached via <ttclass="docutils literal"><spanclass="pre">connect()</span></tt> (<aclass="reference"href="http://bugzilla.opendarwin.org/show_bug.cgi?id=7790">Safari Bug 7790</a>).</p>
signals the slot and sets <ttclass="docutils literal"><spanclass="pre">modifier().ctrl</span></tt> to true, Opera
signals the slot and sets <ttclass="docutils literal"><spanclass="pre">modifier().meta</span></tt> to <ttclass="docutils literal"><spanclass="pre">true</span></tt>, and
Safari doesn't signal the slot at all (<aclass="reference"href="http://bugzilla.opendarwin.org/show_bug.cgi?id=6595">Safari Bug 6595</a>).</p>
<p>To find a right-click in Safari, Firefox, and IE, you can connect
an element to <ttclass="docutils literal"><spanclass="pre">'oncontextmenu'</span></tt>. This doesn't work in Opera.</p>
Returns the document element that the mouse has moved to. This is
generated for <ttclass="docutils literal"><spanclass="pre">'onmouseover'</span></tt> and <ttclass="docutils literal"><spanclass="pre">'onmouseout'</span></tt> events.</blockquote>
<p>Copyright 2006 Jonathan Gardner <<aclass="reference"href="mailto:jgardner@jonathangardner.net">jgardner@jonathangardner.net</a>>, Beau
Hartshorne <<aclass="reference"href="mailto:beau@hartshornesoftware.com">beau@hartshornesoftware.com</a>>, and Bob Ippolito <<aclass="reference"href="mailto:bob@redivi.com">bob@redivi.com</a>>.
This program is dual-licensed free software; you can redistribute it and/or
modify it under the terms of the <aclass="reference"href="http://www.opensource.org/licenses/mit-license.php">MIT License</a> or the
Rounds all of the elements that match the <ttclass="docutils literal"><spanclass="pre">tagName</span></tt> and <ttclass="docutils literal"><spanclass="pre">className</span></tt>
specifiers, using the options provided. <ttclass="docutils literal"><spanclass="pre">tagName</span></tt> or <ttclass="docutils literal"><spanclass="pre">className</span></tt> can
be <ttclass="docutils literal"><spanclass="pre">null</span></tt> to match all tags or classes. For more information about
the options, see the <aclass="mochiref reference"href="#fn-roundelement">roundElement</a> function.</blockquote>
<p>specifies which corners of the element should be rounded.
Choices are:</p>
<ulclass="simple">
<li>all</li>
<li>top</li>
<li>bottom</li>
<li>tl (top left)</li>
<li>bl (bottom left)</li>
<li>tr (top right)</li>
<li>br (bottom right)</li>
</ul>
<dlclass="docutils">
<dt>Example:</dt>
<dd><ttclass="docutils literal"><spanclass="pre">"tl</span><spanclass="pre">br"</span></tt>: top-left and bottom-right corners are rounded</dd>
</dl>
</blockquote>
<dlclass="docutils">
<dt>blend:</dt>
<dd>specifies whether the color and background color should be blended
<tr><tdclass="label"><aname="id2">[2]</a></td><td>SVG 1.0 color keywords: <aclass="reference"href="http://www.w3.org/TR/SVG/types.html#ColorKeywords">http://www.w3.org/TR/SVG/types.html#ColorKeywords</a></td></tr>
<tr><tdclass="label"><aname="id3">[3]</a></td><td>W3C CSS3 Color Module: <aclass="reference"href="http://www.w3.org/TR/css3-color/#svg-color">http://www.w3.org/TR/css3-color/#svg-color</a></td></tr>
<p>Copyright 2005 Bob Ippolito <<aclass="reference"href="mailto:bob@redivi.com">bob@redivi.com</a>>. This program is dual-licensed
free software; you can redistribute it and/or modify it under the terms of the
<aclass="reference"href="http://www.opensource.org/licenses/mit-license.php">MIT License</a> or the <aclass="reference"href="http://www.opensource.org/licenses/afl-2.1.php">Academic Free License v2.1</a>.</p>
<p>Portions adapted from <aclass="reference"href="http://www.openrico.org">Rico</a> are available under the terms of the
<aclass="reference"href="http://www.apache.org/licenses/LICENSE-2.0.html">Apache License, Version 2.0</a>.</p>
<li><aclass="mochiref reference"href="Iter.html">MochiKit.Iter</a> - itertools for JavaScript; iteration made HARD,
and then easy</li>
<li><aclass="mochiref reference"href="Logging.html">MochiKit.Logging</a> - we're all tired of <ttclass="docutils literal"><spanclass="pre">alert()</span></tt></li>
<p>Copyright 2005 Bob Ippolito <<aclass="reference"href="mailto:bob@redivi.com">bob@redivi.com</a>>. This program is dual-licensed
free software; you can redistribute it and/or modify it under the terms of the
<aclass="reference"href="http://www.opensource.org/licenses/mit-license.php">MIT License</a> or the <aclass="reference"href="http://www.opensource.org/licenses/afl-2.1.php">Academic Free License v2.1</a>.</p>
Some files were not shown because too many files have changed in this diff
Show More
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.