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

Unified Diff: Source/WebCore/html/shadow/DateTimeNumericFieldElement.cpp

Issue 11548050: Merge 137152 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 years 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/WebCore/html/shadow/DateTimeNumericFieldElement.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/html/shadow/DateTimeNumericFieldElement.cpp
===================================================================
--- Source/WebCore/html/shadow/DateTimeNumericFieldElement.cpp (revision 137542)
+++ Source/WebCore/html/shadow/DateTimeNumericFieldElement.cpp (working copy)
@@ -27,6 +27,8 @@
#if ENABLE(INPUT_MULTIPLE_FIELDS_UI)
#include "DateTimeNumericFieldElement.h"
+#include "CSSPropertyNames.h"
+#include "CSSValueKeywords.h"
#include "Font.h"
#include "KeyboardEvent.h"
#include "PlatformLocale.h"
@@ -70,12 +72,8 @@
if (localeForOwner().isRTL()) {
Direction dir = direction(formatValue(this->maximum())[0]);
if (dir == LeftToRight || dir == EuropeanNumber || dir == ArabicNumber) {
- StringBuilder builder;
- builder.reserveCapacity(m_placeholder.length() + 2);
- builder.append(leftToRightMark);
- builder.append(m_placeholder);
- builder.append(rightToLeftMark);
- m_placeholder = builder.toString();
+ setInlineStyleProperty(CSSPropertyUnicodeBidi, CSSValueBidiOverride);
+ setInlineStyleProperty(CSSPropertyDirection, CSSValueLtr);
}
}
}
« no previous file with comments | « Source/WebCore/html/shadow/DateTimeNumericFieldElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698