Commit c3d6201e authored by haraken's avatar haraken Committed by Commit bot

Remove unnecessary Context::Scope from V8CSSStyleRuleCustom

This is a left-over of https://codereview.chromium.org/1683493003/.
This CL removes it.

BUG=455160, 610340

Review-Url: https://codereview.chromium.org/2024793002
Cr-Commit-Position: refs/heads/master@{#396808}
parent 3655785f
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment