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

Unified Diff: third_party/WebKit/Source/web/WebDataSourceImpl.cpp

Issue 2720763002: PlzNavigate: preserve SourceLocation when navigating (Closed)
Patch Set: Fix rebase compilation issues Created 3 years, 9 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 | « third_party/WebKit/Source/web/WebDataSourceImpl.h ('k') | third_party/WebKit/public/web/WebDataSource.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « third_party/WebKit/Source/web/WebDataSourceImpl.h ('k') | third_party/WebKit/public/web/WebDataSource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698