Remove RuntimeEnabledFeatures::isPointerLockEnabled.
https://bugs.webkit.org/show_bug.cgi?id=102107

Reviewed by Adam Barth.

The runtime flag is always true now that the feature is enabled by default in Chromium.

Source/WebCore:

* bindings/generic/RuntimeEnabledFeatures.cpp:
(WebCore):
* bindings/generic/RuntimeEnabledFeatures.h:
(RuntimeEnabledFeatures):
* dom/Document.idl:
* dom/Element.idl:
* dom/MouseEvent.idl:

Source/WebKit/chromium:

* public/WebRuntimeFeatures.h:
(WebRuntimeFeatures):
* src/WebRuntimeFeatures.cpp:
(WebKit):
(WebKit::WebRuntimeFeatures::enablePointerLock):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134557 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Use menulist-button instead of menulist for date/time input types
https://bugs.webkit.org/show_bug.cgi?id=101886

Reviewed by Hajime Morita.

Both of Chromium-Android and iOS use -webkit-appearance:menulist-button,
not menulist. We had better apply common one by default.

No new tests. Covered by fast/forms/*/*-appearance-*.html.

* css/html.css:
(input[type="date"]): Switch menulist-button from menulist.
(input[type="datetime"]): Ditto.
(input[type="datetime-local"]): Ditto.
(input[type="month"]): Ditto.
(input[type="time"]): Ditto.
(input[type="week"]): Ditto.
(input::-webkit-date-and-time-value):
Add top, right, bottom margins. The right margin is important when
dir=rtl is specified.
whitespace:pre is needed to align baseline in a case of empty values.
* css/themeChromiumAndroid.css:
Remove redundant style declaration.
* css/themeWin.css:
Remove padding adjustment for date/time input types. It is for
textfields.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134558 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Implementation for mehods in WebMutableURLRequest.cpp
https://bugs.webkit.org/show_bug.cgi?id=83671

Patch by George Tsoumalis <tsumalis96@gmail.com> on 2012-11-14
Reviewed by Brent Fulgham..

* WebMutableURLRequest.cpp:
(WebMutableURLRequest::addValue):
(WebMutableURLRequest::setMainDocumentURL):
(WebMutableURLRequest::setHTTPShouldHandleCookies):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134559 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Add API to expose WebCore::DateTimeChooser
https://bugs.webkit.org/show_bug.cgi?id=101196

Reviewed by Hajime Morita.

Add ability to open date/time choosers to WebViewClient.

- ExternalDateTimeChooser forwards DateTimeChooser requests from WebCore
  to WebViewClient, and waits for WebDateTimeChooerCompletion notifications.
- WebDateTimeChooserParams contains various information to create
  chooser UI.
- WebDateTimeChooserCompletion informs value selection by users to
  ExternalDateTimeChooser.

The design is very similar to existing WebFileChooserParams and
WebFileChooserCompletion.

These interfaces are used only if ENABLE_INPUT_MULTIPLE_FIELDS_UI is not
enabled, that is to say, in Chromium-Android port. Non-Android Chromium
ports use DateTimeChooserImpl and WebKit-internal choosers.

* WebKit.gyp: Add WebDateTimeChooserCompletion.h,
WebDateTimeChooserParams.h, ExternalDateTimeChooser.cpp, and
ExternalDateTimeChooser.h.
* public/WebDateTimeChooserCompletion.h: Added.
(WebDateTimeChooserCompletion):
(WebKit::WebDateTimeChooserCompletion::~WebDateTimeChooserCompletion):
* public/WebDateTimeChooserParams.h: Added.
(WebDateTimeChooserParams):
(WebKit::WebDateTimeChooserParams::WebDateTimeChooserParams):
* public/WebViewClient.h:
(WebKit): Add some forward declarations.
(WebKit::WebViewClient::openDateTimeChooser): Added.
* src/ChromeClientImpl.cpp:
(WebKit::ChromeClientImpl::openDateTimeChooser):
Creates ExternalDateTimeChooser if !ENABLE(INPUT_MULTIPLE_FIELDS_UI).
* src/ExternalDateTimeChooser.cpp: Added.
(WebDateTimeChooserCompletionImpl): An implementation of
WebDateTimeChooserCompletion. When didChooseValue or didCancelChooser is
called, it notifies to an ExternalDateTimeChooser and kill itself.
(WebKit::ExternalDateTimeChooser::~ExternalDateTimeChooser): Added.
(WebKit::ExternalDateTimeChooser::ExternalDateTimeChooser): Added.
(WebKit::ExternalDateTimeChooser::create):
Cretes an object, then asks the WebViewClient to open date/time chooser.
If an open request fails, an empty PassRefPtr<> is returned.
We don't ask to open in the constructor because open requests might fail
and it's hard for the constructor to tell the failure.
(WebKit::ExternalDateTimeChooser::openDateTimeChooser): Prepares a
WebDateTimeChooserParams and a WebDateTimeChooserCompletion, calls
WebViewClient::openDateTimeChooser, and kill the
WebDateTimeChooserCompletion if openDateTimeChooser fails.
(WebKit::ExternalDateTimeChooser::didChooseValue):
Called by WebDateTimeChooserCompletion.
We need to check m_client because the requester is already dead.
(WebKit::ExternalDateTimeChooser::didCancelChooser): Ditto.
(WebKit::ExternalDateTimeChooser::endChooser):
Called by the requester when it wants to close the chooser.
We don't close the chooser here, and just disconnect the association of
the client and this object.
* src/ExternalDateTimeChooser.h: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134560 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: CodeMirrorTextEditor fails to scroll breakpoint into view after the first time
https://bugs.webkit.org/show_bug.cgi?id=102142

Patch by Jan Keromnes <janx@linux.com> on 2012-11-14
Reviewed by Pavel Feldman.

Calling revealLine in highlightLine like in DefaultTextEditor does the trick.

* inspector/front-end/CodeMirrorTextEditor.js:
(WebInspector.CodeMirrorTextEditor.prototype.highlightLine):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134561 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove MemoryInstrumentationTest.ImageObserver
https://bugs.webkit.org/show_bug.cgi?id=102185

Reviewed by Pavel Feldman.

Removed obsolete memory instrumenation unit test.

* WebKit.gypi:
* tests/MemoryInstrumentationTest.cpp: Removed.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134562 268f45cc-cd09-0410-ab3c-d52691b4dbfc
After r134205 was rolled out in http://trac.webkit.org/changeset/134425,
we have to re-enable the skipped tests that were failing because of r134205.
https://bugs.webkit.org/show_bug.cgi?id=102090

Reviewed by Adam Barth.

The initial rollout for r134205 and the related r134226, r134419 failed.

* platform/chromium/TestExpectations:
* platform/qt/TestExpectations:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134563 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Show total memory in the NMI snapshot header
https://bugs.webkit.org/show_bug.cgi?id=101922

Patch by Alexei Filippov <alph@chromium.org> on 2012-11-14
Reviewed by Pavel Feldman.

* inspector/front-end/NativeMemorySnapshotView.js:
(WebInspector.NativeMemoryProfileType.prototype.buttonClicked.didReceiveMemorySnapshot):
(WebInspector.NativeMemoryProfileType.prototype.buttonClicked):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134564 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed GTK gardening.

Moving some expectations into a more proper section while
merging the others.

* platform/gtk/TestExpectations:


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