Index: Source/core/testing/Internals.cpp |
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp |
index 3518ccb663a2128a00404d2c409706cc62b5812a..993203917604244749d8cb602f15a5d1b3a8ea8f 100644 |
--- a/Source/core/testing/Internals.cpp |
+++ b/Source/core/testing/Internals.cpp |
@@ -1948,6 +1948,16 @@ String Internals::getImageSourceURL(Element* element, ExceptionCode& ec) |
return element->imageSourceURL(); |
} |
+String Internals::baseURL(Document* document, ExceptionCode& ec) |
+{ |
+ if (!document) { |
+ ec = INVALID_ACCESS_ERR; |
+ return String(); |
+ } |
+ |
+ return document->baseURL().string(); |
+} |
+ |
bool Internals::isSelectPopupVisible(Node* node) |
{ |
if (!isHTMLSelectElement(node)) |