diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-05-07 03:11:42 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-05-07 03:11:42 +0800 |
commit | 61447fb382b2ec83ba1ec4dc893f042efd728d5c (patch) | |
tree | f07811a67ec81c42fd998fa7e65e7cc174ca8a1c /embed/mozilla/EventContext.h | |
parent | c890cd0c5430f702d07bc3112ac5350af601a952 (diff) | |
download | gsoc2013-epiphany-61447fb382b2ec83ba1ec4dc893f042efd728d5c.tar gsoc2013-epiphany-61447fb382b2ec83ba1ec4dc893f042efd728d5c.tar.gz gsoc2013-epiphany-61447fb382b2ec83ba1ec4dc893f042efd728d5c.tar.bz2 gsoc2013-epiphany-61447fb382b2ec83ba1ec4dc893f042efd728d5c.tar.lz gsoc2013-epiphany-61447fb382b2ec83ba1ec4dc893f042efd728d5c.tar.xz gsoc2013-epiphany-61447fb382b2ec83ba1ec4dc893f042efd728d5c.tar.zst gsoc2013-epiphany-61447fb382b2ec83ba1ec4dc893f042efd728d5c.zip |
Slight performance improvements.
2005-05-06 Christian Persch <chpe@cvs.gnome.org>
* embed/mozilla/EventContext.cpp:
* embed/mozilla/EventContext.h:
Slight performance improvements.
Diffstat (limited to 'embed/mozilla/EventContext.h')
-rw-r--r-- | embed/mozilla/EventContext.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/embed/mozilla/EventContext.h b/embed/mozilla/EventContext.h index 36d3faedb..c982b9722 100644 --- a/embed/mozilla/EventContext.h +++ b/embed/mozilla/EventContext.h @@ -35,6 +35,14 @@ #include <nsIDOMHTMLAreaElement.h> #include <nsIDOMHTMLBodyElement.h> #include <nsIDOMDocument.h> +#include <nsIURI.h> +#undef MOZILLA_INTERNAL_API +#include <nsEmbedString.h> +#define MOZILLA_INTERNAL_API 1 + +#ifdef ALLOW_PRIVATE_API +#include <nsIDOMViewCSS.h> +#endif class EventContext { @@ -51,6 +59,9 @@ private: EphyBrowser *mBrowser; MozillaEmbedEvent *mEmbedEvent; nsCOMPtr<nsIDOMDocument> mDOMDocument; + nsCOMPtr<nsIDOMViewCSS> mViewCSS; + nsCOMPtr<nsIURI> mBaseURI; + nsEmbedCString mCharset; nsresult GetTargetCoords (nsIDOMEventTarget *aTarget, PRInt32 *aX, PRInt32 *aY); nsresult GatherTextUnder (nsIDOMNode* aNode, nsAString& aResult); @@ -65,6 +76,8 @@ private: nsresult SetIntProperty (const char *name, int value); nsresult SetStringProperty (const char *name, const char *value); nsresult SetStringProperty (const char *name, const nsAString &value); + nsresult SetURIProperty (nsIDOMNode *node, const char *name, const nsAString &value); + nsresult SetURIProperty (nsIDOMNode *node, const char *name, const nsACString &value); }; #endif |