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

Unified Diff: third_party/WebKit/Source/web/WebElement.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/WebElement.cpp
diff --git a/third_party/WebKit/Source/web/WebElement.cpp b/third_party/WebKit/Source/web/WebElement.cpp
index 0a9668ee9266eace187c508674462091c4cc31b9..dda7e0905afa6f37ba727d1b8d161b36121972f9 100644
--- a/third_party/WebKit/Source/web/WebElement.cpp
+++ b/third_party/WebKit/Source/web/WebElement.cpp
@@ -180,6 +180,8 @@ WebElement::WebElement(const PassRefPtrWillBeRawPtr<Element>& elem)
{
}
+DEFINE_WEB_NODE_TYPE_CASTS(WebElement, isElementNode());
+
WebElement& WebElement::operator=(const PassRefPtrWillBeRawPtr<Element>& elem)
{
m_private = elem;
« no previous file with comments | « third_party/WebKit/Source/web/WebDocumentType.cpp ('k') | third_party/WebKit/Source/web/WebFormControlElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698