summaryrefslogtreecommitdiff
path: root/dom/base/AnonymousContent.h
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-04-16 20:19:06 -0400
committerMatt A. Tobin <email@mattatobin.com>2020-04-16 20:19:06 -0400
commitde45820b64ab03768336c7242622ef9f499347cf (patch)
tree718a67a64a29f2440850e693f8ba707f3b91c179 /dom/base/AnonymousContent.h
parentab05e6f9ad185a1f7c405fd29876edca9e0567ba (diff)
downloaduxp-de45820b64ab03768336c7242622ef9f499347cf.tar.gz
Bug 1346623 - Allow anonymous content created with nsIDocument::InsertAnonymousContent can change from non-native to native AC
* Prevent canvas custom content from becoming NAC when reframing the root element * Add an API to get computed style values through an AnonymousContent object Tag #1375
Diffstat (limited to 'dom/base/AnonymousContent.h')
-rw-r--r--dom/base/AnonymousContent.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/dom/base/AnonymousContent.h b/dom/base/AnonymousContent.h
index fd3b59c440..b56c145956 100644
--- a/dom/base/AnonymousContent.h
+++ b/dom/base/AnonymousContent.h
@@ -68,6 +68,11 @@ public:
const Sequence<OwningNonNull<DOMRect>>& aRects,
ErrorResult& aError);
+ void GetComputedStylePropertyValue(const nsAString& aElementId,
+ const nsAString& aPropertyName,
+ DOMString& aResult,
+ ErrorResult& aRv);
+
private:
~AnonymousContent();
nsCOMPtr<Element> mContentNode;