summaryrefslogtreecommitdiff
path: root/dom/base/DOMRect.h
diff options
context:
space:
mode:
authorJob Bautista <jobbautista9@aol.com>2023-05-12 13:45:39 +0800
committerJob Bautista <jobbautista9@aol.com>2023-05-12 16:26:05 +0800
commit709c34a4484a45c19c5a7c52a7a0052d5fca9678 (patch)
treea2b1e45852a855887220463ba087e442c31b4fc3 /dom/base/DOMRect.h
parent0adb8cc71fba46afe05a85ac89d92a3586346ea1 (diff)
downloaduxp-709c34a4484a45c19c5a7c52a7a0052d5fca9678.tar.gz
Issue #2241 - Part 5: Expose Geometry interfaces to web workers.
Exposes DOMMatrix, DOMPoint, DOMQuad, and DOMRect to workers. Backported from Mozilla bug 1420580.
Diffstat (limited to 'dom/base/DOMRect.h')
-rw-r--r--dom/base/DOMRect.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/dom/base/DOMRect.h b/dom/base/DOMRect.h
index baf3268b20..56478f284c 100644
--- a/dom/base/DOMRect.h
+++ b/dom/base/DOMRect.h
@@ -6,6 +6,7 @@
#ifndef MOZILLA_DOMRECT_H_
#define MOZILLA_DOMRECT_H_
+#include "js/StructuredClone.h"
#include "nsIDOMClientRect.h"
#include "nsIDOMClientRectList.h"
#include "nsTArray.h"
@@ -91,6 +92,10 @@ public:
return std::max(y, y + h);
}
+ bool WriteStructuredClone(JSStructuredCloneWriter* aWriter) const;
+
+ bool ReadStructuredClone(JSStructuredCloneReader* aReader);
+
protected:
nsCOMPtr<nsISupports> mParent;
double mX, mY, mWidth, mHeight;