Bug 106386 Correct misspellings in source code
r=bernd rs=brendan git-svn-id: svn://10.0.0.236/trunk@191013 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
d41b46b313
commit
af51e73d0e
@ -2144,7 +2144,7 @@ nsNavHistoryQueryResultNode::OnTitleChanged(nsIURI* aURI,
|
|||||||
|
|
||||||
// nsNavHistoryQueryResultNode::OnDeleteURI
|
// nsNavHistoryQueryResultNode::OnDeleteURI
|
||||||
//
|
//
|
||||||
// Here, we can always live update by just deleting all occurances of
|
// Here, we can always live update by just deleting all occurrences of
|
||||||
// the given URI.
|
// the given URI.
|
||||||
|
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
|
|||||||
@ -38,7 +38,7 @@
|
|||||||
# ***** END LICENSE BLOCK *****
|
# ***** END LICENSE BLOCK *****
|
||||||
|
|
||||||
# mozconfig2configure - Loads options from .mozconfig onto configure's
|
# mozconfig2configure - Loads options from .mozconfig onto configure's
|
||||||
# command-line. See find-mozconfig.sh for how the config file is
|
# command-line. See mozconfig-find for how the config file is
|
||||||
# found
|
# found
|
||||||
#
|
#
|
||||||
# The options from .mozconfig are inserted into the command-line
|
# The options from .mozconfig are inserted into the command-line
|
||||||
|
|||||||
@ -60,7 +60,7 @@ var hPrefWindow =
|
|||||||
|
|
||||||
// properties
|
// properties
|
||||||
queuedPanel : null,
|
queuedPanel : null,
|
||||||
initalized : false,
|
initialized : false,
|
||||||
|
|
||||||
cancelHandlers : [],
|
cancelHandlers : [],
|
||||||
okHandlers : [],
|
okHandlers : [],
|
||||||
|
|||||||
@ -1189,7 +1189,7 @@ function getAddressBookDatabase( bookId )
|
|||||||
|
|
||||||
/***** initializeContactsArray
|
/***** initializeContactsArray
|
||||||
* METHODS
|
* METHODS
|
||||||
* initializeContactsArray: initalizes the contacts with any
|
* initializeContactsArray: initializes the contacts with any
|
||||||
* existing contacts attached to the
|
* existing contacts attached to the
|
||||||
* event
|
* event
|
||||||
*
|
*
|
||||||
|
|||||||
@ -236,7 +236,7 @@ static const int kDisabledQuicksearchPopupItemTag = 9999;
|
|||||||
// - managerStarted:
|
// - managerStarted:
|
||||||
//
|
//
|
||||||
// Notification callback from the bookmark manager. Reload all the table data, but
|
// Notification callback from the bookmark manager. Reload all the table data, but
|
||||||
// only if we think we've fully initalized ourselves.
|
// only if we think we've fully initialized ourselves.
|
||||||
//
|
//
|
||||||
- (void)managerStarted:(NSNotification*)inNotify
|
- (void)managerStarted:(NSNotification*)inNotify
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1955,7 +1955,7 @@ enum BWCOpenDest {
|
|||||||
|
|
||||||
// - transformFormatString:domain:search
|
// - transformFormatString:domain:search
|
||||||
//
|
//
|
||||||
// Replaces all occurances of %d in |inFormat| with |inDomain| and all occurances of
|
// Replaces all occurrences of %d in |inFormat| with |inDomain| and all occurrences of
|
||||||
// %s with |inSearch|.
|
// %s with |inSearch|.
|
||||||
- (void) transformFormatString:(NSMutableString*)inFormat domain:(NSString*)inDomain search:(NSString*)inSearch
|
- (void) transformFormatString:(NSMutableString*)inFormat domain:(NSString*)inDomain search:(NSString*)inSearch
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1586,7 +1586,7 @@ wallet_Initialize(PRBool unlockDatabase)
|
|||||||
#endif
|
#endif
|
||||||
namesInitialized = PR_TRUE;
|
namesInitialized = PR_TRUE;
|
||||||
|
|
||||||
// Initalize |wallet_SchemaToValue_list| with values from the Address Book's "me" card
|
// Initialize |wallet_SchemaToValue_list| with values from the Address Book's "me" card
|
||||||
// rather than from the saved schema file.
|
// rather than from the saved schema file.
|
||||||
if (!wallet_ValuesReadIn) {
|
if (!wallet_ValuesReadIn) {
|
||||||
wallet_Clear(&wallet_SchemaToValue_list); /* otherwise we will duplicate the list */
|
wallet_Clear(&wallet_SchemaToValue_list); /* otherwise we will duplicate the list */
|
||||||
|
|||||||
@ -152,7 +152,7 @@ nsPrincipal::~nsPrincipal(void)
|
|||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
nsPrincipal::GetJSPrincipals(JSContext *cx, JSPrincipals **jsprin)
|
nsPrincipal::GetJSPrincipals(JSContext *cx, JSPrincipals **jsprin)
|
||||||
{
|
{
|
||||||
NS_PRECONDITION(mJSPrincipals.nsIPrincipalPtr, "mJSPrincipals is uninitalized!");
|
NS_PRECONDITION(mJSPrincipals.nsIPrincipalPtr, "mJSPrincipals is uninitialized!");
|
||||||
|
|
||||||
JSPRINCIPALS_HOLD(cx, &mJSPrincipals);
|
JSPRINCIPALS_HOLD(cx, &mJSPrincipals);
|
||||||
*jsprin = &mJSPrincipals;
|
*jsprin = &mJSPrincipals;
|
||||||
|
|||||||
@ -243,7 +243,7 @@ nsSystemPrincipal::SetSecurityPolicy(void* aSecurityPolicy)
|
|||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
nsSystemPrincipal::GetJSPrincipals(JSContext *cx, JSPrincipals **jsprin)
|
nsSystemPrincipal::GetJSPrincipals(JSContext *cx, JSPrincipals **jsprin)
|
||||||
{
|
{
|
||||||
NS_PRECONDITION(mJSPrincipals.nsIPrincipalPtr, "mJSPrincipals is uninitalized!");
|
NS_PRECONDITION(mJSPrincipals.nsIPrincipalPtr, "mJSPrincipals is uninitialized!");
|
||||||
|
|
||||||
JSPRINCIPALS_HOLD(cx, &mJSPrincipals);
|
JSPRINCIPALS_HOLD(cx, &mJSPrincipals);
|
||||||
*jsprin = &mJSPrincipals;
|
*jsprin = &mJSPrincipals;
|
||||||
|
|||||||
@ -2206,7 +2206,7 @@ static BOOL createPhoneBookEntry( ACCOUNTPARAMS account, const LOCATIONPARAMS& l
|
|||||||
if ( rasEntry.szAreaCode[ 0 ] == '\0' )
|
if ( rasEntry.szAreaCode[ 0 ] == '\0' )
|
||||||
{
|
{
|
||||||
// Err: The service provider's phone number is missing its area code
|
// Err: The service provider's phone number is missing its area code
|
||||||
// (or is not in TAPI cannonical form in the configuration file).
|
// (or is not in TAPI canonical form in the configuration file).
|
||||||
// Account creation will fail until this is fixed.
|
// Account creation will fail until this is fixed.
|
||||||
char* buf = (char*)malloc( sizeof(char) * 255 );
|
char* buf = (char*)malloc( sizeof(char) * 255 );
|
||||||
if ( buf )
|
if ( buf )
|
||||||
|
|||||||
@ -122,7 +122,7 @@ BEGIN
|
|||||||
IDS_DNS_ALREADY "Your system is configured for another Domain Name System (DNS) server. You may need to change your Dial-Up Networking settings to connect to the Internet.\n\nPlease see the troubleshooting section of the Installation and Setup Guide for more information."
|
IDS_DNS_ALREADY "Your system is configured for another Domain Name System (DNS) server. You may need to change your Dial-Up Networking settings to connect to the Internet.\n\nPlease see the troubleshooting section of the Installation and Setup Guide for more information."
|
||||||
IDS_BAD_PASSWORD "Invalid pasword in Netscape registration file."
|
IDS_BAD_PASSWORD "Invalid pasword in Netscape registration file."
|
||||||
IDS_NO_RNA_REGSERVER "Unable to create RNA phone book entry!"
|
IDS_NO_RNA_REGSERVER "Unable to create RNA phone book entry!"
|
||||||
IDS_MISSING_AREA_CODE "The service provider's phone number is missing its area code (or is not in TAPI cannonical form in the configuration file). Account creation will fail until this is fixed."
|
IDS_MISSING_AREA_CODE "The service provider's phone number is missing its area code (or is not in TAPI canonical form in the configuration file). Account creation will fail until this is fixed."
|
||||||
IDS_NO_RNA "Unable to create shortcut to RNA phone book entry!"
|
IDS_NO_RNA "Unable to create shortcut to RNA phone book entry!"
|
||||||
END
|
END
|
||||||
|
|
||||||
|
|||||||
@ -93,7 +93,7 @@ use File::Spec::Unix; # on all platforms, because the #include syntax is unix-ba
|
|||||||
|
|
||||||
# Note: Ideally we would use File::Spec 0.8. When this becomes
|
# Note: Ideally we would use File::Spec 0.8. When this becomes
|
||||||
# possible, add "0.8" to the first "use" line above, then replace
|
# possible, add "0.8" to the first "use" line above, then replace
|
||||||
# occurances of "::_0_8::" with "->" below. And remove the code for
|
# occurrences of "::_0_8::" with "->" below. And remove the code for
|
||||||
# File::Spec 0.8 much lower down the file.
|
# File::Spec 0.8 much lower down the file.
|
||||||
|
|
||||||
sub include {
|
sub include {
|
||||||
|
|||||||
@ -192,12 +192,12 @@ The following filters are supported:
|
|||||||
Collapses sequences of spaces into a single space.
|
Collapses sequences of spaces into a single space.
|
||||||
|
|
||||||
substitution
|
substitution
|
||||||
Replaces occurances of "@foo@" by the value of the variable
|
Replaces occurrences of "@foo@" by the value of the variable
|
||||||
"foo". If @foo@ is not defined, the preprocessor will terminate
|
"foo". If @foo@ is not defined, the preprocessor will terminate
|
||||||
with a fatal error.
|
with a fatal error.
|
||||||
|
|
||||||
attemptSubstitution
|
attemptSubstitution
|
||||||
Replaces occurances of "@foo@" by the value of the variable
|
Replaces occurrences of "@foo@" by the value of the variable
|
||||||
"foo". If @foo@ is not defined, the empty string is used instead.
|
"foo". If @foo@ is not defined, the empty string is used instead.
|
||||||
|
|
||||||
Filters are run in alphabetical order, on a per-line basis.
|
Filters are run in alphabetical order, on a per-line basis.
|
||||||
|
|||||||
@ -793,7 +793,7 @@ public:
|
|||||||
* Associate an object aData to aKey on node aObject. Should only be used to
|
* Associate an object aData to aKey on node aObject. Should only be used to
|
||||||
* implement the DOM Level 3 UserData API.
|
* implement the DOM Level 3 UserData API.
|
||||||
*
|
*
|
||||||
* @param aObject cannonical nsINode pointer of the node to add aData to
|
* @param aObject canonical nsINode pointer of the node to add aData to
|
||||||
* @param aKey the key to associate the object to
|
* @param aKey the key to associate the object to
|
||||||
* @param aData the object to associate to aKey on aObject
|
* @param aData the object to associate to aKey on aObject
|
||||||
* @param aHandler the UserDataHandler to call when the node is
|
* @param aHandler the UserDataHandler to call when the node is
|
||||||
@ -820,7 +820,7 @@ public:
|
|||||||
* aObject will be removed. Should only be used to implement the DOM Level 3
|
* aObject will be removed. Should only be used to implement the DOM Level 3
|
||||||
* UserData API.
|
* UserData API.
|
||||||
*
|
*
|
||||||
* @param aObject cannonical nsINode pointer of the node to add aData to
|
* @param aObject canonical nsINode pointer of the node to add aData to
|
||||||
* @param aKey the key to associate the object to
|
* @param aKey the key to associate the object to
|
||||||
* @param aData the object to associate to aKey on aObject (may be nulll)
|
* @param aData the object to associate to aKey on aObject (may be nulll)
|
||||||
* @param aHandler the UserDataHandler to call when the node is
|
* @param aHandler the UserDataHandler to call when the node is
|
||||||
@ -839,7 +839,7 @@ public:
|
|||||||
* if no object was associated to aKey on aObject. Should only be used to
|
* if no object was associated to aKey on aObject. Should only be used to
|
||||||
* implement the DOM Level 3 UserData API.
|
* implement the DOM Level 3 UserData API.
|
||||||
*
|
*
|
||||||
* @param aObject cannonical nsINode pointer of the node to get the
|
* @param aObject canonical nsINode pointer of the node to get the
|
||||||
* object for
|
* object for
|
||||||
* @param aKey the key the object is associated to
|
* @param aKey the key the object is associated to
|
||||||
* @param aResult [out] the registered object for aKey on aObject, if any
|
* @param aResult [out] the registered object for aKey on aObject, if any
|
||||||
@ -861,7 +861,7 @@ public:
|
|||||||
* if no object was associated to aKey on aObject. Should only be used to
|
* if no object was associated to aKey on aObject. Should only be used to
|
||||||
* implement the DOM Level 3 UserData API.
|
* implement the DOM Level 3 UserData API.
|
||||||
*
|
*
|
||||||
* @param aObject cannonical nsINode pointer of the node to get the
|
* @param aObject canonical nsINode pointer of the node to get the
|
||||||
* object for
|
* object for
|
||||||
* @param aKey the key the object is associated to
|
* @param aKey the key the object is associated to
|
||||||
* @param aResult [out] the registered object for aKey on aObject, if any
|
* @param aResult [out] the registered object for aKey on aObject, if any
|
||||||
@ -876,7 +876,7 @@ public:
|
|||||||
*
|
*
|
||||||
* @param aOperation the type of operation that is being performed on the
|
* @param aOperation the type of operation that is being performed on the
|
||||||
* node. @see nsIDOMUserDataHandler
|
* node. @see nsIDOMUserDataHandler
|
||||||
* @param aObject cannonical nsINode pointer of the node to call the
|
* @param aObject canonical nsINode pointer of the node to call the
|
||||||
* UserDataHandler for
|
* UserDataHandler for
|
||||||
* @param aSource the node that aOperation is being performed on, or null if
|
* @param aSource the node that aOperation is being performed on, or null if
|
||||||
* the operation is a deletion
|
* the operation is a deletion
|
||||||
@ -890,7 +890,7 @@ public:
|
|||||||
* Copy the objects and UserDataHandlers for node aObject to a new document.
|
* Copy the objects and UserDataHandlers for node aObject to a new document.
|
||||||
* Should only be used to implement the DOM Level 3 UserData API.
|
* Should only be used to implement the DOM Level 3 UserData API.
|
||||||
*
|
*
|
||||||
* @param aObject cannonical nsINode pointer of the node to copy objects
|
* @param aObject canonical nsINode pointer of the node to copy objects
|
||||||
* and UserDataHandlers for
|
* and UserDataHandlers for
|
||||||
* @param aDestination the new document
|
* @param aDestination the new document
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -3902,7 +3902,7 @@ nsDocument::SetUserData(const nsINode *aObject,
|
|||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
nsCOMPtr<nsINode> object =
|
nsCOMPtr<nsINode> object =
|
||||||
do_QueryInterface(NS_CONST_CAST(nsINode*, aObject));
|
do_QueryInterface(NS_CONST_CAST(nsINode*, aObject));
|
||||||
NS_ASSERTION(object == aObject, "Use cannonical nsINode pointer!");
|
NS_ASSERTION(object == aObject, "Use canonical nsINode pointer!");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
*aResult = nsnull;
|
*aResult = nsnull;
|
||||||
@ -3963,7 +3963,7 @@ nsDocument::GetUserData(const nsINode *aObject, nsIAtom *aKey,
|
|||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
nsCOMPtr<nsINode> object =
|
nsCOMPtr<nsINode> object =
|
||||||
do_QueryInterface(NS_CONST_CAST(nsINode*, aObject));
|
do_QueryInterface(NS_CONST_CAST(nsINode*, aObject));
|
||||||
NS_ASSERTION(object == aObject, "Use cannonical nsINode pointer!");
|
NS_ASSERTION(object == aObject, "Use canonical nsINode pointer!");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
*aResult = NS_STATIC_CAST(nsIVariant*,
|
*aResult = NS_STATIC_CAST(nsIVariant*,
|
||||||
@ -4012,7 +4012,7 @@ nsDocument::CallUserDataHandler(PRUint16 aOperation,
|
|||||||
// XXX Should we guard from QI'ing nodes that are being destroyed?
|
// XXX Should we guard from QI'ing nodes that are being destroyed?
|
||||||
nsCOMPtr<nsINode> object =
|
nsCOMPtr<nsINode> object =
|
||||||
do_QueryInterface(NS_CONST_CAST(nsINode*, aObject));
|
do_QueryInterface(NS_CONST_CAST(nsINode*, aObject));
|
||||||
NS_ASSERTION(object == aObject, "Use cannonical nsINode pointer!");
|
NS_ASSERTION(object == aObject, "Use canonical nsINode pointer!");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
nsHandlerData handlerData;
|
nsHandlerData handlerData;
|
||||||
@ -4054,7 +4054,7 @@ nsDocument::CopyUserData(const nsINode *aObject, nsIDocument *aDestination)
|
|||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
nsCOMPtr<nsINode> object =
|
nsCOMPtr<nsINode> object =
|
||||||
do_QueryInterface(NS_CONST_CAST(nsINode*, aObject));
|
do_QueryInterface(NS_CONST_CAST(nsINode*, aObject));
|
||||||
NS_ASSERTION(object == aObject, "Use cannonical nsINode pointer!");
|
NS_ASSERTION(object == aObject, "Use canonical nsINode pointer!");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
nsCopyData copyData = { this, aDestination };
|
nsCopyData copyData = { this, aDestination };
|
||||||
|
|||||||
@ -299,8 +299,8 @@ nsresult txListIterator::addBefore(void* objPtr)
|
|||||||
} //-- addBefore
|
} //-- addBefore
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true if a sucessful call to the next() method can be made
|
* Returns true if a successful call to the next() method can be made
|
||||||
* @return MB_TRUE if a sucessful call to the next() method can be made,
|
* @return MB_TRUE if a successful call to the next() method can be made,
|
||||||
* otherwise MB_FALSE
|
* otherwise MB_FALSE
|
||||||
**/
|
**/
|
||||||
MBool txListIterator::hasNext() {
|
MBool txListIterator::hasNext() {
|
||||||
@ -314,8 +314,8 @@ MBool txListIterator::hasNext() {
|
|||||||
} //-- hasNext
|
} //-- hasNext
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true if a sucessful call to the previous() method can be made
|
* Returns true if a successful call to the previous() method can be made
|
||||||
* @return MB_TRUE if a sucessful call to the previous() method can be made,
|
* @return MB_TRUE if a successful call to the previous() method can be made,
|
||||||
* otherwise MB_FALSE
|
* otherwise MB_FALSE
|
||||||
**/
|
**/
|
||||||
MBool txListIterator::hasPrevious() {
|
MBool txListIterator::hasPrevious() {
|
||||||
|
|||||||
@ -174,15 +174,15 @@ public:
|
|||||||
nsresult addBefore(void* objPtr);
|
nsresult addBefore(void* objPtr);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true if a sucessful call to the next() method can be made
|
* Returns true if a successful call to the next() method can be made
|
||||||
* @return MB_TRUE if a sucessful call to the next() method can be made,
|
* @return MB_TRUE if a successful call to the next() method can be made,
|
||||||
* otherwise MB_FALSE
|
* otherwise MB_FALSE
|
||||||
**/
|
**/
|
||||||
MBool hasNext();
|
MBool hasNext();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true if a sucessful call to the previous() method can be made
|
* Returns true if a successful call to the previous() method can be made
|
||||||
* @return MB_TRUE if a sucessful call to the previous() method can be made,
|
* @return MB_TRUE if a successful call to the previous() method can be made,
|
||||||
* otherwise MB_FALSE
|
* otherwise MB_FALSE
|
||||||
**/
|
**/
|
||||||
MBool hasPrevious();
|
MBool hasPrevious();
|
||||||
|
|||||||
@ -5653,7 +5653,7 @@ nsWindowSH::NewResolve(nsIXPConnectWrappedNative *wrapper, JSContext *cx,
|
|||||||
// We're resolving a property on an outer window for which there
|
// We're resolving a property on an outer window for which there
|
||||||
// is no inner window yet, and the window is not frozen
|
// is no inner window yet, and the window is not frozen
|
||||||
// (i.e. we're not in the middle of initializing XPConnect
|
// (i.e. we're not in the middle of initializing XPConnect
|
||||||
// classes on it). If the context is already initalized, force
|
// classes on it). If the context is already initialized, force
|
||||||
// creation of a new inner window. This will create a synthetic
|
// creation of a new inner window. This will create a synthetic
|
||||||
// about:blank document, and an inner window which may be reused
|
// about:blank document, and an inner window which may be reused
|
||||||
// by the actual document being loaded into this outer
|
// by the actual document being loaded into this outer
|
||||||
|
|||||||
@ -284,7 +284,7 @@ nsEditor::Init(nsIDOMDocument *aDoc, nsIPresShell* aPresShell, nsIContent *aRoot
|
|||||||
mUpdateCount=0;
|
mUpdateCount=0;
|
||||||
InsertTextTxn::ClassInit();
|
InsertTextTxn::ClassInit();
|
||||||
|
|
||||||
/* initalize IME stuff */
|
/* initialize IME stuff */
|
||||||
IMETextTxn::ClassInit();
|
IMETextTxn::ClassInit();
|
||||||
mIMETextNode = do_QueryInterface(nsnull);
|
mIMETextNode = do_QueryInterface(nsnull);
|
||||||
mIMETextOffset = 0;
|
mIMETextOffset = 0;
|
||||||
|
|||||||
@ -212,7 +212,7 @@ void win32HardwareExceptionHandler(JavaObject* exc, CONTEXT* ContextRecord)
|
|||||||
context.object = exc;
|
context.object = exc;
|
||||||
|
|
||||||
// get top EBP
|
// get top EBP
|
||||||
context.sucessorEBP = NULL;
|
context.successorEBP = NULL;
|
||||||
context.sourceEBP = (Uint32*)ContextRecord->Ebp;
|
context.sourceEBP = (Uint32*)ContextRecord->Ebp;
|
||||||
context.sourceAddress = (Uint8*)ContextRecord->Eip;
|
context.sourceAddress = (Uint8*)ContextRecord->Eip;
|
||||||
|
|
||||||
|
|||||||
@ -55,7 +55,7 @@ extern "C" SYSCALL_FUNC(void) x86SoftwareExceptionHandler(Uint32 EBP, Uint32 EDI
|
|||||||
+-------------------------------+ <- initial restoreESP
|
+-------------------------------+ <- initial restoreESP
|
||||||
| return address |
|
| return address |
|
||||||
========+===============================+========
|
========+===============================+========
|
||||||
sysThrow | EBP link | <- sucessorEBP
|
sysThrow | EBP link | <- successorEBP
|
||||||
(native) +-------------------------------+
|
(native) +-------------------------------+
|
||||||
| arguments |
|
| arguments |
|
||||||
========+===============================+========
|
========+===============================+========
|
||||||
@ -121,14 +121,14 @@ extern "C" SYSCALL_FUNC(void) x86SoftwareExceptionHandler(Uint32 inEBP, Uint32 i
|
|||||||
context.object = (JavaObject*) &inObject;
|
context.object = (JavaObject*) &inObject;
|
||||||
|
|
||||||
// get other EBPs
|
// get other EBPs
|
||||||
context.sucessorEBP = (Uint32*) inEBP;
|
context.successorEBP = (Uint32*) inEBP;
|
||||||
context.sourceEBP = *((Uint32**)context.sucessorEBP);
|
context.sourceEBP = *((Uint32**)context.successorEBP);
|
||||||
|
|
||||||
// The source address will point to the instruction to return to, NOT the instruction that
|
// The source address will point to the instruction to return to, NOT the instruction that
|
||||||
// generated the exception. The return address is often (always?) in a different control node, so
|
// generated the exception. The return address is often (always?) in a different control node, so
|
||||||
// it may have a different exception table.
|
// it may have a different exception table.
|
||||||
// The byte before the return address will be part of the call instruction that got us here.
|
// The byte before the return address will be part of the call instruction that got us here.
|
||||||
context.sourceAddress = (Uint8*)(context.sucessorEBP[1]) - 1;
|
context.sourceAddress = (Uint8*)(context.successorEBP[1]) - 1;
|
||||||
|
|
||||||
// cache entries
|
// cache entries
|
||||||
context.sourceCE = NativeCodeCache::getCache().lookupByRange((Uint8*)context.sourceAddress);
|
context.sourceCE = NativeCodeCache::getCache().lookupByRange((Uint8*)context.sourceAddress);
|
||||||
@ -136,7 +136,7 @@ extern "C" SYSCALL_FUNC(void) x86SoftwareExceptionHandler(Uint32 inEBP, Uint32 i
|
|||||||
|
|
||||||
// calculate the ESP if we were to proceed directly to the catch
|
// calculate the ESP if we were to proceed directly to the catch
|
||||||
// EBP + 4 (return address) + 4 (argument) + 4 (point to last object on stack == saved regs)
|
// EBP + 4 (return address) + 4 (argument) + 4 (point to last object on stack == saved regs)
|
||||||
context.restoreESP = (Uint32*) ((Uint8*)context.sucessorEBP + 12);
|
context.restoreESP = (Uint32*) ((Uint8*)context.successorEBP + 12);
|
||||||
|
|
||||||
// now that the context struct is filled we can print debugging information
|
// now that the context struct is filled we can print debugging information
|
||||||
DEBUG_LOG_ONLY(printExceptionBegin(UT_LOG_MODULE(x86ExceptionHandler), &context));
|
DEBUG_LOG_ONLY(printExceptionBegin(UT_LOG_MODULE(x86ExceptionHandler), &context));
|
||||||
@ -172,9 +172,9 @@ bool x86PopStackFrame(Context* context)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// roll back to point to previous frame
|
// roll back to point to previous frame
|
||||||
context->sucessorEBP = context->sourceEBP;
|
context->successorEBP = context->sourceEBP;
|
||||||
context->sourceEBP = newSourceEBP;
|
context->sourceEBP = newSourceEBP;
|
||||||
context->sourceAddress = (Uint8*)(context->sucessorEBP[1]) - 1; // move back a byte to ensure we're in correct control node
|
context->sourceAddress = (Uint8*)(context->successorEBP[1]) - 1; // move back a byte to ensure we're in correct control node
|
||||||
|
|
||||||
context->successorCE = context->sourceCE;
|
context->successorCE = context->sourceCE;
|
||||||
context->sourceCE = NativeCodeCache::getCache().lookupByRange(context->sourceAddress);
|
context->sourceCE = NativeCodeCache::getCache().lookupByRange(context->sourceAddress);
|
||||||
@ -200,13 +200,13 @@ bool x86PopStackFrame(Context* context)
|
|||||||
{
|
{
|
||||||
// successor is java frame; restore regs as per saved policy
|
// successor is java frame; restore regs as per saved policy
|
||||||
StackFrameInfo& successorPolicy = context->successorCE->policy;
|
StackFrameInfo& successorPolicy = context->successorCE->policy;
|
||||||
restoreReg = (Uint32*) ((Uint8*)(context->sucessorEBP) - successorPolicy.getCalleeSavedBeginOffset());
|
restoreReg = (Uint32*) ((Uint8*)(context->successorEBP) - successorPolicy.getCalleeSavedBeginOffset());
|
||||||
numRegs = successorPolicy.getNumSavedGPRWords();
|
numRegs = successorPolicy.getNumSavedGPRWords();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// successor is native frame; restore all regs from just below EBP
|
// successor is native frame; restore all regs from just below EBP
|
||||||
restoreReg = (Uint32*) ((Uint8*)(context->sucessorEBP) - 4);
|
restoreReg = (Uint32*) ((Uint8*)(context->successorEBP) - 4);
|
||||||
numRegs = 3;
|
numRegs = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -244,7 +244,7 @@ extern void* compileStubReEntryPoint;
|
|||||||
// Purpose: determines whether the source frame is a native method / syscall guard frame
|
// Purpose: determines whether the source frame is a native method / syscall guard frame
|
||||||
bool isGuardFrame(Context* context, bool printIdentifier = false)
|
bool isGuardFrame(Context* context, bool printIdentifier = false)
|
||||||
{
|
{
|
||||||
Uint32 retAddress = (Uint32)(context->sucessorEBP[1]);
|
Uint32 retAddress = (Uint32)(context->successorEBP[1]);
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
// check unrolled-loop stubs for return address
|
// check unrolled-loop stubs for return address
|
||||||
@ -324,7 +324,7 @@ void printExceptionBegin(LogModuleObject &f, Context* context)
|
|||||||
UT_OBJECTLOG(f, PR_LOG_ALWAYS, ("a syscall or native method\n"));
|
UT_OBJECTLOG(f, PR_LOG_ALWAYS, ("a syscall or native method\n"));
|
||||||
}
|
}
|
||||||
UT_OBJECTLOG(f, PR_LOG_ALWAYS, ("Object: '%s' (object = 0x%p)\n", context->object->getClass().getName(), context->object));
|
UT_OBJECTLOG(f, PR_LOG_ALWAYS, ("Object: '%s' (object = 0x%p)\n", context->object->getClass().getName(), context->object));
|
||||||
UT_OBJECTLOG(f, PR_LOG_ALWAYS, ("Return: 0x%p\n", context->sucessorEBP[1]));
|
UT_OBJECTLOG(f, PR_LOG_ALWAYS, ("Return: 0x%p\n", context->successorEBP[1]));
|
||||||
UT_OBJECTLOG(UT_LOG_MODULE(ExceptionRegs), PR_LOG_ALWAYS, ("Entry: "));
|
UT_OBJECTLOG(UT_LOG_MODULE(ExceptionRegs), PR_LOG_ALWAYS, ("Entry: "));
|
||||||
printRegs(UT_LOG_MODULE(ExceptionRegs), context);
|
printRegs(UT_LOG_MODULE(ExceptionRegs), context);
|
||||||
}
|
}
|
||||||
@ -365,7 +365,7 @@ void printContext(LogModuleObject &f, Context* context)
|
|||||||
else if(!isGuardFrame(context, true)) // isGuardFrame(..., true) prints reference if guard frame found
|
else if(!isGuardFrame(context, true)) // isGuardFrame(..., true) prints reference if guard frame found
|
||||||
UT_OBJECTLOG(f, PR_LOG_ALWAYS, ("Method: anonymous\n"));
|
UT_OBJECTLOG(f, PR_LOG_ALWAYS, ("Method: anonymous\n"));
|
||||||
|
|
||||||
UT_OBJECTLOG(f, PR_LOG_ALWAYS, ("Return: 0x%p\n", context->sucessorEBP[1]));
|
UT_OBJECTLOG(f, PR_LOG_ALWAYS, ("Return: 0x%p\n", context->successorEBP[1]));
|
||||||
}
|
}
|
||||||
#endif // DEBUG_LOG
|
#endif // DEBUG_LOG
|
||||||
|
|
||||||
|
|||||||
@ -50,7 +50,7 @@ struct Context
|
|||||||
Uint32 EDI;
|
Uint32 EDI;
|
||||||
|
|
||||||
Uint32* sourceEBP;
|
Uint32* sourceEBP;
|
||||||
Uint32* sucessorEBP;
|
Uint32* successorEBP;
|
||||||
|
|
||||||
Uint8* sourceAddress;
|
Uint8* sourceAddress;
|
||||||
|
|
||||||
|
|||||||
@ -56,19 +56,19 @@ public:
|
|||||||
virtual OSStatus HandleAll( EventHandlerCallRef inHandlerCallRef,
|
virtual OSStatus HandleAll( EventHandlerCallRef inHandlerCallRef,
|
||||||
EventRef inEvent);
|
EventRef inEvent);
|
||||||
protected:
|
protected:
|
||||||
virtual OSStatus HandleUnicodeForKeyEvent( CBrowserShell* aBrwoserShell,
|
virtual OSStatus HandleUnicodeForKeyEvent( CBrowserShell* aBrowserShell,
|
||||||
EventHandlerCallRef inHandlerCallRef,
|
EventHandlerCallRef inHandlerCallRef,
|
||||||
EventRef inEvent);
|
EventRef inEvent);
|
||||||
virtual OSStatus HandleUpdateActiveInputArea( CBrowserShell* sink,
|
virtual OSStatus HandleUpdateActiveInputArea( CBrowserShell* sink,
|
||||||
EventHandlerCallRef inHandlerCallRef,
|
EventHandlerCallRef inHandlerCallRef,
|
||||||
EventRef inEvent);
|
EventRef inEvent);
|
||||||
virtual OSStatus HandleOffsetToPos( CBrowserShell* aBrwoserShell,
|
virtual OSStatus HandleOffsetToPos( CBrowserShell* aBrowserShell,
|
||||||
EventHandlerCallRef inHandlerCallRef,
|
EventHandlerCallRef inHandlerCallRef,
|
||||||
EventRef inEvent);
|
EventRef inEvent);
|
||||||
virtual OSStatus HandlePosToOffset( CBrowserShell* aBrwoserShell,
|
virtual OSStatus HandlePosToOffset( CBrowserShell* aBrowserShell,
|
||||||
EventHandlerCallRef inHandlerCallRef,
|
EventHandlerCallRef inHandlerCallRef,
|
||||||
EventRef inEvent);
|
EventRef inEvent);
|
||||||
virtual OSStatus HandleGetSelectedText( CBrowserShell* aBrwoserShell,
|
virtual OSStatus HandleGetSelectedText( CBrowserShell* aBrowserShell,
|
||||||
EventHandlerCallRef inHandlerCallRef,
|
EventHandlerCallRef inHandlerCallRef,
|
||||||
EventRef inEvent);
|
EventRef inEvent);
|
||||||
|
|
||||||
|
|||||||
@ -48,7 +48,7 @@ interface nsIQABrowserView;
|
|||||||
[scriptable, uuid(31D58E11-E4A3-49fc-B544-C100F375A280)]
|
[scriptable, uuid(31D58E11-E4A3-49fc-B544-C100F375A280)]
|
||||||
interface nsIQABrowserChrome : nsISupports
|
interface nsIQABrowserChrome : nsISupports
|
||||||
{
|
{
|
||||||
// Hold a handle to the nsIQABrwoserUIGlue which is above the chrome
|
// Hold a handle to the nsIQABrowserUIGlue which is above the chrome
|
||||||
// and to the nsIQABrowserView below the chrome.
|
// and to the nsIQABrowserView below the chrome.
|
||||||
void initQAChrome(in nsIQABrowserUIGlue uiGlue, in nativeWindow nativeWnd);
|
void initQAChrome(in nsIQABrowserUIGlue uiGlue, in nativeWindow nativeWnd);
|
||||||
};
|
};
|
||||||
|
|||||||
@ -2863,7 +2863,7 @@ function chan_modestr (f)
|
|||||||
/* modeA are 'list' ones, and so should not be shown.
|
/* modeA are 'list' ones, and so should not be shown.
|
||||||
* modeB are 'param' ones, like +k key, so we wont show them either.
|
* modeB are 'param' ones, like +k key, so we wont show them either.
|
||||||
* modeC are 'on-param' ones, like +l limit, which we will show.
|
* modeC are 'on-param' ones, like +l limit, which we will show.
|
||||||
* modeD are 'boolean' ones, which we will definately show.
|
* modeD are 'boolean' ones, which we will definitely show.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Add modeD:
|
// Add modeD:
|
||||||
|
|||||||
@ -225,7 +225,7 @@ function initStatic()
|
|||||||
}
|
}
|
||||||
catch (ex)
|
catch (ex)
|
||||||
{
|
{
|
||||||
dd("IO service failed to initalize: " + ex);
|
dd("IO service failed to initialize: " + ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -238,7 +238,7 @@ function initStatic()
|
|||||||
}
|
}
|
||||||
catch (ex)
|
catch (ex)
|
||||||
{
|
{
|
||||||
dd("Sound failed to initalize: " + ex);
|
dd("Sound failed to initialize: " + ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -250,7 +250,7 @@ function initStatic()
|
|||||||
}
|
}
|
||||||
catch (ex)
|
catch (ex)
|
||||||
{
|
{
|
||||||
dd("Global History failed to initalize: " + ex);
|
dd("Global History failed to initialize: " + ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -274,7 +274,7 @@ function initStatic()
|
|||||||
}
|
}
|
||||||
catch (ex)
|
catch (ex)
|
||||||
{
|
{
|
||||||
dd("Locale-correct date formatting failed to initalize: " + ex);
|
dd("Locale-correct date formatting failed to initialize: " + ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
multilineInputMode(client.prefs["multiline"]);
|
multilineInputMode(client.prefs["multiline"]);
|
||||||
|
|||||||
@ -210,12 +210,12 @@ mozSpellChecker::Replace(const nsAString &aOldWord, const nsAString &aNewWord, P
|
|||||||
mTsDoc->NextBlock();
|
mTsDoc->NextBlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
//After we have moved to the block where the first occurance of replace was done, put the
|
//After we have moved to the block where the first occurrence of replace was done, put the
|
||||||
//selection to the next word following it. In case there is no word following it i.e if it happens
|
//selection to the next word following it. In case there is no word following it i.e if it happens
|
||||||
//to be the last word in that block, then move to the next block and put the selection to the
|
//to be the last word in that block, then move to the next block and put the selection to the
|
||||||
//first word in that block, otherwise when the Setupdoc() is called, it queries the LastSelectedBlock()
|
//first word in that block, otherwise when the Setupdoc() is called, it queries the LastSelectedBlock()
|
||||||
//and the selection offset of the last occurance of the replaced word is taken instead of the first
|
//and the selection offset of the last occurrence of the replaced word is taken instead of the first
|
||||||
//occurance and things get messed up as reported in the bug 244969
|
//occurrence and things get messed up as reported in the bug 244969
|
||||||
|
|
||||||
if( NS_SUCCEEDED(mTsDoc->IsDone(&done)) && !done ){
|
if( NS_SUCCEEDED(mTsDoc->IsDone(&done)) && !done ){
|
||||||
nsString str;
|
nsString str;
|
||||||
|
|||||||
@ -43,7 +43,7 @@
|
|||||||
NS_IMPL_ISUPPORTS2(gfxImageFrame, gfxIImageFrame, nsIInterfaceRequestor)
|
NS_IMPL_ISUPPORTS2(gfxImageFrame, gfxIImageFrame, nsIInterfaceRequestor)
|
||||||
|
|
||||||
gfxImageFrame::gfxImageFrame() :
|
gfxImageFrame::gfxImageFrame() :
|
||||||
mInitalized(PR_FALSE),
|
mInitialized(PR_FALSE),
|
||||||
mMutable(PR_TRUE),
|
mMutable(PR_TRUE),
|
||||||
mHasBackgroundColor(PR_FALSE),
|
mHasBackgroundColor(PR_FALSE),
|
||||||
mTimeout(100),
|
mTimeout(100),
|
||||||
@ -61,7 +61,7 @@ gfxImageFrame::~gfxImageFrame()
|
|||||||
/* void init (in PRInt32 aX, in PRInt32 aY, in PRInt32 aWidth, in PRInt32 aHeight, in gfx_format aFormat); */
|
/* void init (in PRInt32 aX, in PRInt32 aY, in PRInt32 aWidth, in PRInt32 aHeight, in gfx_format aFormat); */
|
||||||
NS_IMETHODIMP gfxImageFrame::Init(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight, gfx_format aFormat,gfx_depth aDepth)
|
NS_IMETHODIMP gfxImageFrame::Init(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight, gfx_format aFormat,gfx_depth aDepth)
|
||||||
{
|
{
|
||||||
if (mInitalized)
|
if (mInitialized)
|
||||||
return NS_ERROR_FAILURE;
|
return NS_ERROR_FAILURE;
|
||||||
|
|
||||||
if (aWidth <= 0 || aHeight <= 0) {
|
if (aWidth <= 0 || aHeight <= 0) {
|
||||||
@ -133,7 +133,7 @@ NS_IMETHODIMP gfxImageFrame::Init(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt3
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
printf("unsupposed gfx_format\n");
|
printf("unsupported gfx_format\n");
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -143,7 +143,7 @@ NS_IMETHODIMP gfxImageFrame::Init(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt3
|
|||||||
|
|
||||||
mTopToBottom = mImage->GetIsRowOrderTopToBottom();
|
mTopToBottom = mImage->GetIsRowOrderTopToBottom();
|
||||||
|
|
||||||
mInitalized = PR_TRUE;
|
mInitialized = PR_TRUE;
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -151,17 +151,17 @@ NS_IMETHODIMP gfxImageFrame::Init(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt3
|
|||||||
/* attribute boolean mutable */
|
/* attribute boolean mutable */
|
||||||
NS_IMETHODIMP gfxImageFrame::GetMutable(PRBool *aMutable)
|
NS_IMETHODIMP gfxImageFrame::GetMutable(PRBool *aMutable)
|
||||||
{
|
{
|
||||||
if (!mInitalized)
|
if (!mInitialized)
|
||||||
return NS_ERROR_NOT_INITIALIZED;
|
return NS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
NS_ASSERTION(mInitalized, "gfxImageFrame::GetMutable called on non-inited gfxImageFrame");
|
NS_ASSERTION(mInitialized, "gfxImageFrame::GetMutable called on non-inited gfxImageFrame");
|
||||||
*aMutable = mMutable;
|
*aMutable = mMutable;
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP gfxImageFrame::SetMutable(PRBool aMutable)
|
NS_IMETHODIMP gfxImageFrame::SetMutable(PRBool aMutable)
|
||||||
{
|
{
|
||||||
if (!mInitalized)
|
if (!mInitialized)
|
||||||
return NS_ERROR_NOT_INITIALIZED;
|
return NS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
mMutable = aMutable;
|
mMutable = aMutable;
|
||||||
@ -175,7 +175,7 @@ NS_IMETHODIMP gfxImageFrame::SetMutable(PRBool aMutable)
|
|||||||
/* readonly attribute PRInt32 x; */
|
/* readonly attribute PRInt32 x; */
|
||||||
NS_IMETHODIMP gfxImageFrame::GetX(PRInt32 *aX)
|
NS_IMETHODIMP gfxImageFrame::GetX(PRInt32 *aX)
|
||||||
{
|
{
|
||||||
if (!mInitalized)
|
if (!mInitialized)
|
||||||
return NS_ERROR_NOT_INITIALIZED;
|
return NS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
*aX = mOffset.x;
|
*aX = mOffset.x;
|
||||||
@ -185,7 +185,7 @@ NS_IMETHODIMP gfxImageFrame::GetX(PRInt32 *aX)
|
|||||||
/* readonly attribute PRInt32 y; */
|
/* readonly attribute PRInt32 y; */
|
||||||
NS_IMETHODIMP gfxImageFrame::GetY(PRInt32 *aY)
|
NS_IMETHODIMP gfxImageFrame::GetY(PRInt32 *aY)
|
||||||
{
|
{
|
||||||
if (!mInitalized)
|
if (!mInitialized)
|
||||||
return NS_ERROR_NOT_INITIALIZED;
|
return NS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
*aY = mOffset.y;
|
*aY = mOffset.y;
|
||||||
@ -196,7 +196,7 @@ NS_IMETHODIMP gfxImageFrame::GetY(PRInt32 *aY)
|
|||||||
/* readonly attribute PRInt32 width; */
|
/* readonly attribute PRInt32 width; */
|
||||||
NS_IMETHODIMP gfxImageFrame::GetWidth(PRInt32 *aWidth)
|
NS_IMETHODIMP gfxImageFrame::GetWidth(PRInt32 *aWidth)
|
||||||
{
|
{
|
||||||
if (!mInitalized)
|
if (!mInitialized)
|
||||||
return NS_ERROR_NOT_INITIALIZED;
|
return NS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
*aWidth = mSize.width;
|
*aWidth = mSize.width;
|
||||||
@ -206,7 +206,7 @@ NS_IMETHODIMP gfxImageFrame::GetWidth(PRInt32 *aWidth)
|
|||||||
/* readonly attribute PRInt32 height; */
|
/* readonly attribute PRInt32 height; */
|
||||||
NS_IMETHODIMP gfxImageFrame::GetHeight(PRInt32 *aHeight)
|
NS_IMETHODIMP gfxImageFrame::GetHeight(PRInt32 *aHeight)
|
||||||
{
|
{
|
||||||
if (!mInitalized)
|
if (!mInitialized)
|
||||||
return NS_ERROR_NOT_INITIALIZED;
|
return NS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
*aHeight = mSize.height;
|
*aHeight = mSize.height;
|
||||||
@ -216,7 +216,7 @@ NS_IMETHODIMP gfxImageFrame::GetHeight(PRInt32 *aHeight)
|
|||||||
/* void getRect(in nsRectRef rect); */
|
/* void getRect(in nsRectRef rect); */
|
||||||
NS_IMETHODIMP gfxImageFrame::GetRect(nsIntRect &aRect)
|
NS_IMETHODIMP gfxImageFrame::GetRect(nsIntRect &aRect)
|
||||||
{
|
{
|
||||||
if (!mInitalized)
|
if (!mInitialized)
|
||||||
return NS_ERROR_NOT_INITIALIZED;
|
return NS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
aRect.SetRect(mOffset.x, mOffset.y, mSize.width, mSize.height);
|
aRect.SetRect(mOffset.x, mOffset.y, mSize.width, mSize.height);
|
||||||
@ -227,7 +227,7 @@ NS_IMETHODIMP gfxImageFrame::GetRect(nsIntRect &aRect)
|
|||||||
/* readonly attribute gfx_format format; */
|
/* readonly attribute gfx_format format; */
|
||||||
NS_IMETHODIMP gfxImageFrame::GetFormat(gfx_format *aFormat)
|
NS_IMETHODIMP gfxImageFrame::GetFormat(gfx_format *aFormat)
|
||||||
{
|
{
|
||||||
if (!mInitalized)
|
if (!mInitialized)
|
||||||
return NS_ERROR_NOT_INITIALIZED;
|
return NS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
*aFormat = mFormat;
|
*aFormat = mFormat;
|
||||||
@ -237,7 +237,7 @@ NS_IMETHODIMP gfxImageFrame::GetFormat(gfx_format *aFormat)
|
|||||||
/* readonly attribute boolean needsBackground; */
|
/* readonly attribute boolean needsBackground; */
|
||||||
NS_IMETHODIMP gfxImageFrame::GetNeedsBackground(PRBool *aNeedsBackground)
|
NS_IMETHODIMP gfxImageFrame::GetNeedsBackground(PRBool *aNeedsBackground)
|
||||||
{
|
{
|
||||||
if (!mInitalized)
|
if (!mInitialized)
|
||||||
return NS_ERROR_NOT_INITIALIZED;
|
return NS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
*aNeedsBackground = (mFormat != gfxIFormats::RGB &&
|
*aNeedsBackground = (mFormat != gfxIFormats::RGB &&
|
||||||
@ -250,7 +250,7 @@ NS_IMETHODIMP gfxImageFrame::GetNeedsBackground(PRBool *aNeedsBackground)
|
|||||||
/* readonly attribute unsigned long imageBytesPerRow; */
|
/* readonly attribute unsigned long imageBytesPerRow; */
|
||||||
NS_IMETHODIMP gfxImageFrame::GetImageBytesPerRow(PRUint32 *aBytesPerRow)
|
NS_IMETHODIMP gfxImageFrame::GetImageBytesPerRow(PRUint32 *aBytesPerRow)
|
||||||
{
|
{
|
||||||
if (!mInitalized)
|
if (!mInitialized)
|
||||||
return NS_ERROR_NOT_INITIALIZED;
|
return NS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
*aBytesPerRow = mImage->GetLineStride();
|
*aBytesPerRow = mImage->GetLineStride();
|
||||||
@ -260,7 +260,7 @@ NS_IMETHODIMP gfxImageFrame::GetImageBytesPerRow(PRUint32 *aBytesPerRow)
|
|||||||
/* readonly attribute unsigned long imageDataLength; */
|
/* readonly attribute unsigned long imageDataLength; */
|
||||||
NS_IMETHODIMP gfxImageFrame::GetImageDataLength(PRUint32 *aBitsLength)
|
NS_IMETHODIMP gfxImageFrame::GetImageDataLength(PRUint32 *aBitsLength)
|
||||||
{
|
{
|
||||||
if (!mInitalized)
|
if (!mInitialized)
|
||||||
return NS_ERROR_NOT_INITIALIZED;
|
return NS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
*aBitsLength = mImage->GetLineStride() * mSize.height;
|
*aBitsLength = mImage->GetLineStride() * mSize.height;
|
||||||
@ -270,7 +270,7 @@ NS_IMETHODIMP gfxImageFrame::GetImageDataLength(PRUint32 *aBitsLength)
|
|||||||
/* void getImageData([array, size_is(length)] out PRUint8 bits, out unsigned long length); */
|
/* void getImageData([array, size_is(length)] out PRUint8 bits, out unsigned long length); */
|
||||||
NS_IMETHODIMP gfxImageFrame::GetImageData(PRUint8 **aData, PRUint32 *length)
|
NS_IMETHODIMP gfxImageFrame::GetImageData(PRUint8 **aData, PRUint32 *length)
|
||||||
{
|
{
|
||||||
if (!mInitalized)
|
if (!mInitialized)
|
||||||
return NS_ERROR_NOT_INITIALIZED;
|
return NS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
NS_ASSERTION(mMutable, "trying to get data on an immutable frame");
|
NS_ASSERTION(mMutable, "trying to get data on an immutable frame");
|
||||||
@ -290,7 +290,7 @@ NS_IMETHODIMP gfxImageFrame::SetImageData(const PRUint8 *aData, PRUint32 aLength
|
|||||||
nsresult gfxImageFrame::SetData(const PRUint8 *aData, PRUint32 aLength,
|
nsresult gfxImageFrame::SetData(const PRUint8 *aData, PRUint32 aLength,
|
||||||
PRInt32 aOffset, PRBool aSetAlpha)
|
PRInt32 aOffset, PRBool aSetAlpha)
|
||||||
{
|
{
|
||||||
if (!mInitalized)
|
if (!mInitialized)
|
||||||
return NS_ERROR_NOT_INITIALIZED;
|
return NS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
NS_ASSERTION(mMutable, "trying to set data on an immutable frame");
|
NS_ASSERTION(mMutable, "trying to set data on an immutable frame");
|
||||||
@ -376,7 +376,7 @@ nsresult gfxImageFrame::SetData(const PRUint8 *aData, PRUint32 aLength,
|
|||||||
/* void lockImageData (); */
|
/* void lockImageData (); */
|
||||||
NS_IMETHODIMP gfxImageFrame::LockImageData()
|
NS_IMETHODIMP gfxImageFrame::LockImageData()
|
||||||
{
|
{
|
||||||
if (!mInitalized)
|
if (!mInitialized)
|
||||||
return NS_ERROR_NOT_INITIALIZED;
|
return NS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return mImage->LockImagePixels(PR_FALSE);
|
return mImage->LockImagePixels(PR_FALSE);
|
||||||
@ -385,7 +385,7 @@ NS_IMETHODIMP gfxImageFrame::LockImageData()
|
|||||||
/* void unlockImageData (); */
|
/* void unlockImageData (); */
|
||||||
NS_IMETHODIMP gfxImageFrame::UnlockImageData()
|
NS_IMETHODIMP gfxImageFrame::UnlockImageData()
|
||||||
{
|
{
|
||||||
if (!mInitalized)
|
if (!mInitialized)
|
||||||
return NS_ERROR_NOT_INITIALIZED;
|
return NS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return mImage->UnlockImagePixels(PR_FALSE);
|
return mImage->UnlockImagePixels(PR_FALSE);
|
||||||
@ -394,7 +394,7 @@ NS_IMETHODIMP gfxImageFrame::UnlockImageData()
|
|||||||
/* readonly attribute unsigned long alphaBytesPerRow; */
|
/* readonly attribute unsigned long alphaBytesPerRow; */
|
||||||
NS_IMETHODIMP gfxImageFrame::GetAlphaBytesPerRow(PRUint32 *aBytesPerRow)
|
NS_IMETHODIMP gfxImageFrame::GetAlphaBytesPerRow(PRUint32 *aBytesPerRow)
|
||||||
{
|
{
|
||||||
if (!mInitalized || !mImage->GetHasAlphaMask())
|
if (!mInitialized || !mImage->GetHasAlphaMask())
|
||||||
return NS_ERROR_NOT_INITIALIZED;
|
return NS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
*aBytesPerRow = mImage->GetAlphaLineStride();
|
*aBytesPerRow = mImage->GetAlphaLineStride();
|
||||||
@ -404,7 +404,7 @@ NS_IMETHODIMP gfxImageFrame::GetAlphaBytesPerRow(PRUint32 *aBytesPerRow)
|
|||||||
/* readonly attribute unsigned long alphaDataLength; */
|
/* readonly attribute unsigned long alphaDataLength; */
|
||||||
NS_IMETHODIMP gfxImageFrame::GetAlphaDataLength(PRUint32 *aBitsLength)
|
NS_IMETHODIMP gfxImageFrame::GetAlphaDataLength(PRUint32 *aBitsLength)
|
||||||
{
|
{
|
||||||
if (!mInitalized || !mImage->GetHasAlphaMask())
|
if (!mInitialized || !mImage->GetHasAlphaMask())
|
||||||
return NS_ERROR_NOT_INITIALIZED;
|
return NS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
*aBitsLength = mImage->GetAlphaLineStride() * mSize.height;
|
*aBitsLength = mImage->GetAlphaLineStride() * mSize.height;
|
||||||
@ -414,7 +414,7 @@ NS_IMETHODIMP gfxImageFrame::GetAlphaDataLength(PRUint32 *aBitsLength)
|
|||||||
/* void getAlphaData([array, size_is(length)] out PRUint8 bits, out unsigned long length); */
|
/* void getAlphaData([array, size_is(length)] out PRUint8 bits, out unsigned long length); */
|
||||||
NS_IMETHODIMP gfxImageFrame::GetAlphaData(PRUint8 **aData, PRUint32 *length)
|
NS_IMETHODIMP gfxImageFrame::GetAlphaData(PRUint8 **aData, PRUint32 *length)
|
||||||
{
|
{
|
||||||
if (!mInitalized || !mImage->GetHasAlphaMask())
|
if (!mInitialized || !mImage->GetHasAlphaMask())
|
||||||
return NS_ERROR_NOT_INITIALIZED;
|
return NS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
NS_ASSERTION(mMutable, "trying to get data on an immutable frame");
|
NS_ASSERTION(mMutable, "trying to get data on an immutable frame");
|
||||||
@ -434,7 +434,7 @@ NS_IMETHODIMP gfxImageFrame::SetAlphaData(const PRUint8 *aData, PRUint32 aLength
|
|||||||
/* void lockAlphaData (); */
|
/* void lockAlphaData (); */
|
||||||
NS_IMETHODIMP gfxImageFrame::LockAlphaData()
|
NS_IMETHODIMP gfxImageFrame::LockAlphaData()
|
||||||
{
|
{
|
||||||
if (!mInitalized || !mImage->GetHasAlphaMask())
|
if (!mInitialized || !mImage->GetHasAlphaMask())
|
||||||
return NS_ERROR_NOT_INITIALIZED;
|
return NS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return mImage->LockImagePixels(PR_TRUE);
|
return mImage->LockImagePixels(PR_TRUE);
|
||||||
@ -443,7 +443,7 @@ NS_IMETHODIMP gfxImageFrame::LockAlphaData()
|
|||||||
/* void unlockAlphaData (); */
|
/* void unlockAlphaData (); */
|
||||||
NS_IMETHODIMP gfxImageFrame::UnlockAlphaData()
|
NS_IMETHODIMP gfxImageFrame::UnlockAlphaData()
|
||||||
{
|
{
|
||||||
if (!mInitalized || !mImage->GetHasAlphaMask())
|
if (!mInitialized || !mImage->GetHasAlphaMask())
|
||||||
return NS_ERROR_NOT_INITIALIZED;
|
return NS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
return mImage->UnlockImagePixels(PR_TRUE);
|
return mImage->UnlockImagePixels(PR_TRUE);
|
||||||
@ -456,7 +456,7 @@ NS_IMETHODIMP gfxImageFrame::UnlockAlphaData()
|
|||||||
/* void drawTo */
|
/* void drawTo */
|
||||||
NS_IMETHODIMP gfxImageFrame::DrawTo(gfxIImageFrame* aDst, PRInt32 aDX, PRInt32 aDY, PRInt32 aDWidth, PRInt32 aDHeight)
|
NS_IMETHODIMP gfxImageFrame::DrawTo(gfxIImageFrame* aDst, PRInt32 aDX, PRInt32 aDY, PRInt32 aDWidth, PRInt32 aDHeight)
|
||||||
{
|
{
|
||||||
if (!mInitalized)
|
if (!mInitialized)
|
||||||
return NS_ERROR_NOT_INITIALIZED;
|
return NS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
nsCOMPtr<nsIImage> img(do_GetInterface(aDst));
|
nsCOMPtr<nsIImage> img(do_GetInterface(aDst));
|
||||||
@ -467,7 +467,7 @@ NS_IMETHODIMP gfxImageFrame::DrawTo(gfxIImageFrame* aDst, PRInt32 aDX, PRInt32 a
|
|||||||
/* attribute long timeout; */
|
/* attribute long timeout; */
|
||||||
NS_IMETHODIMP gfxImageFrame::GetTimeout(PRInt32 *aTimeout)
|
NS_IMETHODIMP gfxImageFrame::GetTimeout(PRInt32 *aTimeout)
|
||||||
{
|
{
|
||||||
if (!mInitalized)
|
if (!mInitialized)
|
||||||
return NS_ERROR_NOT_INITIALIZED;
|
return NS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
// Ensure a minimal time between updates so we don't throttle the UI thread.
|
// Ensure a minimal time between updates so we don't throttle the UI thread.
|
||||||
@ -493,7 +493,7 @@ NS_IMETHODIMP gfxImageFrame::GetTimeout(PRInt32 *aTimeout)
|
|||||||
|
|
||||||
NS_IMETHODIMP gfxImageFrame::SetTimeout(PRInt32 aTimeout)
|
NS_IMETHODIMP gfxImageFrame::SetTimeout(PRInt32 aTimeout)
|
||||||
{
|
{
|
||||||
if (!mInitalized)
|
if (!mInitialized)
|
||||||
return NS_ERROR_NOT_INITIALIZED;
|
return NS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
mTimeout = aTimeout;
|
mTimeout = aTimeout;
|
||||||
@ -503,7 +503,7 @@ NS_IMETHODIMP gfxImageFrame::SetTimeout(PRInt32 aTimeout)
|
|||||||
/* attribute long frameDisposalMethod; */
|
/* attribute long frameDisposalMethod; */
|
||||||
NS_IMETHODIMP gfxImageFrame::GetFrameDisposalMethod(PRInt32 *aFrameDisposalMethod)
|
NS_IMETHODIMP gfxImageFrame::GetFrameDisposalMethod(PRInt32 *aFrameDisposalMethod)
|
||||||
{
|
{
|
||||||
if (!mInitalized)
|
if (!mInitialized)
|
||||||
return NS_ERROR_NOT_INITIALIZED;
|
return NS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
*aFrameDisposalMethod = mDisposalMethod;
|
*aFrameDisposalMethod = mDisposalMethod;
|
||||||
@ -511,7 +511,7 @@ NS_IMETHODIMP gfxImageFrame::GetFrameDisposalMethod(PRInt32 *aFrameDisposalMetho
|
|||||||
}
|
}
|
||||||
NS_IMETHODIMP gfxImageFrame::SetFrameDisposalMethod(PRInt32 aFrameDisposalMethod)
|
NS_IMETHODIMP gfxImageFrame::SetFrameDisposalMethod(PRInt32 aFrameDisposalMethod)
|
||||||
{
|
{
|
||||||
if (!mInitalized)
|
if (!mInitialized)
|
||||||
return NS_ERROR_NOT_INITIALIZED;
|
return NS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
mDisposalMethod = aFrameDisposalMethod;
|
mDisposalMethod = aFrameDisposalMethod;
|
||||||
@ -521,7 +521,7 @@ NS_IMETHODIMP gfxImageFrame::SetFrameDisposalMethod(PRInt32 aFrameDisposalMethod
|
|||||||
/* attribute gfx_color backgroundColor; */
|
/* attribute gfx_color backgroundColor; */
|
||||||
NS_IMETHODIMP gfxImageFrame::GetBackgroundColor(gfx_color *aBackgroundColor)
|
NS_IMETHODIMP gfxImageFrame::GetBackgroundColor(gfx_color *aBackgroundColor)
|
||||||
{
|
{
|
||||||
if (!mInitalized || !mHasBackgroundColor)
|
if (!mInitialized || !mHasBackgroundColor)
|
||||||
return NS_ERROR_NOT_INITIALIZED;
|
return NS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
*aBackgroundColor = mBackgroundColor;
|
*aBackgroundColor = mBackgroundColor;
|
||||||
@ -529,7 +529,7 @@ NS_IMETHODIMP gfxImageFrame::GetBackgroundColor(gfx_color *aBackgroundColor)
|
|||||||
}
|
}
|
||||||
NS_IMETHODIMP gfxImageFrame::SetBackgroundColor(gfx_color aBackgroundColor)
|
NS_IMETHODIMP gfxImageFrame::SetBackgroundColor(gfx_color aBackgroundColor)
|
||||||
{
|
{
|
||||||
if (!mInitalized)
|
if (!mInitialized)
|
||||||
return NS_ERROR_NOT_INITIALIZED;
|
return NS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
mBackgroundColor = aBackgroundColor;
|
mBackgroundColor = aBackgroundColor;
|
||||||
@ -539,7 +539,7 @@ NS_IMETHODIMP gfxImageFrame::SetBackgroundColor(gfx_color aBackgroundColor)
|
|||||||
|
|
||||||
NS_IMETHODIMP gfxImageFrame::GetInterface(const nsIID & aIID, void * *result)
|
NS_IMETHODIMP gfxImageFrame::GetInterface(const nsIID & aIID, void * *result)
|
||||||
{
|
{
|
||||||
if (!mInitalized)
|
if (!mInitialized)
|
||||||
return NS_ERROR_NOT_INITIALIZED;
|
return NS_ERROR_NOT_INITIALIZED;
|
||||||
|
|
||||||
NS_ENSURE_ARG_POINTER(result);
|
NS_ENSURE_ARG_POINTER(result);
|
||||||
|
|||||||
@ -76,7 +76,7 @@ private:
|
|||||||
|
|
||||||
nsCOMPtr<nsIImage> mImage;
|
nsCOMPtr<nsIImage> mImage;
|
||||||
|
|
||||||
PRPackedBool mInitalized;
|
PRPackedBool mInitialized;
|
||||||
PRPackedBool mMutable;
|
PRPackedBool mMutable;
|
||||||
PRPackedBool mHasBackgroundColor;
|
PRPackedBool mHasBackgroundColor;
|
||||||
PRPackedBool mTopToBottom;
|
PRPackedBool mTopToBottom;
|
||||||
|
|||||||
@ -16,7 +16,7 @@ import javax.swing.filechooser.FileSystemView;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* This Class contains all the Inital Startup Logic for Grendel.
|
* This Class contains all the Inital Startup Logic for Grendel.
|
||||||
* <strong>DO NOT restucture Grendel's build without checking this class.</strong>
|
* <strong>DO NOT restructure Grendel's build without checking this class.</strong>
|
||||||
* @author hash9
|
* @author hash9
|
||||||
*/
|
*/
|
||||||
public final class GrendelLauncher {
|
public final class GrendelLauncher {
|
||||||
|
|||||||
@ -35,7 +35,7 @@ public final class DBBuilder
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return true if the db was built sucessfully. Output is sent to st-out and st-err
|
* @return true if the db was built successfully. Output is sent to st-out and st-err
|
||||||
*/
|
*/
|
||||||
public static boolean build(Connection connection)
|
public static boolean build(Connection connection)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -48,7 +48,7 @@ How To Build and Run :
|
|||||||
|
|
||||||
* Edit <TEST_TOP_DIR>/config/SecurityTests.keys
|
* Edit <TEST_TOP_DIR>/config/SecurityTests.keys
|
||||||
|
|
||||||
- Replace every occurance of Host sirius with your Host name
|
- Replace every occurrence of Host sirius with your Host name
|
||||||
and port with your active port number.
|
and port with your active port number.
|
||||||
|
|
||||||
* cd <TEST_TOP_DIR>/src/org/mozilla/pluglet/test/basic
|
* cd <TEST_TOP_DIR>/src/org/mozilla/pluglet/test/basic
|
||||||
@ -102,7 +102,7 @@ How To Build and Run :
|
|||||||
|
|
||||||
* Edit <TEST_TOP_DIR>/config/SecurityTests.keys
|
* Edit <TEST_TOP_DIR>/config/SecurityTests.keys
|
||||||
|
|
||||||
- Replace every occurance of Host sirius with your Host name
|
- Replace every occurrence of Host sirius with your Host name
|
||||||
and port with your active port number.
|
and port with your active port number.
|
||||||
|
|
||||||
* cd <TEST_TOP_DIR>/src/org/mozilla/pluglet/test/basic
|
* cd <TEST_TOP_DIR>/src/org/mozilla/pluglet/test/basic
|
||||||
|
|||||||
@ -124,7 +124,7 @@ public class Utilities extends Object {
|
|||||||
// We made it to the end without "break"ing! They must be equal...
|
// We made it to the end without "break"ing! They must be equal...
|
||||||
returnValue = true;
|
returnValue = true;
|
||||||
}
|
}
|
||||||
} // else, they're definately not equal!
|
} // else, they're definitely not equal!
|
||||||
}
|
}
|
||||||
return returnValue;
|
return returnValue;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -86,7 +86,7 @@ public class SourceTextItem
|
|||||||
public static final int CLEARED = 5;
|
public static final int CLEARED = 5;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constuct for url (which is immutable during the lifetime of the object)
|
* Construct for url (which is immutable during the lifetime of the object)
|
||||||
* <p>
|
* <p>
|
||||||
* Presumably, text will be added later
|
* Presumably, text will be added later
|
||||||
* @param url url or filename by which this object will be known
|
* @param url url or filename by which this object will be known
|
||||||
@ -97,7 +97,7 @@ public class SourceTextItem
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constuct for url with text and status
|
* Construct for url with text and status
|
||||||
* <p>
|
* <p>
|
||||||
* @param url url or filename by which this object will be known
|
* @param url url or filename by which this object will be known
|
||||||
* @param text source text this object should start with
|
* @param text source text this object should start with
|
||||||
|
|||||||
@ -2234,7 +2234,7 @@ StepInto::step(JSDThreadState* jsdthreadstate)
|
|||||||
// doSomething();
|
// doSomething();
|
||||||
//
|
//
|
||||||
// The "i++" comes after the "doSomething" call as far as PCs go.
|
// The "i++" comes after the "doSomething" call as far as PCs go.
|
||||||
// But, in JS the line number associated with the "i++" instuction
|
// But, in JS the line number associated with the "i++" instruction
|
||||||
// is that of the "for(...". So, the lines for the PC can look like
|
// is that of the "for(...". So, the lines for the PC can look like
|
||||||
// 1,1,2,1,2. Thus we are careful in deciding how to step.
|
// 1,1,2,1,2. Thus we are careful in deciding how to step.
|
||||||
//
|
//
|
||||||
@ -2242,11 +2242,11 @@ StepInto::step(JSDThreadState* jsdthreadstate)
|
|||||||
prword_t topPC = _topPC(jsdthreadstate, topFrame);
|
prword_t topPC = _topPC(jsdthreadstate, topFrame);
|
||||||
int topLine = _topLine(topScript, topPC);
|
int topLine = _topLine(topScript, topPC);
|
||||||
|
|
||||||
// definately jumping back
|
// definitely jumping back
|
||||||
if( topPC < topPCInitial && topLine != topLineInitial )
|
if( topPC < topPCInitial && topLine != topLineInitial )
|
||||||
return STOP;
|
return STOP;
|
||||||
|
|
||||||
// definately jumping forward
|
// definitely jumping forward
|
||||||
if( topLine > topLineInitial )
|
if( topLine > topLineInitial )
|
||||||
return STOP;
|
return STOP;
|
||||||
|
|
||||||
@ -2284,11 +2284,11 @@ StepOver::step(JSDThreadState* jsdthreadstate)
|
|||||||
prword_t topPC = _topPC(jsdthreadstate, topFrame);
|
prword_t topPC = _topPC(jsdthreadstate, topFrame);
|
||||||
int topLine = _topLine(topScript, topPC);
|
int topLine = _topLine(topScript, topPC);
|
||||||
|
|
||||||
// definately jumping back
|
// definitely jumping back
|
||||||
if( topPC < topPCInitial && topLine != topLineInitial )
|
if( topPC < topPCInitial && topLine != topLineInitial )
|
||||||
return STOP;
|
return STOP;
|
||||||
|
|
||||||
// definately jumping forward
|
// definitely jumping forward
|
||||||
if( topLine > topLineInitial )
|
if( topLine > topLineInitial )
|
||||||
return STOP;
|
return STOP;
|
||||||
|
|
||||||
|
|||||||
@ -297,7 +297,7 @@ struct JSDProperty
|
|||||||
|
|
||||||
struct JSDAtom
|
struct JSDAtom
|
||||||
{
|
{
|
||||||
char* str; /* must be first element in stuct for compare */
|
char* str; /* must be first element in struct for compare */
|
||||||
intN refcount;
|
intN refcount;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -75,17 +75,17 @@ class StepInto implements StepHandler
|
|||||||
// doSomething();
|
// doSomething();
|
||||||
//
|
//
|
||||||
// The "i++" comes after the "doSomething" call as far as PCs go.
|
// The "i++" comes after the "doSomething" call as far as PCs go.
|
||||||
// But, in JS the line number associated with the "i++" instuction
|
// But, in JS the line number associated with the "i++" instruction
|
||||||
// is that of the "for(...". So, the lines for the PC can look like
|
// is that of the "for(...". So, the lines for the PC can look like
|
||||||
// 1,1,2,1,2. Thus we are careful in deciding how to step.
|
// 1,1,2,1,2. Thus we are careful in deciding how to step.
|
||||||
//
|
//
|
||||||
|
|
||||||
// definately jumping back
|
// definitely jumping back
|
||||||
if( pc.getPC() < _startPC.getPC() &&
|
if( pc.getPC() < _startPC.getPC() &&
|
||||||
sourceLocation.getLine() != _startSourceLocation.getLine() )
|
sourceLocation.getLine() != _startSourceLocation.getLine() )
|
||||||
return STOP;
|
return STOP;
|
||||||
|
|
||||||
// definately jumping forward
|
// definitely jumping forward
|
||||||
if( sourceLocation.getLine() > _startSourceLocation.getLine() )
|
if( sourceLocation.getLine() > _startSourceLocation.getLine() )
|
||||||
return STOP;
|
return STOP;
|
||||||
|
|
||||||
|
|||||||
@ -81,12 +81,12 @@ class StepOver implements StepHandler
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// definately jumping back
|
// definitely jumping back
|
||||||
if( pc.getPC() < _startPC.getPC() &&
|
if( pc.getPC() < _startPC.getPC() &&
|
||||||
sourceLocation.getLine() != _startSourceLocation.getLine() )
|
sourceLocation.getLine() != _startSourceLocation.getLine() )
|
||||||
return STOP;
|
return STOP;
|
||||||
|
|
||||||
// definately jumping forward
|
// definitely jumping forward
|
||||||
if( sourceLocation.getLine() > _startSourceLocation.getLine() )
|
if( sourceLocation.getLine() > _startSourceLocation.getLine() )
|
||||||
return STOP;
|
return STOP;
|
||||||
|
|
||||||
|
|||||||
@ -86,7 +86,7 @@ public class SourceTextItem
|
|||||||
public static final int CLEARED = 5;
|
public static final int CLEARED = 5;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constuct for url (which is immutable during the lifetime of the object)
|
* Construct for url (which is immutable during the lifetime of the object)
|
||||||
* <p>
|
* <p>
|
||||||
* Presumably, text will be added later
|
* Presumably, text will be added later
|
||||||
* @param url url or filename by which this object will be known
|
* @param url url or filename by which this object will be known
|
||||||
@ -97,7 +97,7 @@ public class SourceTextItem
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constuct for url with text and status
|
* Construct for url with text and status
|
||||||
* <p>
|
* <p>
|
||||||
* @param url url or filename by which this object will be known
|
* @param url url or filename by which this object will be known
|
||||||
* @param text source text this object should start with
|
* @param text source text this object should start with
|
||||||
|
|||||||
@ -179,7 +179,7 @@ typedef void
|
|||||||
* The 'closure' param is as passed to JS_SetExecuteHook or JS_SetCallHook
|
* The 'closure' param is as passed to JS_SetExecuteHook or JS_SetCallHook
|
||||||
* for the 'before'invocation, but is whatever value is returned from that
|
* for the 'before'invocation, but is whatever value is returned from that
|
||||||
* invocation for the 'after' invocation. Thus, the hook implementor *could*
|
* invocation for the 'after' invocation. Thus, the hook implementor *could*
|
||||||
* allocate a stucture in the 'before' invocation and return a pointer to that
|
* allocate a structure in the 'before' invocation and return a pointer to that
|
||||||
* structure. The pointer would then be handed to the hook for the 'after'
|
* structure. The pointer would then be handed to the hook for the 'after'
|
||||||
* invocation. Alternately, the 'before' could just return the same value as
|
* invocation. Alternately, the 'before' could just return the same value as
|
||||||
* in 'closure' to cause the 'after' invocation to be called with the same
|
* in 'closure' to cause the 'after' invocation to be called with the same
|
||||||
|
|||||||
@ -376,7 +376,7 @@ public:
|
|||||||
NonWithFrame *localFrame;
|
NonWithFrame *localFrame;
|
||||||
|
|
||||||
ParameterFrame *parameterFrame;
|
ParameterFrame *parameterFrame;
|
||||||
js2val *parameterSlots; // just local copies of paramterFrame->argSlots
|
js2val *parameterSlots; // just local copies of parameterFrame->argSlots
|
||||||
uint32 parameterCount; // ... and parameterFrame->argCount
|
uint32 parameterCount; // ... and parameterFrame->argCount
|
||||||
bool superConstructorCalled;
|
bool superConstructorCalled;
|
||||||
|
|
||||||
|
|||||||
@ -5297,7 +5297,7 @@ XXX see EvalAttributeExpression, where identifiers are being handled for now...
|
|||||||
DEFINE_ROOTKEEPER(meta, rk2, argsObj);
|
DEFINE_ROOTKEEPER(meta, rk2, argsObj);
|
||||||
|
|
||||||
// argCount is the number of slots acquired by the frame, it will
|
// argCount is the number of slots acquired by the frame, it will
|
||||||
// be the larger of the number of paramters defined or the number
|
// be the larger of the number of parameters defined or the number
|
||||||
// of arguments passed.
|
// of arguments passed.
|
||||||
argCount = (frameSlots) ? frameSlots->size() : 0;
|
argCount = (frameSlots) ? frameSlots->size() : 0;
|
||||||
if (argc > argCount)
|
if (argc > argCount)
|
||||||
|
|||||||
@ -2034,7 +2034,7 @@ XXX ...couldn't get this to work...
|
|||||||
/* utility routines */
|
/* utility routines */
|
||||||
|
|
||||||
// Extract the operator from the string literal function name
|
// Extract the operator from the string literal function name
|
||||||
// - requires the paramter count in order to distinguish
|
// - requires the parameter count in order to distinguish
|
||||||
// between unary and binary operators.
|
// between unary and binary operators.
|
||||||
Operator getOperator(uint32 parameterCount, const String &name);
|
Operator getOperator(uint32 parameterCount, const String &name);
|
||||||
|
|
||||||
|
|||||||
@ -82,7 +82,7 @@ nsCounterUseNode::GetText(nsString& aResult)
|
|||||||
nsBulletFrame::AppendCounterText(style, n->mValueAfter, aResult);
|
nsBulletFrame::AppendCounterText(style, n->mValueAfter, aResult);
|
||||||
if (i == 0)
|
if (i == 0)
|
||||||
break;
|
break;
|
||||||
NS_ASSERTION(mAllCounters, "yikes, separator is uninitalized");
|
NS_ASSERTION(mAllCounters, "yikes, separator is uninitialized");
|
||||||
aResult.Append(separator);
|
aResult.Append(separator);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1361,7 +1361,7 @@ nsCSSStyleSheet::~nsCSSStyleSheet()
|
|||||||
// not be released. The document will let us know when it is going
|
// not be released. The document will let us know when it is going
|
||||||
// away.
|
// away.
|
||||||
if (mRuleProcessors) {
|
if (mRuleProcessors) {
|
||||||
NS_ASSERTION(mRuleProcessors->Count() == 0, "destucting sheet with rule processor reference");
|
NS_ASSERTION(mRuleProcessors->Count() == 0, "destructing sheet with rule processor reference");
|
||||||
delete mRuleProcessors; // weak refs, should be empty here anyway
|
delete mRuleProcessors; // weak refs, should be empty here anyway
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -71,7 +71,7 @@
|
|||||||
To reduce the volume of code and APIs, clients can ask for the underlying list of selectors displayed by the pane,
|
To reduce the volume of code and APIs, clients can ask for the underlying list of selectors displayed by the pane,
|
||||||
and make changes directly to that list. Right now they get an actual reference to the list. I want to change that
|
and make changes directly to that list. Right now they get an actual reference to the list. I want to change that
|
||||||
to some kind of `ticket' that acts like a reference to the list, but automatically notifies the pane that the
|
to some kind of `ticket' that acts like a reference to the list, but automatically notifies the pane that the
|
||||||
list has changed when the ticket is destucted. In the mean time, after a client has modified the list, but before
|
list has changed when the ticket is destroyed. In the mean time, after a client has modified the list, but before
|
||||||
they have called |notice_selectors_changed()|, the pane will not acurately reflect the contents of the list, and
|
they have called |notice_selectors_changed()|, the pane will not acurately reflect the contents of the list, and
|
||||||
the results of |active_selector(void)| are not necessarily valid. See below.
|
the results of |active_selector(void)| are not necessarily valid. See below.
|
||||||
|
|
||||||
|
|||||||
@ -39,7 +39,7 @@
|
|||||||
LOCALIZATION NOTE : 'Communicator 4.x' is the used for previous versions of
|
LOCALIZATION NOTE : 'Communicator 4.x' is the used for previous versions of
|
||||||
Netscape Communicator, Please translate using the brandname in respective
|
Netscape Communicator, Please translate using the brandname in respective
|
||||||
languages for Netscape Communicator 4 releases.
|
languages for Netscape Communicator 4 releases.
|
||||||
LOCALIZATION NOTE : Do not translate any of the occurances of the word
|
LOCALIZATION NOTE : Do not translate any of the occurrences of the word
|
||||||
"&brandShortName;" below.
|
"&brandShortName;" below.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
|||||||
@ -476,7 +476,7 @@ nsresult nsImapProtocol::Initialize(nsIImapHostSessionList * aHostSessionList, n
|
|||||||
nsIEventQueue * aSinkEventQueue)
|
nsIEventQueue * aSinkEventQueue)
|
||||||
{
|
{
|
||||||
NS_PRECONDITION(aSinkEventQueue && aHostSessionList,
|
NS_PRECONDITION(aSinkEventQueue && aHostSessionList,
|
||||||
"oops...trying to initalize with a null sink event queue!");
|
"oops...trying to initialize with a null sink event queue!");
|
||||||
if (!aSinkEventQueue || !aHostSessionList || !aServer)
|
if (!aSinkEventQueue || !aHostSessionList || !aServer)
|
||||||
return NS_ERROR_NULL_POINTER;
|
return NS_ERROR_NULL_POINTER;
|
||||||
|
|
||||||
|
|||||||
@ -558,7 +558,7 @@ static void Update_in_tag_info(PRBool *a_in_tag, /* IN/OUT */
|
|||||||
|
|
||||||
// Not in a tag.
|
// Not in a tag.
|
||||||
// Check if we are entering a tag by looking for '<'.
|
// Check if we are entering a tag by looking for '<'.
|
||||||
// All normal occurances of '<' should have been replaced
|
// All normal occurrences of '<' should have been replaced
|
||||||
// by <
|
// by <
|
||||||
if ('<' == a_current_char) {
|
if ('<' == a_current_char) {
|
||||||
*a_in_tag = PR_TRUE;
|
*a_in_tag = PR_TRUE;
|
||||||
|
|||||||
@ -429,7 +429,7 @@ int nsGIFDecoder2::HaveDecodedRow(
|
|||||||
format += 1; // RGB to BGR
|
format += 1; // RGB to BGR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// initalize the frame and append it to the container
|
// initialize the frame and append it to the container
|
||||||
decoder->mImageFrame = do_CreateInstance("@mozilla.org/gfx/image/frame;2");
|
decoder->mImageFrame = do_CreateInstance("@mozilla.org/gfx/image/frame;2");
|
||||||
if (!decoder->mImageFrame || NS_FAILED(decoder->mImageFrame->Init(
|
if (!decoder->mImageFrame || NS_FAILED(decoder->mImageFrame->Init(
|
||||||
decoder->mGIFStruct->x_offset, decoder->mGIFStruct->y_offset,
|
decoder->mGIFStruct->x_offset, decoder->mGIFStruct->y_offset,
|
||||||
|
|||||||
@ -311,7 +311,7 @@ info_callback(png_structp png_ptr, png_infop info_ptr)
|
|||||||
|
|
||||||
decoder->mImageLoad->SetImage(decoder->mImage);
|
decoder->mImageLoad->SetImage(decoder->mImage);
|
||||||
|
|
||||||
// since the png is only 1 frame, initalize the container to the width and height of the frame
|
// since the png is only 1 frame, initialize the container to the width and height of the frame
|
||||||
decoder->mImage->Init(width, height, decoder->mObserver);
|
decoder->mImage->Init(width, height, decoder->mObserver);
|
||||||
|
|
||||||
if (decoder->mObserver)
|
if (decoder->mObserver)
|
||||||
@ -338,7 +338,7 @@ info_callback(png_structp png_ptr, png_infop info_ptr)
|
|||||||
format += 1; // RGB to BGR
|
format += 1; // RGB to BGR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// then initalize the frame and append it to the container
|
// then initialize the frame and append it to the container
|
||||||
nsresult rv = decoder->mFrame->Init(0, 0, width, height, format, 24);
|
nsresult rv = decoder->mFrame->Init(0, 0, width, height, format, 24);
|
||||||
if (NS_FAILED(rv))
|
if (NS_FAILED(rv))
|
||||||
longjmp(decoder->mPNG->jmpbuf, 5); // NS_ERROR_OUT_OF_MEMORY
|
longjmp(decoder->mPNG->jmpbuf, 5); // NS_ERROR_OUT_OF_MEMORY
|
||||||
|
|||||||
@ -53,7 +53,7 @@ interface imgILoad;
|
|||||||
interface imgIDecoder : nsISupports
|
interface imgIDecoder : nsISupports
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Initalize an image decoder.
|
* Initialize an image decoder.
|
||||||
* @param aRequest the request that owns the decoder.
|
* @param aRequest the request that owns the decoder.
|
||||||
*
|
*
|
||||||
* @note The decode should QI \a aLoad to an imgIDecoderObserver
|
* @note The decode should QI \a aLoad to an imgIDecoderObserver
|
||||||
|
|||||||
@ -176,7 +176,7 @@ NOTE: These API tests are build using Gnu Compiler gcc.
|
|||||||
|
|
||||||
* Check <home dir>/.mozilla/default/prefs.js (on Solaris/Linux) or
|
* Check <home dir>/.mozilla/default/prefs.js (on Solaris/Linux) or
|
||||||
c:/Program Files/Mozilla/Users50/Default/prefs.js (on Win32)
|
c:/Program Files/Mozilla/Users50/Default/prefs.js (on Win32)
|
||||||
file. If it has the follwing entries
|
file. If it has the following entries
|
||||||
user_pref("capability.principal.codebase.p0.granted", "UniversalXPConnect");
|
user_pref("capability.principal.codebase.p0.granted", "UniversalXPConnect");
|
||||||
user_pref("capability.principal.codebase.p0.id", "file://");
|
user_pref("capability.principal.codebase.p0.id", "file://");
|
||||||
|
|
||||||
@ -272,7 +272,7 @@ NOTE: These API tests are build using Gnu Compiler gcc.
|
|||||||
Go to <JDKHOME>/jre/bin directory. Invoke the 'ControlPanel' executable.
|
Go to <JDKHOME>/jre/bin directory. Invoke the 'ControlPanel' executable.
|
||||||
(On Win32 platforms click on Start->Settings->Control Panel->Duke icon)
|
(On Win32 platforms click on Start->Settings->Control Panel->Duke icon)
|
||||||
|
|
||||||
In the Java RunTime Parameters Text Field, add the follwing entry
|
In the Java RunTime Parameters Text Field, add the following entry
|
||||||
-Xbootclasspath/a:<mozilla dir>/modules/oji/tests/build/classes
|
-Xbootclasspath/a:<mozilla dir>/modules/oji/tests/build/classes
|
||||||
|
|
||||||
where <mozilla dir> is absolute path to mozilla dir.
|
where <mozilla dir> is absolute path to mozilla dir.
|
||||||
|
|||||||
@ -194,7 +194,7 @@ OnWrapperDestroyed()
|
|||||||
if (sJSObjWrappers.ops) {
|
if (sJSObjWrappers.ops) {
|
||||||
NS_ASSERTION(sJSObjWrappers.entryCount == 0, "Uh, hash not empty?");
|
NS_ASSERTION(sJSObjWrappers.entryCount == 0, "Uh, hash not empty?");
|
||||||
|
|
||||||
// No more wrappers, and our hash was initalized. Finish the
|
// No more wrappers, and our hash was initialized. Finish the
|
||||||
// hash to prevent leaking it.
|
// hash to prevent leaking it.
|
||||||
PL_DHashTableFinish(&sJSObjWrappers);
|
PL_DHashTableFinish(&sJSObjWrappers);
|
||||||
|
|
||||||
@ -204,7 +204,7 @@ OnWrapperDestroyed()
|
|||||||
if (sNPObjWrappers.ops) {
|
if (sNPObjWrappers.ops) {
|
||||||
NS_ASSERTION(sNPObjWrappers.entryCount == 0, "Uh, hash not empty?");
|
NS_ASSERTION(sNPObjWrappers.entryCount == 0, "Uh, hash not empty?");
|
||||||
|
|
||||||
// No more wrappers, and our hash was initalized. Finish the
|
// No more wrappers, and our hash was initialized. Finish the
|
||||||
// hash to prevent leaking it.
|
// hash to prevent leaking it.
|
||||||
PL_DHashTableFinish(&sNPObjWrappers);
|
PL_DHashTableFinish(&sNPObjWrappers);
|
||||||
|
|
||||||
@ -781,7 +781,7 @@ nsJSObjWrapper::GetNewOrUsed(NPP npp, JSContext *cx, JSObject *obj)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!sJSObjWrappers.ops) {
|
if (!sJSObjWrappers.ops) {
|
||||||
// No hash yet (or any more), initalize it.
|
// No hash yet (or any more), initialize it.
|
||||||
|
|
||||||
static PLDHashTableOps ops =
|
static PLDHashTableOps ops =
|
||||||
{
|
{
|
||||||
@ -1247,7 +1247,7 @@ nsNPObjWrapper::GetNewOrUsed(NPP npp, JSContext *cx, NPObject *npobj)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!sNPObjWrappers.ops) {
|
if (!sNPObjWrappers.ops) {
|
||||||
// No hash yet (or any more), initalize it.
|
// No hash yet (or any more), initialize it.
|
||||||
|
|
||||||
if (!PL_DHashTableInit(&sNPObjWrappers, PL_DHashGetStubOps(), nsnull,
|
if (!PL_DHashTableInit(&sNPObjWrappers, PL_DHashGetStubOps(), nsnull,
|
||||||
sizeof(NPObjWrapperHashEntry), 16)) {
|
sizeof(NPObjWrapperHashEntry), 16)) {
|
||||||
|
|||||||
@ -72,7 +72,7 @@ NPError WINAPI NP_GetEntryPoints(NPPluginFuncs* aPluginFuncs)
|
|||||||
|
|
||||||
NPError WINAPI NP_Initialize(NPNetscapeFuncs* aNetscapeFuncs)
|
NPError WINAPI NP_Initialize(NPNetscapeFuncs* aNetscapeFuncs)
|
||||||
{
|
{
|
||||||
dbgOut1("wrapper: NP_Initalize");
|
dbgOut1("wrapper: NP_Initialize");
|
||||||
|
|
||||||
if(aNetscapeFuncs == NULL)
|
if(aNetscapeFuncs == NULL)
|
||||||
return NPERR_INVALID_FUNCTABLE_ERROR;
|
return NPERR_INVALID_FUNCTABLE_ERROR;
|
||||||
|
|||||||
@ -223,7 +223,7 @@ typedef struct _HT_ResourceStruct {
|
|||||||
uint16 flags;
|
uint16 flags;
|
||||||
uint16 depth;
|
uint16 depth;
|
||||||
HT_Resource next;
|
HT_Resource next;
|
||||||
/* a pane or view might have multiple occurances of a RDF_Resource.
|
/* a pane or view might have multiple occurrences of a RDF_Resource.
|
||||||
The hash table just points to the first of them. This allows us to
|
The hash table just points to the first of them. This allows us to
|
||||||
make a linked list of it */
|
make a linked list of it */
|
||||||
} HT_ResourceStruct;
|
} HT_ResourceStruct;
|
||||||
|
|||||||
@ -557,7 +557,7 @@ final public class SoftwareUpdate {
|
|||||||
versionInfo = inVInfo;
|
versionInfo = inVInfo;
|
||||||
installedFiles = new java.util.Vector();
|
installedFiles = new java.util.Vector();
|
||||||
|
|
||||||
/* JAR initalization */
|
/* JAR initialization */
|
||||||
/* open the file, create a principal out of installer file certificate */
|
/* open the file, create a principal out of installer file certificate */
|
||||||
OpenJARFile();
|
OpenJARFile();
|
||||||
InitializeInstallerCertificate();
|
InitializeInstallerCertificate();
|
||||||
|
|||||||
@ -568,7 +568,7 @@ PRInt32 nsSoftwareUpdate::StartInstall(char* vrPackageName,
|
|||||||
versionInfo = inVInfo;
|
versionInfo = inVInfo;
|
||||||
installedFiles = new nsVector();
|
installedFiles = new nsVector();
|
||||||
|
|
||||||
/* JAR initalization */
|
/* JAR initialization */
|
||||||
/* open the file, create a principal out of installer file certificate */
|
/* open the file, create a principal out of installer file certificate */
|
||||||
errcode = OpenJARFile(errorMsg);
|
errcode = OpenJARFile(errorMsg);
|
||||||
if (*errorMsg != NULL)
|
if (*errorMsg != NULL)
|
||||||
|
|||||||
@ -44,7 +44,7 @@ int IO_checkTimeout( IO_t * in_pIO );
|
|||||||
void IO_resetFunctions( IO_t * in_pIO );
|
void IO_resetFunctions( IO_t * in_pIO );
|
||||||
int UpdateBuffer( IO_t * in_pIO );
|
int UpdateBuffer( IO_t * in_pIO );
|
||||||
|
|
||||||
/* Initalize the IO structure. */
|
/* Initialize the IO structure. */
|
||||||
int IO_initialize( IO_t * in_pIO,
|
int IO_initialize( IO_t * in_pIO,
|
||||||
unsigned int in_readBufferLimit,
|
unsigned int in_readBufferLimit,
|
||||||
unsigned int in_writeBufferLimit )
|
unsigned int in_writeBufferLimit )
|
||||||
|
|||||||
@ -152,7 +152,7 @@ sub fileInsertAfter {
|
|||||||
|
|
||||||
print NEW $newtext; # insert new text
|
print NEW $newtext; # insert new text
|
||||||
$foundit++;
|
$foundit++;
|
||||||
last; # only change first occurance
|
last; # only change first occurrence
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($foundit) { # copy rest of file
|
if ($foundit) { # copy rest of file
|
||||||
|
|||||||
@ -378,7 +378,7 @@ HttpCommandResponse (
|
|||||||
ret = HttpReadResponse(ptcx, cmd, me, response, resplen, msgParse);
|
ret = HttpReadResponse(ptcx, cmd, me, response, resplen, msgParse);
|
||||||
event_stop(ptcx, timer);
|
event_stop(ptcx, timer);
|
||||||
if (ret == 0) { /* got nothing */
|
if (ret == 0) { /* got nothing */
|
||||||
/* Probably an IO error. It will be definate if re-tried. */
|
/* Probably an IO error. It will be definite if re-tried. */
|
||||||
MS_usleep (5000); /* time for bytes to show up */
|
MS_usleep (5000); /* time for bytes to show up */
|
||||||
continue; /* just re-try it */
|
continue; /* just re-try it */
|
||||||
} else if (ret == -1) { /* IO error */
|
} else if (ret == -1) { /* IO error */
|
||||||
|
|||||||
@ -123,7 +123,7 @@ static PRErrorCode RandomizeConnectError(PRErrorCode code)
|
|||||||
{
|
{
|
||||||
//
|
//
|
||||||
// To test out these errors, load http://www.yahoo.com/. It should load
|
// To test out these errors, load http://www.yahoo.com/. It should load
|
||||||
// correctly despite the random occurance of these errors.
|
// correctly despite the random occurrence of these errors.
|
||||||
//
|
//
|
||||||
int n = rand();
|
int n = rand();
|
||||||
if (n > RAND_MAX/2) {
|
if (n > RAND_MAX/2) {
|
||||||
|
|||||||
@ -242,7 +242,7 @@ nsBaseURLParser::ParsePath(const char *path, PRInt32 pathLen,
|
|||||||
|
|
||||||
// XXX PL_strnpbrk would be nice, but it's buggy
|
// XXX PL_strnpbrk would be nice, but it's buggy
|
||||||
|
|
||||||
// search for first occurance of either ? or #
|
// search for first occurrence of either ? or #
|
||||||
const char *query_beg = 0, *query_end = 0;
|
const char *query_beg = 0, *query_end = 0;
|
||||||
const char *ref_beg = 0;
|
const char *ref_beg = 0;
|
||||||
const char *p = 0;
|
const char *p = 0;
|
||||||
|
|||||||
@ -630,12 +630,12 @@ nsHttpResponseHead::ParseCacheControl(const char *val)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// search header value for occurance(s) of "no-cache" but ignore
|
// search header value for occurrence(s) of "no-cache" but ignore
|
||||||
// occurance(s) of "no-cache=blah"
|
// occurrence(s) of "no-cache=blah"
|
||||||
if (nsHttp::FindToken(val, "no-cache", HTTP_HEADER_VALUE_SEPS))
|
if (nsHttp::FindToken(val, "no-cache", HTTP_HEADER_VALUE_SEPS))
|
||||||
mCacheControlNoCache = PR_TRUE;
|
mCacheControlNoCache = PR_TRUE;
|
||||||
|
|
||||||
// search header value for occurance of "no-store"
|
// search header value for occurrence of "no-store"
|
||||||
if (nsHttp::FindToken(val, "no-store", HTTP_HEADER_VALUE_SEPS))
|
if (nsHttp::FindToken(val, "no-store", HTTP_HEADER_VALUE_SEPS))
|
||||||
mCacheControlNoStore = PR_TRUE;
|
mCacheControlNoStore = PR_TRUE;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -249,10 +249,10 @@ private:
|
|||||||
eHTMLTags GetTopNode() const;
|
eHTMLTags GetTopNode() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Finds the topmost occurance of given tag within context vector stack.
|
* Finds the topmost occurrence of given tag within context vector stack.
|
||||||
*
|
*
|
||||||
* @param tag to be found
|
* @param tag to be found
|
||||||
* @return index of topmost tag occurance -- may be -1 (kNotFound).
|
* @return index of topmost tag occurrence -- may be -1 (kNotFound).
|
||||||
*/
|
*/
|
||||||
PRInt32 LastOf(eHTMLTags aTagSet[], PRInt32 aCount) const;
|
PRInt32 LastOf(eHTMLTags aTagSet[], PRInt32 aCount) const;
|
||||||
|
|
||||||
|
|||||||
@ -1398,7 +1398,7 @@ ProcessOneMessage(AsyncMessage* aMessage)
|
|||||||
// write queue is empty.
|
// write queue is empty.
|
||||||
//
|
//
|
||||||
// If both of the above variables are false, this procedure runs
|
// If both of the above variables are false, this procedure runs
|
||||||
// indefinately, waiting for operations to be added to the write queue and
|
// indefinitely, waiting for operations to be added to the write queue and
|
||||||
// processing them in the order in which they arrive.
|
// processing them in the order in which they arrive.
|
||||||
//
|
//
|
||||||
// An artifical delay of async.ioDelay milliseconds is inserted before each
|
// An artifical delay of async.ioDelay milliseconds is inserted before each
|
||||||
|
|||||||
@ -838,7 +838,7 @@ function loadDialog()
|
|||||||
dialog.cmdInput.value = print_command;
|
dialog.cmdInput.value = print_command;
|
||||||
dialog.jobTitleInput.value = print_jobtitle;
|
dialog.jobTitleInput.value = print_jobtitle;
|
||||||
|
|
||||||
/* First initalize with the hardcoded defaults... */
|
/* First initialize with the hardcoded defaults... */
|
||||||
dialog.topInput.value = "0.04";
|
dialog.topInput.value = "0.04";
|
||||||
dialog.bottomInput.value = "0.04";
|
dialog.bottomInput.value = "0.04";
|
||||||
dialog.leftInput.value = "0.04";
|
dialog.leftInput.value = "0.04";
|
||||||
|
|||||||
@ -314,7 +314,7 @@ initOptions(int aArgCount, char **aArgArray)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** initalize the categories
|
** initialize the categories
|
||||||
*/
|
*/
|
||||||
initCategories(&globals);
|
initCategories(&globals);
|
||||||
|
|
||||||
@ -5790,7 +5790,7 @@ handleClient(void *inArg)
|
|||||||
*/
|
*/
|
||||||
PR_fprintf(aFD, "HTTP/1.1 200 OK%s", crlf);
|
PR_fprintf(aFD, "HTTP/1.1 200 OK%s", crlf);
|
||||||
PR_fprintf(aFD, "Server: %s%s",
|
PR_fprintf(aFD, "Server: %s%s",
|
||||||
"$Id: spacetrace.c,v 1.52 2005-11-25 21:57:05 timeless%mozdev.org Exp $",
|
"$Id: spacetrace.c,v 1.53 2006-02-23 09:36:40 timeless%mozdev.org Exp $",
|
||||||
crlf);
|
crlf);
|
||||||
PR_fprintf(aFD, "Content-type: ");
|
PR_fprintf(aFD, "Content-type: ");
|
||||||
if (NULL != strstr(start, ".png")) {
|
if (NULL != strstr(start, ".png")) {
|
||||||
|
|||||||
@ -58,7 +58,7 @@ class nsDeviceContextSpecBeOS : public nsIDeviceContextSpec
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Construct a nsDeviceContextSpecMac, which is an object which contains and manages a mac printrecord
|
* Construct a nsDeviceContextSpecBeOS, which is an object which contains and manages a mac printrecord
|
||||||
* @update dc 12/02/98
|
* @update dc 12/02/98
|
||||||
*/
|
*/
|
||||||
nsDeviceContextSpecBeOS();
|
nsDeviceContextSpecBeOS();
|
||||||
@ -114,7 +114,7 @@ public:
|
|||||||
NS_IMETHOD GetUserCancelled( PRBool &aCancel );
|
NS_IMETHOD GetUserCancelled( PRBool &aCancel );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Destuct a nsDeviceContextSpecMac, this will release the printrecord
|
* Destructor for nsDeviceContextSpecBeOS, this will release the printrecord
|
||||||
* @update dc 2/16/98
|
* @update dc 2/16/98
|
||||||
*/
|
*/
|
||||||
protected:
|
protected:
|
||||||
|
|||||||
@ -388,7 +388,7 @@ nsresult nsChildView::StandardCreate(nsIWidget *aParent,
|
|||||||
// if our parent is a popup window, we're most certainly coming from a <select> list dropdown which
|
// if our parent is a popup window, we're most certainly coming from a <select> list dropdown which
|
||||||
// we handle in a different way than other platforms. It's ok that we don't have a parent
|
// we handle in a different way than other platforms. It's ok that we don't have a parent
|
||||||
// view because we bailed before even creating the cocoa widgetry and as a result, we
|
// view because we bailed before even creating the cocoa widgetry and as a result, we
|
||||||
// don't need to assert. However, if that's not the case, we definately want to assert
|
// don't need to assert. However, if that's not the case, we definitely want to assert
|
||||||
// to show views aren't getting correctly parented.
|
// to show views aren't getting correctly parented.
|
||||||
if ( aParent ) {
|
if ( aParent ) {
|
||||||
nsWindowType windowType;
|
nsWindowType windowType;
|
||||||
|
|||||||
@ -49,7 +49,7 @@ class nsDeviceContextSpecX : public nsIDeviceContextSpec, public nsIPrintingCont
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Construct a nsDeviceContextSpecMac, which is an object which contains and manages a mac printrecord
|
* Construct a nsDeviceContextSpecX, which is an object which contains and manages a mac printrecord
|
||||||
* @update dc 12/02/98
|
* @update dc 12/02/98
|
||||||
*/
|
*/
|
||||||
nsDeviceContextSpecX();
|
nsDeviceContextSpecX();
|
||||||
@ -57,7 +57,7 @@ public:
|
|||||||
NS_DECL_ISUPPORTS
|
NS_DECL_ISUPPORTS
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initialize the nsDeviceContextSpecMac for use. This will allocate a printrecord for use
|
* Initialize the nsDeviceContextSpecX for use. This will allocate a printrecord for use
|
||||||
* @update dc 12/02/98
|
* @update dc 12/02/98
|
||||||
* @param aIsPrintPreview TRUE if doing print preview, FALSE if normal printing.
|
* @param aIsPrintPreview TRUE if doing print preview, FALSE if normal printing.
|
||||||
* @return error status
|
* @return error status
|
||||||
@ -97,7 +97,7 @@ public:
|
|||||||
NS_IMETHOD GetPageRect(double* aTop, double* aLeft, double* aBottom, double* aRight);
|
NS_IMETHOD GetPageRect(double* aTop, double* aLeft, double* aBottom, double* aRight);
|
||||||
protected:
|
protected:
|
||||||
/**
|
/**
|
||||||
* Destuct a nsDeviceContextSpecMac, this will release the printrecord
|
* Destructor for nsDeviceContextSpecX, this will release the printrecord
|
||||||
* @update dc 12/02/98
|
* @update dc 12/02/98
|
||||||
*/
|
*/
|
||||||
virtual ~nsDeviceContextSpecX();
|
virtual ~nsDeviceContextSpecX();
|
||||||
|
|||||||
@ -807,12 +807,12 @@ void nsMacEventHandler::InitializeKeyEvent(nsKeyEvent& aKeyEvent,
|
|||||||
PRBool aConvertChar)
|
PRBool aConvertChar)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
// initalize the basic message parts
|
// initialize the basic message parts
|
||||||
//
|
//
|
||||||
aKeyEvent.time = PR_IntervalNow();
|
aKeyEvent.time = PR_IntervalNow();
|
||||||
|
|
||||||
//
|
//
|
||||||
// initalize the GUI event parts
|
// initialize the GUI event parts
|
||||||
//
|
//
|
||||||
aKeyEvent.widget = aFocusedWidget;
|
aKeyEvent.widget = aFocusedWidget;
|
||||||
aKeyEvent.nativeMsg = (void*)&aOSEvent;
|
aKeyEvent.nativeMsg = (void*)&aOSEvent;
|
||||||
|
|||||||
@ -71,7 +71,7 @@ class nsDeviceContextSpecOS2 : public nsIDeviceContextSpec
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Construct a nsDeviceContextSpecMac, which is an object which contains and manages a mac printrecord
|
* Construct a nsDeviceContextSpecOS2, which is an object which contains and manages a mac printrecord
|
||||||
* @update dc 12/02/98
|
* @update dc 12/02/98
|
||||||
*/
|
*/
|
||||||
nsDeviceContextSpecOS2();
|
nsDeviceContextSpecOS2();
|
||||||
@ -79,7 +79,7 @@ public:
|
|||||||
NS_DECL_ISUPPORTS
|
NS_DECL_ISUPPORTS
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initialize the nsDeviceContextSpecMac for use. This will allocate a printrecord for use
|
* Initialize the nsDeviceContextSpecOS2 for use. This will allocate a printrecord for use
|
||||||
* @update dc 2/16/98
|
* @update dc 2/16/98
|
||||||
* @param aIsPrintPreview if PR_TRUE, creating Spec for PrintPreview
|
* @param aIsPrintPreview if PR_TRUE, creating Spec for PrintPreview
|
||||||
* @return error status
|
* @return error status
|
||||||
@ -101,7 +101,7 @@ public:
|
|||||||
NS_IMETHOD GetPRTQUEUE(PRTQUEUE *&p);
|
NS_IMETHOD GetPRTQUEUE(PRTQUEUE *&p);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Destuct a nsDeviceContextSpecMac, this will release the printrecord
|
* Destructor for nsDeviceContextSpecOS2, this will release the printrecord
|
||||||
* @update dc 2/16/98
|
* @update dc 2/16/98
|
||||||
*/
|
*/
|
||||||
virtual ~nsDeviceContextSpecOS2();
|
virtual ~nsDeviceContextSpecOS2();
|
||||||
|
|||||||
@ -461,7 +461,7 @@ nsDataObj :: GetDib ( const nsACString& inFlavor, FORMATETC &, STGMEDIUM & aSTG
|
|||||||
}
|
}
|
||||||
} // if we have an image
|
} // if we have an image
|
||||||
else
|
else
|
||||||
NS_WARNING ( "Definately not an image on clipboard" );
|
NS_WARNING ( "Definitely not an image on clipboard" );
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
return ResultFromScode(result);
|
return ResultFromScode(result);
|
||||||
|
|||||||
@ -147,8 +147,8 @@ class nsDataObj : public IDataObject
|
|||||||
// S_FALSE otherwise.
|
// S_FALSE otherwise.
|
||||||
STDMETHODIMP QueryGetData (LPFORMATETC pFE);
|
STDMETHODIMP QueryGetData (LPFORMATETC pFE);
|
||||||
|
|
||||||
// Set pCanonFE to the cannonical format of pFE if one exists and return
|
// Set pCanonFE to the canonical format of pFE if one exists and return
|
||||||
// NOERROR, otherwise return DATA_S_SAMEFORMATETC. A cannonical format
|
// NOERROR, otherwise return DATA_S_SAMEFORMATETC. A canonical format
|
||||||
// implies an identical rendering.
|
// implies an identical rendering.
|
||||||
STDMETHODIMP GetCanonicalFormatEtc (LPFORMATETC pFE, LPFORMATETC pCanonFE);
|
STDMETHODIMP GetCanonicalFormatEtc (LPFORMATETC pFE, LPFORMATETC pCanonFE);
|
||||||
|
|
||||||
|
|||||||
@ -147,8 +147,8 @@ class nsDataObjCollection : public IDataObject, public nsIDataObjCollection //,
|
|||||||
// S_FALSE otherwise.
|
// S_FALSE otherwise.
|
||||||
STDMETHODIMP QueryGetData (LPFORMATETC pFE);
|
STDMETHODIMP QueryGetData (LPFORMATETC pFE);
|
||||||
|
|
||||||
// Set pCanonFE to the cannonical format of pFE if one exists and return
|
// Set pCanonFE to the canonical format of pFE if one exists and return
|
||||||
// NOERROR, otherwise return DATA_S_SAMEFORMATETC. A cannonical format
|
// NOERROR, otherwise return DATA_S_SAMEFORMATETC. A canonical format
|
||||||
// implies an identical rendering.
|
// implies an identical rendering.
|
||||||
STDMETHODIMP GetCanonicalFormatEtc (LPFORMATETC pFE, LPFORMATETC pCanonFE);
|
STDMETHODIMP GetCanonicalFormatEtc (LPFORMATETC pFE, LPFORMATETC pCanonFE);
|
||||||
|
|
||||||
|
|||||||
@ -808,7 +808,7 @@ nsWindow::~nsWindow()
|
|||||||
delete mFont;
|
delete mFont;
|
||||||
|
|
||||||
if (mCursor == -1) {
|
if (mCursor == -1) {
|
||||||
// A sucessfull SetCursor call will destroy the custom cursor, if it's ours
|
// A successfull SetCursor call will destroy the custom cursor, if it's ours
|
||||||
SetCursor(eCursor_standard);
|
SetCursor(eCursor_standard);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -42,7 +42,7 @@
|
|||||||
%}
|
%}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* nsITimelineService is used to constuct a timeline of program
|
* nsITimelineService is used to construct a timeline of program
|
||||||
* execution. The timeline is output to a file, either stderr or the
|
* execution. The timeline is output to a file, either stderr or the
|
||||||
* value of the environment variable NS_TIMELINE_LOG_FILE. On the
|
* value of the environment variable NS_TIMELINE_LOG_FILE. On the
|
||||||
* Mac, the timeline is output to the file named "timeline.txt". The
|
* Mac, the timeline is output to the file named "timeline.txt". The
|
||||||
|
|||||||
@ -1413,7 +1413,7 @@ nsLocalFile::CopyMove(nsIFile *aParentDir, const nsACString &newName, PRBool mov
|
|||||||
|
|
||||||
rv = dirEnum.Init(this);
|
rv = dirEnum.Init(this);
|
||||||
if (NS_FAILED(rv)) {
|
if (NS_FAILED(rv)) {
|
||||||
NS_WARNING("dirEnum initalization failed");
|
NS_WARNING("dirEnum initialization failed");
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1367,7 +1367,7 @@ nsLocalFile::CopyMove(nsIFile *aParentDir, const nsACString &newName, PRBool fol
|
|||||||
|
|
||||||
rv = dirEnum.Init(this);
|
rv = dirEnum.Init(this);
|
||||||
if (NS_FAILED(rv)) {
|
if (NS_FAILED(rv)) {
|
||||||
NS_WARNING("dirEnum initalization failed");
|
NS_WARNING("dirEnum initialization failed");
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -88,7 +88,7 @@ SharedStub PROC
|
|||||||
|
|
||||||
mov rdx, rbx
|
mov rdx, rbx
|
||||||
|
|
||||||
; 1st paramter (this) (not need re-assign)
|
; 1st parameter (this) (not need re-assign)
|
||||||
|
|
||||||
;mov rcx, [rsp+16+112]
|
;mov rcx, [rsp+16+112]
|
||||||
|
|
||||||
|
|||||||
@ -272,7 +272,7 @@ NS_COM void ToUpperCase( const nsACString& aSource, nsACString& aDest );
|
|||||||
NS_COM void ToLowerCase( const nsACString& aSource, nsACString& aDest );
|
NS_COM void ToLowerCase( const nsACString& aSource, nsACString& aDest );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Finds the leftmost occurance of |aPattern|, if any in the range |aSearchStart|..|aSearchEnd|.
|
* Finds the leftmost occurrence of |aPattern|, if any in the range |aSearchStart|..|aSearchEnd|.
|
||||||
*
|
*
|
||||||
* Returns |PR_TRUE| if a match was found, and adjusts |aSearchStart| and |aSearchEnd| to
|
* Returns |PR_TRUE| if a match was found, and adjusts |aSearchStart| and |aSearchEnd| to
|
||||||
* point to the match. If no match was found, returns |PR_FALSE| and makes |aSearchStart == aSearchEnd|.
|
* point to the match. If no match was found, returns |PR_FALSE| and makes |aSearchStart == aSearchEnd|.
|
||||||
@ -306,7 +306,7 @@ inline PRBool FindInReadable( const nsACString& aPattern, const nsACString& aSou
|
|||||||
NS_COM PRBool CaseInsensitiveFindInReadable( const nsACString& aPattern, nsACString::const_iterator&, nsACString::const_iterator& );
|
NS_COM PRBool CaseInsensitiveFindInReadable( const nsACString& aPattern, nsACString::const_iterator&, nsACString::const_iterator& );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Finds the rightmost occurance of |aPattern|
|
* Finds the rightmost occurrence of |aPattern|
|
||||||
* Returns |PR_TRUE| if a match was found, and adjusts |aSearchStart| and |aSearchEnd| to
|
* Returns |PR_TRUE| if a match was found, and adjusts |aSearchStart| and |aSearchEnd| to
|
||||||
* point to the match. If no match was found, returns |PR_FALSE| and makes |aSearchStart == aSearchEnd|.
|
* point to the match. If no match was found, returns |PR_FALSE| and makes |aSearchStart == aSearchEnd|.
|
||||||
*
|
*
|
||||||
@ -317,7 +317,7 @@ NS_COM PRBool RFindInReadable( const nsAString& aPattern, nsAString::const_itera
|
|||||||
NS_COM PRBool RFindInReadable( const nsACString& aPattern, nsACString::const_iterator&, nsACString::const_iterator&, const nsCStringComparator& = nsDefaultCStringComparator() );
|
NS_COM PRBool RFindInReadable( const nsACString& aPattern, nsACString::const_iterator&, nsACString::const_iterator&, const nsCStringComparator& = nsDefaultCStringComparator() );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Finds the leftmost occurance of |aChar|, if any in the range
|
* Finds the leftmost occurrence of |aChar|, if any in the range
|
||||||
* |aSearchStart|..|aSearchEnd|.
|
* |aSearchStart|..|aSearchEnd|.
|
||||||
*
|
*
|
||||||
* Returns |PR_TRUE| if a match was found, and adjusts |aSearchStart| to
|
* Returns |PR_TRUE| if a match was found, and adjusts |aSearchStart| to
|
||||||
|
|||||||
@ -326,13 +326,13 @@ class nsTAString_CharT
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the number of occurances of the given character.
|
* Returns the number of occurrences of the given character.
|
||||||
*/
|
*/
|
||||||
NS_COM size_type NS_FASTCALL CountChar( char_type ) const;
|
NS_COM size_type NS_FASTCALL CountChar( char_type ) const;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Locates the offset of the first occurance of the character. Pass a
|
* Locates the offset of the first occurrence of the character. Pass a
|
||||||
* non-zero offset to control where the search begins.
|
* non-zero offset to control where the search begins.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@ -329,7 +329,7 @@ class nsTString_CharT : public nsTSubstring_CharT
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* These methods are used to remove all occurances of the
|
* These methods are used to remove all occurrences of the
|
||||||
* characters found in aSet from this string.
|
* characters found in aSet from this string.
|
||||||
*
|
*
|
||||||
* @param aSet -- characters to be cut from this
|
* @param aSet -- characters to be cut from this
|
||||||
|
|||||||
@ -418,7 +418,7 @@ class nsTSubstring_CharT : public nsTAString_CharT
|
|||||||
NS_COM void NS_FASTCALL SetIsVoid( PRBool );
|
NS_COM void NS_FASTCALL SetIsVoid( PRBool );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This method is used to remove all occurances of aChar from this
|
* This method is used to remove all occurrences of aChar from this
|
||||||
* string.
|
* string.
|
||||||
*
|
*
|
||||||
* @param aChar -- char to be stripped
|
* @param aChar -- char to be stripped
|
||||||
|
|||||||
@ -208,7 +208,7 @@ static PRBool test_append()
|
|||||||
return PR_TRUE;
|
return PR_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Replace all occurances of |matchVal| with |newVal|
|
// Replace all occurrences of |matchVal| with |newVal|
|
||||||
static void ReplaceSubstring( nsACString& str,
|
static void ReplaceSubstring( nsACString& str,
|
||||||
const nsACString& matchVal,
|
const nsACString& matchVal,
|
||||||
const nsACString& newVal )
|
const nsACString& newVal )
|
||||||
|
|||||||
@ -73,7 +73,7 @@ int WINAPI WinMain(HINSTANCE inst,
|
|||||||
rv = NS_InitXPCOM2(getter_AddRefs(servMan), nsnull, nsnull);
|
rv = NS_InitXPCOM2(getter_AddRefs(servMan), nsnull, nsnull);
|
||||||
if(NS_FAILED(rv))
|
if(NS_FAILED(rv))
|
||||||
{
|
{
|
||||||
ErrorBox("Failed to initalize xpcom.");
|
ErrorBox("Failed to initialize xpcom.");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -40,7 +40,7 @@ and window icons (to appear in the upper left corner of various windows).
|
|||||||
|
|
||||||
|
|
||||||
Requirements:
|
Requirements:
|
||||||
Each icon should contain the follwing devices images:
|
Each icon should contain the following devices images:
|
||||||
48x48, 32x32, and 16x16 - 16 color
|
48x48, 32x32, and 16x16 - 16 color
|
||||||
48x48, 32x32, and 16x16 - True color
|
48x48, 32x32, and 16x16 - True color
|
||||||
48x48, 32x32, and 16x16 - True color XP (Contains alpha shadows)
|
48x48, 32x32, and 16x16 - True color XP (Contains alpha shadows)
|
||||||
|
|||||||
@ -837,7 +837,7 @@ function loadDialog()
|
|||||||
dialog.cmdInput.value = print_command;
|
dialog.cmdInput.value = print_command;
|
||||||
dialog.jobTitleInput.value = print_jobtitle;
|
dialog.jobTitleInput.value = print_jobtitle;
|
||||||
|
|
||||||
/* First initalize with the hardcoded defaults... */
|
/* First initialize with the hardcoded defaults... */
|
||||||
dialog.topInput.value = "0.04";
|
dialog.topInput.value = "0.04";
|
||||||
dialog.bottomInput.value = "0.04";
|
dialog.bottomInput.value = "0.04";
|
||||||
dialog.leftInput.value = "0.04";
|
dialog.leftInput.value = "0.04";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user