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

Unified Diff: Source/WebKit/chromium/src/WebDocument.cpp

Issue 17885002: Use toDocument instead of static_cast<Document*>. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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/WebKit/chromium/src/WebDocument.cpp
diff --git a/Source/WebKit/chromium/src/WebDocument.cpp b/Source/WebKit/chromium/src/WebDocument.cpp
index 83493dd28855066f6c9539e8f8c6d9652393f250..afe140faf34897c56bede269a3b488e7c39742a0 100644
--- a/Source/WebKit/chromium/src/WebDocument.cpp
+++ b/Source/WebKit/chromium/src/WebDocument.cpp
@@ -288,7 +288,7 @@ WebDocument& WebDocument::operator=(const PassRefPtr<Document>& elem)
WebDocument::operator PassRefPtr<Document>() const
{
- return static_cast<Document*>(m_private.get());
+ return toDocument(m_private.get());
}
} // namespace WebKit
« no previous file with comments | « Source/WebKit/chromium/src/StorageQuotaChromium.cpp ('k') | Source/WebKit/chromium/src/WebWorkerClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698