Add back test.runCount for runPerSecond as it's used by tests in fast/harness/perftests.

* resources/runner.js:
(PerfTestRunner.runPerSecond):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129858 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Switch monthLabels, weekDayShortLabels, and firstDayOfWeek to Localizer
https://bugs.webkit.org/show_bug.cgi?id=97874

Reviewed by Kentaro Hara.

Source/WebCore:

No new tests. This change shouldn't change any behavior.

* platform/text/Localizer.h:
(Localizer): Add monthLabels, weekDayShortLabels, and firstDayOfWeek.
* platform/text/LocalizedDate.h:
(WebCore): Remove them.
* platform/text/LocalizedDateICU.cpp:
(WebCore::localizedDateFormatText): ditto.
* platform/text/LocalizedDateWin.cpp:
(WebCore::localizedDateFormatText): ditto.
* platform/text/mac/LocalizedDateMac.cpp:
(WebCore::localizedDateFormatText): ditto.

* platform/text/LocaleICU.h:
(LocaleICU): Add virtual and OVERRIDE.
* platform/text/LocaleWin.h:
(LocaleWin):
- Add virtual and OVERRIDE.
- Move the content of firstDayOfWeek to LocaleWin.cpp because inline
definition of a virtual function is not efficient.
* platform/text/LocaleWin.cpp:
(WebCore::LocaleWin::firstDayOfWeek): See above.
* platform/text/mac/LocaleMac.h:
(LocaleMac): Add virtual and OVERRIDE.

Source/WebKit/chromium:

* src/DateTimeChooserImpl.cpp:
(WebKit::DateTimeChooserImpl::writeDocument):
Use Localizer for the browser locale.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129859 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Use Localizer in PagePopupController
https://bugs.webkit.org/show_bug.cgi?id=97862

Reviewed by Hajime Morita.

Source/WebCore:

No new tests. This doesn't change any behavior.

* page/PagePopupClient.h:
(WebCore):
(PagePopupClient): Add "localizer" member function.
* page/PagePopupController.cpp:
(WebCore::PagePopupController::localizeNumberString):
Use a Localizer object provided by PagePopupClient.

Source/WebKit/blackberry:

We need to implement PagePopupClient::localizer. These clients know the
host elements. Localizer implementations get Localizer objects from the
owner documents of the elements for the browser locale.

* WebCoreSupport/ColorPickerClient.cpp:
(WebCore::ColorPickerClient::localizer): Added.
* WebCoreSupport/ColorPickerClient.h:
(ColorPickerClient): Declare "localizer."
* WebCoreSupport/DatePickerClient.cpp:
(WebCore::SelectPopupClient::localizer): Added.
* WebCoreSupport/DatePickerClient.h:
(DatePickerClient): Declare "localizer."
* WebCoreSupport/SelectPopupClient.cpp:
(WebCore::SelectPopupClient::localizer): Added.
* WebCoreSupport/SelectPopupClient.h:
(SelectPopupClient): Declare "localizer."

Source/WebKit/chromium:

We need to implement PagePopupClient::localizer. The current
implementations of localizer functions always return Localizer objects
for the browser locale. It's ok because other locale-dependent stuff in
PagePopup uses the browser locale, not element locale. We might want to
update this behavior later for testing i18n behavior in PagePopup.

* src/ColorChooserUIController.cpp:
(WebKit::ColorChooserUIController::ColorChooserUIController):
Initialize m_localizer with the browser default locale.
(WebKit::ColorChooserUIController::localizer):
Returns m_localizer.
* src/ColorChooserUIController.h:
(ColorChooserUIController): Declare localizer function and m_localizer.

* src/DateTimeChooserImpl.cpp:
(WebKit::DateTimeChooserImpl::DateTimeChooserImpl):
Initialize m_localizer with the browser default locale.
(WebKit::DateTimeChooserImpl::localizer):
Returns m_localizer.
* src/DateTimeChooserImpl.h:
(DateTimeChooserImpl): Declare localizer function and m_localizer.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129860 268f45cc-cd09-0410-ab3c-d52691b4dbfc