diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/bindings/js/JSHTMLTemplateElementCustom.cpp | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/bindings/js/JSHTMLTemplateElementCustom.cpp')
-rw-r--r-- | Source/WebCore/bindings/js/JSHTMLTemplateElementCustom.cpp | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/Source/WebCore/bindings/js/JSHTMLTemplateElementCustom.cpp b/Source/WebCore/bindings/js/JSHTMLTemplateElementCustom.cpp index e4cda2baf..ff91eada0 100644 --- a/Source/WebCore/bindings/js/JSHTMLTemplateElementCustom.cpp +++ b/Source/WebCore/bindings/js/JSHTMLTemplateElementCustom.cpp @@ -29,9 +29,6 @@ */ #include "config.h" - -#if ENABLE(TEMPLATE_ELEMENT) - #include "JSHTMLTemplateElement.h" #include "HTMLTemplateElement.h" @@ -43,22 +40,15 @@ using namespace JSC; namespace WebCore { -JSValue JSHTMLTemplateElement::content(ExecState* exec) const +JSValue JSHTMLTemplateElement::content(ExecState& state) const { - JSLockHolder lock(exec); + JSLockHolder lock(&state); - DocumentFragment* content = impl().content(); + auto wrapper = wrap(&state, globalObject(), wrapped().content()); - JSObject* wrapper = getCachedWrapper(currentWorld(exec), content); - if (wrapper) - return wrapper; - - wrapper = CREATE_DOM_WRAPPER(exec, globalObject(), DocumentFragment, content); PrivateName propertyName; const_cast<JSHTMLTemplateElement*>(this)->putDirect(globalObject()->vm(), propertyName, wrapper); return wrapper; } } // namespace WebCore - -#endif // ENABLE(TEMPLATE_ELEMENT) |