| Index: third_party/WebKit/Source/bindings/core/v8/custom/V8CSSStyleRuleCustom.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/custom/V8CSSStyleRuleCustom.cpp b/third_party/WebKit/Source/bindings/core/v8/custom/V8CSSStyleRuleCustom.cpp
|
| index f21277067630a4372d7e600dff92bd3c2b7514b6..e9ddc8964c2bccbf7effd539317d679dea19d74c 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/custom/V8CSSStyleRuleCustom.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8CSSStyleRuleCustom.cpp
|
| @@ -41,17 +41,13 @@ namespace blink {
|
| void V8CSSStyleRule::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* scriptWrappable, const v8::Persistent<v8::Object>& wrapper)
|
| {
|
| CSSStyleRule* impl = scriptWrappable->toImpl<CSSStyleRule>();
|
| - v8::Local<v8::Object> context = v8::Local<v8::Object>::New(isolate, wrapper);
|
| - v8::Context::Scope scope(context->CreationContext());
|
| CSSRule* parentRule = impl->parentRule();
|
| if (parentRule) {
|
| - if (DOMDataStore::containsWrapper(parentRule, isolate))
|
| - DOMDataStore::setWrapperReference(wrapper, parentRule, isolate);
|
| + DOMWrapperWorld::setWrapperReferencesInAllWorlds(wrapper, parentRule, isolate);
|
| }
|
| CSSStyleSheet* parentStyleSheet = impl->parentStyleSheet();
|
| if (parentStyleSheet) {
|
| - if (DOMDataStore::containsWrapper(parentStyleSheet, isolate))
|
| - DOMDataStore::setWrapperReference(wrapper, parentStyleSheet, isolate);
|
| + DOMWrapperWorld::setWrapperReferencesInAllWorlds(wrapper, parentStyleSheet, isolate);
|
| }
|
| }
|
|
|
|
|