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

Unified Diff: Source/core/testing/Internals.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/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 649489eebf11105464527c07bea9e9ffe7d27092..6a858b95e7e669fe02d4de47fc3931a34876653d 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -242,7 +242,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
@@ -1262,7 +1262,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)
@@ -2003,28 +2003,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)

Powered by Google App Engine
This is Rietveld 408576698