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

Unified Diff: Source/web/WebFormControlElement.cpp

Issue 419023007: Autocomplete confused about direction if inline style and inherited dir attribute are mixed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Incorporated review comments Created 6 years, 4 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: Source/web/WebFormControlElement.cpp
diff --git a/Source/web/WebFormControlElement.cpp b/Source/web/WebFormControlElement.cpp
index 34ec147ad70ecc8ccc350e28cf3e0e9f7755f729..01ec5b0ffbccf467e17ca035bc7459ae5726c024 100644
--- a/Source/web/WebFormControlElement.cpp
+++ b/Source/web/WebFormControlElement.cpp
@@ -172,9 +172,9 @@ int WebFormControlElement::selectionEnd() const
WebString WebFormControlElement::directionForFormData() const
{
if (isHTMLInputElement(*m_private))
- return constUnwrap<HTMLInputElement>()->directionForFormData();
+ return constUnwrap<HTMLInputElement>()->directionForAutocomplete();
if (isHTMLTextAreaElement(*m_private))
- return constUnwrap<HTMLTextAreaElement>()->directionForFormData();
+ return constUnwrap<HTMLTextAreaElement>()->directionForAutocomplete();
return WebString();
}

Powered by Google App Engine
This is Rietveld 408576698