Title: [125837] trunk/Source/WebCore
Revision
125837
Author
[email protected]
Date
2012-08-16 18:06:49 -0700 (Thu, 16 Aug 2012)

Log Message

[Chromium-win] Use native digits in a case of "context" substitution setting too.
https://bugs.webkit.org/show_bug.cgi?id=94210

Reviewed by Hajime Morita.

Use native digits in a case of "context" substitution setting, not only
"native" substitution.  IE10's input[type=number] always show native
digits even if the system setting is "context". We had better follow
this behavior.

No new tests. This behavior depends on the system locale setting.

* platform/text/LocaleWin.cpp:
(WebCore::LocaleWin::initializeNumberLocalizerData):
Uses 0-9 only if the substitution setting is "0 to 9". It measn we apply
native digits if the substitution setting is "context" or "native".

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (125836 => 125837)


--- trunk/Source/WebCore/ChangeLog	2012-08-17 01:06:14 UTC (rev 125836)
+++ trunk/Source/WebCore/ChangeLog	2012-08-17 01:06:49 UTC (rev 125837)
@@ -1,3 +1,22 @@
+2012-08-16  Kent Tamura  <[email protected]>
+
+        [Chromium-win] Use native digits in a case of "context" substitution setting too.
+        https://bugs.webkit.org/show_bug.cgi?id=94210
+
+        Reviewed by Hajime Morita.
+
+        Use native digits in a case of "context" substitution setting, not only
+        "native" substitution.  IE10's input[type=number] always show native
+        digits even if the system setting is "context". We had better follow
+        this behavior.
+
+        No new tests. This behavior depends on the system locale setting.
+
+        * platform/text/LocaleWin.cpp:
+        (WebCore::LocaleWin::initializeNumberLocalizerData):
+        Uses 0-9 only if the substitution setting is "0 to 9". It measn we apply
+        native digits if the substitution setting is "context" or "native".
+
 2012-08-16  Huang Dongsung  <[email protected]>
 
         [Texmap] Render gif animation well.

Modified: trunk/Source/WebCore/platform/text/LocaleWin.cpp (125836 => 125837)


--- trunk/Source/WebCore/platform/text/LocaleWin.cpp	2012-08-17 01:06:14 UTC (rev 125836)
+++ trunk/Source/WebCore/platform/text/LocaleWin.cpp	2012-08-17 01:06:49 UTC (rev 125837)
@@ -709,7 +709,7 @@
     };
     DWORD digitSubstitution = DigitSubstitution0to9;
     getLocaleInfo(LOCALE_IDIGITSUBSTITUTION, digitSubstitution);
-    if (digitSubstitution != DigitSubstitutionNative) {
+    if (digitSubstitution == DigitSubstitution0to9) {
         symbols.append("0");
         symbols.append("1");
         symbols.append("2");
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to