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

Unified Diff: Source/core/testing/Internals.cpp

Issue 165443003: Pass implementation object to supplemental classes by reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « Source/core/testing/InternalSettings.cpp ('k') | Source/core/testing/v8/WebCoreTestSupport.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 60619543c27dac76fbb0c2b0e0a11d745c490bdf..d790023721f6549ab7dc9ce22730f90859e7f6e5 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -241,7 +241,7 @@ InternalSettings* Internals::settings() const
Page* page = document->page();
if (!page)
return 0;
- return InternalSettings::from(page);
+ return InternalSettings::from(*page);
}
InternalRuntimeFlags* Internals::runtimeFlags() const
@@ -1263,7 +1263,7 @@ unsigned Internals::wheelEventHandlerCount(Document* document, ExceptionState& e
return 0;
}
- return WheelController::from(document)->wheelEventHandlerCount();
+ return WheelController::from(*document)->wheelEventHandlerCount();
}
unsigned Internals::touchEventHandlerCount(Document* document, ExceptionState& exceptionState)
@@ -2004,28 +2004,28 @@ void Internals::webkitWillEnterFullScreenForElement(Document* document, Element*
{
if (!document)
return;
- FullscreenElementStack::from(document)->webkitWillEnterFullScreenForElement(element);
+ FullscreenElementStack::from(*document).webkitWillEnterFullScreenForElement(element);
}
void Internals::webkitDidEnterFullScreenForElement(Document* document, Element* element)
{
if (!document)
return;
- FullscreenElementStack::from(document)->webkitDidEnterFullScreenForElement(element);
+ FullscreenElementStack::from(*document).webkitDidEnterFullScreenForElement(element);
}
void Internals::webkitWillExitFullScreenForElement(Document* document, Element* element)
{
if (!document)
return;
- FullscreenElementStack::from(document)->webkitWillExitFullScreenForElement(element);
+ FullscreenElementStack::from(*document).webkitWillExitFullScreenForElement(element);
}
void Internals::webkitDidExitFullScreenForElement(Document* document, Element* element)
{
if (!document)
return;
- FullscreenElementStack::from(document)->webkitDidExitFullScreenForElement(element);
+ FullscreenElementStack::from(*document).webkitDidExitFullScreenForElement(element);
}
void Internals::registerURLSchemeAsBypassingContentSecurityPolicy(const String& scheme)
« no previous file with comments | « Source/core/testing/InternalSettings.cpp ('k') | Source/core/testing/v8/WebCoreTestSupport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698