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

Unified Diff: Source/core/testing/v8/WebCoreTestSupport.cpp

Issue 171333003: Pass implementation object to supplemental classes by reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 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: Source/core/testing/v8/WebCoreTestSupport.cpp
diff --git a/Source/core/testing/v8/WebCoreTestSupport.cpp b/Source/core/testing/v8/WebCoreTestSupport.cpp
index 45e2e70585358c55802c794c9d8c4abdcd7bb840..c26852418e946ffd038c7934964cc19b30f128dd 100644
--- a/Source/core/testing/v8/WebCoreTestSupport.cpp
+++ b/Source/core/testing/v8/WebCoreTestSupport.cpp
@@ -59,8 +59,9 @@ void resetInternalsObject(v8::Local<v8::Context> context)
ExecutionContext* scriptContext = currentExecutionContext(context->GetIsolate());
Page* page = toDocument(scriptContext)->frame()->page();
+ ASSERT(page);
Internals::resetToConsistentState(page);
- InternalSettings::from(page)->resetToConsistentState();
+ InternalSettings::from(*page)->resetToConsistentState();
}
}

Powered by Google App Engine
This is Rietveld 408576698