diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-04-16 20:19:06 -0400 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2020-04-16 20:19:06 -0400 |
commit | de45820b64ab03768336c7242622ef9f499347cf (patch) | |
tree | 718a67a64a29f2440850e693f8ba707f3b91c179 /dom/base/AnonymousContent.h | |
parent | ab05e6f9ad185a1f7c405fd29876edca9e0567ba (diff) | |
download | uxp-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.h | 5 |
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; |