Updating mozilla to DOM Level 2 events support. Fixes for bug 34722, 35378, 8411, 10330, plus some others that weren't filed.

git-svn-id: svn://10.0.0.236/trunk@70028 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
joki%netscape.com
2000-05-16 11:35:12 +00:00
parent 6aa7ce987a
commit ec91adc761
122 changed files with 1861 additions and 487 deletions

View File

@@ -20,10 +20,12 @@
* Contributor(s):
*/
#include "nsCOMPtr.h"
#include "nsPrintSetupDialog.h"
#include "nsIDOMEvent.h"
#include "nsIXPBaseWindow.h"
#include "nsBrowserWindow.h"
#include "nsIDOMEventTarget.h"
#include "nsIDOMHTMLInputElement.h"
#include "nsIDOMHTMLDocument.h"
@@ -191,13 +193,15 @@ void nsPrintSetupDialog::MouseClick(nsIDOMEvent* aMouseEvent, nsIXPBaseWindow *
nsBaseDialog::MouseClick(aMouseEvent, aWindow, aStatus);
if (!aStatus) { // is not consumed
nsIDOMNode * node;
aMouseEvent->GetTarget(&node);
if (node == mOKBtn) {
GetSetupInfo(mBrowserWindow->mPrintSetupInfo);
DoClose();
}
NS_RELEASE(node);
nsCOMPtr<nsIDOMEventTarget> target;
aMouseEvent->GetTarget(getter_AddRefs(target));
if (target) {
nsCOMPtr<nsIDOMElement> node(do_QueryInterface(target));
if (node.get() == mOKBtn) {
GetSetupInfo(mBrowserWindow->mPrintSetupInfo);
DoClose();
}
}
}
}