Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Unified Diff: Source/bindings/v8/V8DOMConfiguration.h

Issue 40433002: Make wrapperTypeInfo static member const in bindings classes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/bindings/v8/ScriptWrappable.h ('k') | Source/bindings/v8/V8DOMWrapper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/V8DOMConfiguration.h
diff --git a/Source/bindings/v8/V8DOMConfiguration.h b/Source/bindings/v8/V8DOMConfiguration.h
index 4ce0c596b7691ae025ab722301a51787e01e26b6..f7ba8651af8a9c1e16afeb13c12b7d499095ef32 100644
--- a/Source/bindings/v8/V8DOMConfiguration.h
+++ b/Source/bindings/v8/V8DOMConfiguration.h
@@ -50,7 +50,7 @@ public:
v8::AccessorSetterCallback setter;
v8::AccessorGetterCallback getterForMainWorld;
v8::AccessorSetterCallback setterForMainWorld;
- WrapperTypeInfo* data;
+ const WrapperTypeInfo* data;
v8::AccessControl settings;
v8::PropertyAttribute attribute;
bool onPrototype;
@@ -64,7 +64,7 @@ public:
(attribute.onPrototype ? prototype : instance)->SetAccessor(v8::String::NewSymbol(attribute.name),
attribute.getter,
attribute.setter,
- v8::External::New(attribute.data),
+ v8::External::New(const_cast<WrapperTypeInfo*>(attribute.data)),
attribute.settings,
attribute.attribute);
}
@@ -83,7 +83,7 @@ public:
(attribute.onPrototype ? prototype : instance)->SetAccessor(v8::String::NewSymbol(attribute.name),
getter,
setter,
- v8::External::New(attribute.data),
+ v8::External::New(const_cast<WrapperTypeInfo*>(attribute.data)),
attribute.settings,
attribute.attribute);
}
« no previous file with comments | « Source/bindings/v8/ScriptWrappable.h ('k') | Source/bindings/v8/V8DOMWrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698