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

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

Issue 471863002: Remove unused bits of Internals (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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/Internals.h ('k') | Source/core/testing/Internals.idl » ('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 10b9f59653280f99c142f7e9730b84d68a76d807..4252c470d84a13fd3fac938c8badaf0dcf115a6b 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -322,48 +322,6 @@ bool Internals::isLoadingFromMemoryCache(const String& url)
return resource && resource->status() == Resource::Cached;
}
-void Internals::crash()
-{
- CRASH();
-}
-
-void Internals::setStyleResolverStatsEnabled(bool enabled)
-{
- Document* document = contextDocument();
- if (enabled)
- document->ensureStyleResolver().enableStats(StyleResolver::ReportSlowStats);
- else
- document->ensureStyleResolver().disableStats();
-}
-
-String Internals::styleResolverStatsReport(ExceptionState& exceptionState) const
-{
- Document* document = contextDocument();
- if (!document) {
- exceptionState.throwDOMException(InvalidAccessError, "No context document is available.");
- return String();
- }
- if (!document->ensureStyleResolver().stats()) {
- exceptionState.throwDOMException(InvalidStateError, "Style resolver stats not enabled");
- return String();
- }
- return document->ensureStyleResolver().stats()->report();
-}
-
-String Internals::styleResolverStatsTotalsReport(ExceptionState& exceptionState) const
-{
- Document* document = contextDocument();
- if (!document) {
- exceptionState.throwDOMException(InvalidAccessError, "No context document is available.");
- return String();
- }
- if (!document->ensureStyleResolver().statsTotals()) {
- exceptionState.throwDOMException(InvalidStateError, "Style resolver stats not enabled");
- return String();
- }
- return document->ensureStyleResolver().statsTotals()->report();
-}
-
bool Internals::isSharingStyle(Element* element1, Element* element2) const
{
ASSERT(element1 && element2);
@@ -708,17 +666,6 @@ PassRefPtrWillBeRawPtr<PagePopupController> Internals::pagePopupController()
return s_pagePopupDriver ? s_pagePopupDriver->pagePopupController() : 0;
}
-PassRefPtrWillBeRawPtr<ClientRect> Internals::unscaledViewportRect(ExceptionState& exceptionState)
-{
- Document* document = contextDocument();
- if (!document || !document->view()) {
- exceptionState.throwDOMException(InvalidAccessError, document ? "The document's viewport cannot be retrieved." : "No context document can be obtained.");
- return ClientRect::create();
- }
-
- return ClientRect::create(document->view()->visibleContentRect());
-}
-
PassRefPtrWillBeRawPtr<ClientRect> Internals::absoluteCaretBounds(ExceptionState& exceptionState)
{
Document* document = contextDocument();
@@ -2037,12 +1984,6 @@ String Internals::getImageSourceURL(Element* element)
return element->imageSourceURL();
}
-String Internals::baseURL(Document* document)
-{
- ASSERT(document);
- return document->baseURL().string();
-}
-
bool Internals::isSelectPopupVisible(Node* node)
{
ASSERT(node);
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698