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

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

Issue 2723973002: Make V8Binding helpers return LocalFrame/LocalDOMWindow as appropriate (Closed)
Patch Set: Created 3 years, 10 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
Index: third_party/WebKit/Source/bindings/core/v8/custom/V8PerformanceObserverCustom.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/custom/V8PerformanceObserverCustom.cpp b/third_party/WebKit/Source/bindings/core/v8/custom/V8PerformanceObserverCustom.cpp
index 36196aced369e2f93da08350cb4de5c7bc4339f5..64a1b276db3494dde511034c07515d17e2a07551 100644
--- a/third_party/WebKit/Source/bindings/core/v8/custom/V8PerformanceObserverCustom.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8PerformanceObserverCustom.cpp
@@ -31,8 +31,7 @@ void V8PerformanceObserver::constructorCustom(
v8::Local<v8::Object> wrapper = info.Holder();
Performance* performance = nullptr;
- LocalDOMWindow* window =
- toLocalDOMWindow(toDOMWindow(wrapper->CreationContext()));
+ LocalDOMWindow* window = toDOMWindow(wrapper->CreationContext());
if (!window) {
V8ThrowException::throwTypeError(
info.GetIsolate(),

Powered by Google App Engine
This is Rietveld 408576698