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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/custom/V8CSSStyleRuleCustom.cpp

Issue 2024793002: Remove unnecessary Context::Scope from V8CSSStyleRuleCustom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698