Index: Source/core/scripts/make_names.pl |
diff --git a/Source/core/scripts/make_names.pl b/Source/core/scripts/make_names.pl |
index c237fe47b4fadf1efe5c3d4773a53569db6d9f97..a0d5272c40bb09ace22639610f512d5ec1d806f9 100755 |
--- a/Source/core/scripts/make_names.pl |
+++ b/Source/core/scripts/make_names.pl |
@@ -978,7 +978,7 @@ sub printWrapperFunctions |
print F <<END |
static v8::Handle<v8::Object> create${JSInterfaceName}Wrapper($parameters{namespace}Element* element, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
{ |
- Settings* settings = element->document()->settings(); |
+ Settings* settings = element->document().settings(); |
if (!RuntimeEnabledFeatures::mediaEnabled() || (settings && !settings->mediaEnabled())) |
return createV8$parameters{namespace}DirectWrapper(element, creationContext, isolate); |
return wrap(static_cast<${JSInterfaceName}*>(element), creationContext, isolate); |
@@ -991,7 +991,7 @@ END |
print F <<END |
static v8::Handle<v8::Object> create${JSInterfaceName}Wrapper($parameters{namespace}Element* element, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
{ |
- if (!ContextFeatures::${contextConditional}Enabled(element->document())) |
+ if (!ContextFeatures::${contextConditional}Enabled(&element->document())) |
return createV8$parameters{namespace}FallbackWrapper(to$parameters{fallbackInterfaceName}(element), creationContext, isolate); |
return wrap(static_cast<${JSInterfaceName}*>(element), creationContext, isolate); |
} |