Index: third_party/WebKit/Source/web/WebDataSourceImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebDataSourceImpl.cpp b/third_party/WebKit/Source/web/WebDataSourceImpl.cpp |
index d8a3cafe4b509b30745855463636b99e4b157ec1..1f32c07654d82e3b30271e6da0ca4e1faeaf0734 100644 |
--- a/third_party/WebKit/Source/web/WebDataSourceImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebDataSourceImpl.cpp |
@@ -172,6 +172,18 @@ WebDataSourceImpl::getServiceWorkerNetworkProvider() { |
return DocumentLoader::getServiceWorkerNetworkProvider(); |
} |
+void WebDataSourceImpl::setSourceLocation( |
+ const WebSourceLocation& sourceLocation) { |
+ std::unique_ptr<SourceLocation> location = |
+ SourceLocation::create(sourceLocation.url, sourceLocation.lineNumber, |
+ sourceLocation.columnNumber, nullptr); |
+ DocumentLoader::setSourceLocation(std::move(location)); |
+} |
+ |
+void WebDataSourceImpl::resetSourceLocation() { |
+ DocumentLoader::setSourceLocation(nullptr); |
+} |
+ |
DEFINE_TRACE(WebDataSourceImpl) { |
DocumentLoader::trace(visitor); |
} |