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

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

Issue 1365203002: Make WebNode::to<Type>() (and toConst) casts contain type asserts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add BLINK_IMPLEMENTATION guard. Created 5 years, 3 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: third_party/WebKit/Source/web/WebPluginDocument.cpp
diff --git a/third_party/WebKit/Source/web/WebPluginDocument.cpp b/third_party/WebKit/Source/web/WebPluginDocument.cpp
index 4e38fc40e73d05811a6814fc26e90c3ff08949ad..92a8d153f7f0de1525d8bac531c8a477ee0b034b 100644
--- a/third_party/WebKit/Source/web/WebPluginDocument.cpp
+++ b/third_party/WebKit/Source/web/WebPluginDocument.cpp
@@ -57,6 +57,8 @@ WebPluginDocument::WebPluginDocument(const PassRefPtrWillBeRawPtr<PluginDocument
{
}
+DEFINE_WEB_NODE_TYPE_CASTS(WebPluginDocument, isDocumentNode() && constUnwrap<Document>()->isPluginDocument());
+
WebPluginDocument& WebPluginDocument::operator=(const PassRefPtrWillBeRawPtr<PluginDocument>& elem)
{
m_private = elem;
« no previous file with comments | « third_party/WebKit/Source/web/WebOptionElement.cpp ('k') | third_party/WebKit/Source/web/WebSelectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698