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 |