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

Unified Diff: third_party/WebKit/Source/core/testing/Internals.cpp

Issue 2500793002: Internals.setValueForUser(): add argument type check. (Closed)
Patch Set: constrain argument type via IDL Created 4 years, 1 month 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/core/testing/Internals.cpp
diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
index 738cb42c4369aa551c5fe1d2f715f1f6c5974fd7..28863b32bc34f0f8a5f5e91f26cb4decf88bcba5 100644
--- a/third_party/WebKit/Source/core/testing/Internals.cpp
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp
@@ -2764,8 +2764,9 @@ DEFINE_TRACE(Internals) {
ContextLifecycleObserver::trace(visitor);
}
-void Internals::setValueForUser(Element* element, const String& value) {
- toHTMLInputElement(element)->setValueForUser(value);
+void Internals::setValueForUser(HTMLInputElement* element,
+ const String& value) {
+ element->setValueForUser(value);
}
String Internals::textSurroundingNode(Node* node,
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.h ('k') | third_party/WebKit/Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698