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

Unified Diff: public/web/WebTextAreaElement.h

Issue 287313003: Add toWebTextAreaElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ../.. Created 6 years, 7 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 | « Source/web/WebTextAreaElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebTextAreaElement.h
diff --git a/public/web/WebTextAreaElement.h b/public/web/WebTextAreaElement.h
index 489a30882b51356e346fe128ff37f0eaa00bb601..64ad12fa80b5b9a56c146998175baf514a08e30e 100644
--- a/public/web/WebTextAreaElement.h
+++ b/public/web/WebTextAreaElement.h
@@ -59,6 +59,15 @@ public:
#endif
};
+// Converts WebElement to WebTextAreaElement. Returns null if the given element
+// is null or isn't a textarea element.
+BLINK_EXPORT WebTextAreaElement* toWebTextAreaElement(WebElement*);
+
+inline const WebTextAreaElement* toWebTextAreaElement(const WebElement* element)
+{
+ return toWebTextAreaElement(const_cast<WebElement*>(element));
+}
+
} // namespace blink
#endif
« no previous file with comments | « Source/web/WebTextAreaElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698