DateTimeNumericFieldElement should use Localizer functions.
https://bugs.webkit.org/show_bug.cgi?id=97318

Reviewed by Hajime Morita.

Source/WebCore:

Source/WebCore:

Use Localizer functions instead of functions in LocalizedNumber to test
i18n behavior. This affects only layout tests because
Document::getLocalizer() always returns a Localizer for the browser
locale.

To obtain a Localizer object for <input>'s locale from a deep shadow node,
we add localeIdentifier() function to DateTimeFieldElement::FieldOwner
and DateTimeEditElement::EditControlOwner interfaces.

Tests: fast/forms/time-multiple-fields/time-multiple-fields-localization.html

* html/shadow/DateTimeFieldElement.h:
(FieldOwner): Add localeIdentifier callback.
(DateTimeFieldElement): Add localeIdentifier().
* html/shadow/DateTimeFieldElement.cpp:
(WebCore::DateTimeFieldElement::localeIdentifier):
Added. Returns FieldOwner::localeIdentifier if m_fieldOwner is available.

* html/shadow/DateTimeNumericFieldElement.h:
(DateTimeNumericFieldElement): Declare localizer().
* html/shadow/DateTimeNumericFieldElement.cpp:
(WebCore::DateTimeNumericFieldElement::localizer):
Returns a Localizer for DateTimeFieldElement::localeIdentifier()
(WebCore::DateTimeNumericFieldElement::handleKeyboardEvent): Use localizer().
(WebCore::DateTimeNumericFieldElement::value): Use localizer().

* html/shadow/DateTimeEditElement.h:
(EditControlOwner): Add localeIdentifier() callback.
(DateTimeEditElement):
Declare localeIdentifier(), which implements FieldOwner::localeIdentifier().
* html/shadow/DateTimeEditElement.cpp:
(WebCore::DateTimeEditElement::localeIdentifier):
Added. Returns EditControlOwner::localeIdentifier if m_editControlOwner is available.

* html/BaseMultipleFieldsDateAndTimeInputType.h:
(BaseMultipleFieldsDateAndTimeInputType): Declare localeIdentifier(),
which implements EditControlOwner::localeIdentifier().
* html/BaseMultipleFieldsDateAndTimeInputType.cpp:
(WebCore::BaseMultipleFieldsDateAndTimeInputType::localeIdentifier):
Added. Returns <input>'s inherited locale identifier.

LayoutTests:

* platform/chromium/TestExpectations:
Need rebaseline for non-Mac results.
* platform/chromium/fast/forms/time-multiple-fields/time-multiple-fields-localization-expected.txt:
Update "ar" locale result.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129832 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Remove unused PlatformSupport reference in WebFrameImpl
https://bugs.webkit.org/show_bug.cgi?id=97842

Reviewed by Kentaro Hara.

Part of a refactoring series. See tracking bug 82948.

* src/WebFrameImpl.cpp:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129833 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Remove unused PlatformSupport reference in ClipboardChromium
https://bugs.webkit.org/show_bug.cgi?id=97840

Reviewed by Kentaro Hara.

Part of a refactoring series. See tracking bug 82948.

* platform/chromium/ClipboardChromium.cpp:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129834 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Clean up includes in AudioDestinationChromium
https://bugs.webkit.org/show_bug.cgi?id=97845

Reviewed by Kentaro Hara.

Part of a refactoring series. See tracking bug 82948.

* src/AudioDestinationChromium.cpp:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129835 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Clean up includes in SocketStreamHandle
https://bugs.webkit.org/show_bug.cgi?id=97843

Reviewed by Kentaro Hara.

Part of a refactoring series. See tracking bug 82948.

* src/SocketStreamHandle.cpp:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129836 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium][Android] Remove unused PlatformSupport reference in ScrollbarThemeChromiumAndroid
https://bugs.webkit.org/show_bug.cgi?id=97846

Reviewed by Kentaro Hara.

Part of a refactoring series. See tracking bug 82948.

* platform/chromium/ScrollbarThemeChromiumAndroid.cpp:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129837 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Clean up includes in PaintAggregator
https://bugs.webkit.org/show_bug.cgi?id=97848

Reviewed by Kentaro Hara.

Part of a refactoring series. See tracking bug 82948.

* src/painting/PaintAggregator.cpp:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129838 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Clean up includes in ColorChooserUIController
https://bugs.webkit.org/show_bug.cgi?id=97849

Reviewed by Kentaro Hara.

Part of a refactoring series. See tracking bug 82948.

* src/ColorChooserUIController.cpp:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129839 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Remove unused PlatformSupport reference in FontCacheSkia
https://bugs.webkit.org/show_bug.cgi?id=97850

Reviewed by Kentaro Hara.

Part of a refactoring series. See tracking bug 82948.

* platform/graphics/skia/FontCacheSkia.cpp:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129840 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Clean up includes in DateTimeChooserImpl
https://bugs.webkit.org/show_bug.cgi?id=97847

Reviewed by Kentaro Hara.

Part of a refactoring series. See tracking bug 82948.

* src/DateTimeChooserImpl.cpp:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129841 268f45cc-cd09-0410-ab3c-d52691b4dbfc
requestAnimationFrame broken with subframes (DisplayRefreshMonitorManager::registerClient fails to register client)
https://bugs.webkit.org/show_bug.cgi?id=95360

Patch by Andrew Lo <anlo@rim.com> on 2012-09-27
Reviewed by Simon Fraser.

Remove unnecessary code introduced in http://trac.webkit.org/changeset/129808.

No new tests because it's already covered by fast/animation/request-animation-frame-iframe2.html.

* platform/graphics/DisplayRefreshMonitor.cpp:
(WebCore::DisplayRefreshMonitor::addClient):
(WebCore::DisplayRefreshMonitorManager::ensureMonitorForClient):

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