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

Unified Diff: Source/WebKit/chromium/src/WebViewImpl.cpp

Issue 18094004: change WebViewImpl::inputModeOfFocusedElement to return lowered string. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: add comment to WebTextInputInfo Created 7 years, 5 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 | « no previous file | Source/WebKit/chromium/tests/data/input_mode_default_url.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebKit/chromium/src/WebViewImpl.cpp
diff --git a/Source/WebKit/chromium/src/WebViewImpl.cpp b/Source/WebKit/chromium/src/WebViewImpl.cpp
index c871583b58f1e0606c882852af4c5fa7af3b0941..286fc9a7e8f6a10d129e3e9ff24f70275aafdb9f 100644
--- a/Source/WebKit/chromium/src/WebViewImpl.cpp
+++ b/Source/WebKit/chromium/src/WebViewImpl.cpp
@@ -2314,12 +2314,12 @@ WebString WebViewImpl::inputModeOfFocusedElement()
if (node->hasTagName(HTMLNames::inputTag)) {
const HTMLInputElement* input = toHTMLInputElement(node);
if (input->supportsInputModeAttribute())
- return input->fastGetAttribute(HTMLNames::inputmodeAttr);
+ return input->fastGetAttribute(HTMLNames::inputmodeAttr).lower();
return WebString();
}
if (isHTMLTextAreaElement(node)) {
const HTMLTextAreaElement* textarea = toHTMLTextAreaElement(node);
- return textarea->fastGetAttribute(HTMLNames::inputmodeAttr);
+ return textarea->fastGetAttribute(HTMLNames::inputmodeAttr).lower();
}
return WebString();
« no previous file with comments | « no previous file | Source/WebKit/chromium/tests/data/input_mode_default_url.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698