Unreviewed. Set svn:mime-type to image/png for PNG files without svn:mime-type.

* platform/qt-5.0-wk2/fast/forms/number/input-appearance-number-rtl-expected.png: Added property svn:mime-type.
* platform/qt-5.0-wk2/fast/forms/number/input-appearance-spinbutton-disabled-readonly-expected.png: Added property svn:mime-type.
* platform/qt-5.0-wk2/fast/forms/number/input-appearance-spinbutton-layer-expected.png: Added property svn:mime-type.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123186 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Fix an assertion failure in TextFieldDecorationElement::hostInput()
https://bugs.webkit.org/show_bug.cgi?id=91824

Reviewed by Hajime Morita.

No new tests. This code is used only in Chromium browser.

* html/shadow/TextFieldDecorationElement.cpp:
(WebCore::TextFieldDecorationElement::hostInput):
Use shadowHost(), and allow to return 0.
(WebCore::TextFieldDecorationElement::defaultEventHandler):
Check 0.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123187 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix crash in WebCore::HTMLInputElement::dataList
https://bugs.webkit.org/show_bug.cgi?id=91818

Reviewed by Kent Tamura.

Source/WebCore:

Fix crash that occurs when setting slider appearance on a regular node.

Test: fast/forms/range/slider-appearance-crash.html

* rendering/RenderTheme.cpp:
(WebCore::RenderTheme::paintSliderTicks): Check if node is an input element.

LayoutTests:

* fast/forms/range/slider-appearance-crash-expected.txt: Added.
* fast/forms/range/slider-appearance-crash.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123188 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WTR] Add *explicit* keyword to constructor which has a parameter
https://bugs.webkit.org/show_bug.cgi?id=91745

Reviewed by Adam Barth.

Add *explicit* keyword to contructor which has a parameter in order to avoid implicit type conversion.

* WebKitTestRunner/EventSenderProxy.h:
(EventSenderProxy):
* WebKitTestRunner/TestInvocation.h:
(TestInvocation):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123189 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. Set svn:mime-type to image/png for PNG files without svn:mime-type.

* platform/qt-5.0-wk2/fast/forms/number/input-appearance-number-rtl-expected.png: Added property svn:mime-type.
* platform/qt-5.0-wk2/fast/forms/number/input-appearance-spinbutton-disabled-readonly-expected.png: Added property svn:mime-type.
* platform/qt-5.0-wk2/fast/forms/number/input-appearance-spinbutton-layer-expected.png: Added property svn:mime-type.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123190 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION(r121420): Performance regression of form state saving for pages with multiple forms
https://bugs.webkit.org/show_bug.cgi?id=91804

Reviewed by Hajime Morita.

The complexity of FormKeyGenerator::formKey() was O(N) where N is the
number of form elements with an identical action URL, and formKey() is
called for every form. So, it's O(N^2). A page in www.reddit.com
contains hundreds of form elements with action="#". So FormController::
formElementsState() took a few seconds on a slow machine.

In order to avoid O(N^2) operation, storing a map from form signatures
to next index numbers, instead of storing existing formKey strings.

No new tests. Just a performance improvement.

* html/FormController.cpp:
(FormKeyGenerator): Remove m_existingKeys. Add a map from a form
signature string to the next index number.
(WebCore::formSignature): Returns a signature string for a form, without
an index number. This is like "actionURL [name1 name2 ]"
(WebCore::FormKeyGenerator::formKey):
Creates a formKey string by concatenating a formSignature and #n. N is
obtained from m_formSignatureToNextIndexMap in O(1).
(WebCore::FormKeyGenerator::willDeleteForm):
Remove the code for m_existingKeys.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123191 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Needs pseudo id to point the inner element of an img elemnet for styling
https://bugs.webkit.org/show_bug.cgi?id=91590

Reviewed by Hajime Morita.

Source/WebCore:

We introduce pseudo id to point the element in UserAgentShadowDOM.
This enables us to style the inner element of an img element shadow.
Please see also http://trac.webkit.org/wiki/ShadowDOMForReplacedElements

Test: fast/dom/shadow/shadowdom-for-image-with-pseudo-id.html

* html/shadow/ImageInnerElement.cpp:
(WebCore::ImageInnerElement::shadowPseudoId):
(WebCore):
* html/shadow/ImageInnerElement.h:
(ImageInnerElement):

LayoutTests:

Uses pseudo id to confirm the style is applied to the inner element of an img element shadow.

* fast/dom/shadow/shadowdom-for-image-with-pseudo-id-expected.html: Added.
* fast/dom/shadow/shadowdom-for-image-with-pseudo-id.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123192 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Show or hide <dialog> depending on the open attribute
https://bugs.webkit.org/show_bug.cgi?id=90931

Patch by Matt Falkenhagen <falken@chromium.org> on 2012-07-20
Reviewed by Kent Tamura.

Source/WebCore:

Test: fast/dom/HTMLDialogElement/dialog-open.html

* css/html.css: Add CSS for dialog. This is copied verbatim from the HTML5 spec: http://www.whatwg.org/specs/web-apps/current-work/#flow-content-1
(dialog:not([open])):
(dialog):
* html/HTMLDialogElement.cpp:
(WebCore::HTMLDialogElement::close): Set open to false, to hide the dialog.
(WebCore::HTMLDialogElement::show): Set open to true, to show the dialog.
(WebCore):
(WebCore::HTMLDialogElement::isPresentationAttribute): Make openAttr a presentation attribute, to work around bug 91058
* html/HTMLDialogElement.h:
(HTMLDialogElement):
* html/HTMLDialogElement.idl:

LayoutTests:

* fast/dom/HTMLDialogElement/dialog-open-expected.txt: Added.
* fast/dom/HTMLDialogElement/dialog-open.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123193 268f45cc-cd09-0410-ab3c-d52691b4dbfc
If value for responseType defined as type that not supported, it should not throw an exception in XHR 2
https://bugs.webkit.org/show_bug.cgi?id=90976

Reviewed by Alexey Proskuryakov.

Source/WebCore:

http://www.w3.org/TR/XMLHttpRequest2/#the-responsetype-attribute
The spec does not say it should throw an exception when a non-supported
type is set, and other browsers do not throw it either.

Test: fast/xmlhttprequest/xmlhttprequest-responsetype-set-type.html

* xml/XMLHttpRequest.cpp:
(WebCore::XMLHttpRequest::setResponseType): Stop throwing an exception when non-supported type is given.

LayoutTests:

Adding tests to see if setting invalid responseType does not throw an exception and does not change the value.

* fast/xmlhttprequest/xmlhttprequest-responsetype-set-invalidtype-expected.txt: Added.
* fast/xmlhttprequest/xmlhttprequest-responsetype-set-invalidtype.html: Added.
* fast/xmlhttprequest/xmlhttprequest-responsetype-arraybuffer-expected.txt:
* fast/xmlhttprequest/xmlhttprequest-responsetype-arraybuffer.html: Removed a line which tries to set invalid type (since we now have a separate test)

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123194 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed Mac build fix against r123184.

* WebCore.exp.in:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123195 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CSSRegions]Crash when flowing a region into itself
https://bugs.webkit.org/show_bug.cgi?id=90289

Reviewed by Andreas Kling.

If a region is designed to receive itself as content through a named flow, we avoid
a circular dependency by not attaching the region to the desired named flow.
In such occasions, the region's attached flow thread object is null and
we have to check this pointer before using it in RenderRegion::styleDidChange.

Source/WebCore:

Test: fast/regions/flow-region-into-itself-crash.html

* rendering/RenderRegion.cpp:
(WebCore::RenderRegion::styleDidChange):

LayoutTests:

* fast/regions/flow-region-into-itself-crash-expected.txt: Added.
* fast/regions/flow-region-into-itself-crash.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123196 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Another unreviewed Mac build fix against r123184.

* WebCore.exp.in:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123197 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Timeline: forward compatibility for load.
https://bugs.webkit.org/show_bug.cgi?id=91714

Patch by Eugene Klyuchnikov <eustas.big@gmail.com> on 2012-07-20
Reviewed by Pavel Feldman.

Accept records of unrecognized types and render them as "unknown".

Source/WebCore:

Test: inspector/timeline/timeline-load-incompatible.html

* English.lproj/localizedStrings.js: Added UI string.
* inspector/front-end/TimelinePresentationModel.js:
(WebInspector.TimelinePresentationModel.recordStyle): Add missing record
styles at runtime.
(WebInspector.TimelinePresentationModel.Record.prototype._getRecordDetails):
Add some common information for default case.

LayoutTests:

* inspector/timeline/timeline-load-incompatible-expected.txt: Added.
* inspector/timeline/timeline-load-incompatible.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123198 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL][WK2] Use "load,finished" signal in EWK2UnitTestBase::loadUrlSync() instead of "load,progress"
https://bugs.webkit.org/show_bug.cgi?id=91721

Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-07-20
Reviewed by Kenneth Rohde Christiansen.

The purpose of EWK2UnitTestBase::loadUrlSync() is to load
a URL in the view and wait synchronously for the load to finish.
The current implementation uses the "load,progress" signal to
detect when the load is finished, which is inefficient because
it gets emitted several times.

It is better to wait for the "load,finished" signal which gets
emitted only once when the load is complete.

* UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp:
(EWK2UnitTest::onLoadFinished):
(EWK2UnitTest::EWK2UnitTestBase::EWK2UnitTestBase):
(EWK2UnitTest::EWK2UnitTestBase::loadUrlSync):
* UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.h:
(EWK2UnitTestBase):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123199 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, rolling out r123085.
http://trac.webkit.org/changeset/123085
https://bugs.webkit.org/show_bug.cgi?id=91719

r123085 causes crashes on EFL layout test bot.

Source/WebKit2:

* UIProcess/efl/WebContextEfl.cpp:
(WebKit::WebContext::applicationCacheDirectory):

Tools:

* WebKitTestRunner/CMakeLists.txt:
* WebKitTestRunner/InjectedBundle/efl/LayoutTestControllerEfl.cpp:
(WTR::LayoutTestController::platformInitialize):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123200 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Unreviewed gardening after r123192. Skipped a new test.

Patch by János Badics <jbadics@inf.u-szeged.hu> on 2012-07-20

* platform/qt/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123201 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Check parameters of ewk APIs in ewk_security_origin
https://bugs.webkit.org/show_bug.cgi?id=91833

Patch by Kihong Kwon <kihong.kwon@samsung.com> on 2012-07-20
Reviewed by Kentaro Hara.

For preventing crash, check parameters of ewk APIs in the ewk_security_origin.cpp.

* ewk/ewk_security_origin.cpp:
(ewk_security_origin_port_get):
(ewk_security_origin_web_database_usage_get):
(ewk_security_origin_web_database_quota_get):
(ewk_security_origin_web_database_quota_set):
(ewk_security_origin_application_cache_quota_set):
(ewk_security_origin_application_cache_clear):
(ewk_security_origin_web_database_get_all):
(ewk_security_origin_free):
* ewk/ewk_security_origin.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123202 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL][WK2][WTR] Implement EventSenderProxy
https://bugs.webkit.org/show_bug.cgi?id=91731

Patch by Kangil Han <kangil.han@samsung.com> on 2012-07-20
Reviewed by Kentaro Hara.

This is an initial EFL port implementation of EventSenderProxy.

* WebKitTestRunner/EventSenderProxy.h:
(WTR):
(EventSenderProxy):
* WebKitTestRunner/InjectedBundle/EventSendingController.h:
* WebKitTestRunner/PlatformEfl.cmake:
* WebKitTestRunner/TestController.cpp:
(WTR::TestController::TestController):
(WTR::TestController::didReceiveSynchronousMessageFromInjectedBundle):
* WebKitTestRunner/efl/EventSenderProxyEfl.cpp: Added.
(WTR):
(WTREvent):
(WTR::WTREvent::WTREvent):
(WTR::KeyEventInfo::KeyEventInfo):
(KeyEventInfo):
(WTR::evasMouseButton):
(WTR::setEvasModifiers):
(WTR::dispatchMouseDownEvent):
(WTR::dispatchMouseUpEvent):
(WTR::dispatchMouseMoveEvent):
(WTR::dispatchMouseScrollByEvent):
(WTR::keyPadName):
(WTR::keyName):
(WTR::EventSenderProxy::EventSenderProxy):
(WTR::EventSenderProxy::updateClickCountForButton):
(WTR::EventSenderProxy::dispatchEvent):
(WTR::EventSenderProxy::replaySavedEvents):
(WTR::EventSenderProxy::sendOrQueueEvent):
(WTR::EventSenderProxy::mouseDown):
(WTR::EventSenderProxy::mouseUp):
(WTR::EventSenderProxy::mouseMoveTo):
(WTR::EventSenderProxy::mouseScrollBy):
(WTR::EventSenderProxy::leapForward):
(WTR::EventSenderProxy::keyDown):
(WTR::EventSenderProxy::addTouchPoint):
(WTR::EventSenderProxy::updateTouchPoint):
(WTR::EventSenderProxy::setTouchModifier):
(WTR::EventSenderProxy::touchStart):
(WTR::EventSenderProxy::touchMove):
(WTR::EventSenderProxy::touchEnd):
(WTR::EventSenderProxy::touchCancel):
(WTR::EventSenderProxy::clearTouchPoints):
(WTR::EventSenderProxy::releaseTouchPoint):
(WTR::EventSenderProxy::cancelTouchPoint):
(WTR::EventSenderProxy::setTouchPointRadius):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123203 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Gardening of failing tests
https://bugs.webkit.org/show_bug.cgi?id=91838

Unreviewed EFL gardening. Add failing tests to the Test Expectations.

Patch by Sudarsana Nagineni <sudarsana.nagineni@linux.intel.com> on 2012-07-20

* platform/efl/TestExpectations:
* platform/efl/fast/forms/state-restore-skip-stateless-expected.txt: Removed
the platform specific expected after r123066.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123204 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Protocol Extension: add getNamedFlowCollection command
https://bugs.webkit.org/show_bug.cgi?id=91607

Patch by Andrei Poenaru <poenaru@adobe.com> on 2012-07-20
Reviewed by Pavel Feldman.

Source/WebCore:

Extended the protocol with "getNamedFlowCollection" command.
This command returns the CSS Named Flows from the document.

Test: inspector/styles/protocol-getNamedFlowCollection-command.html

* dom/WebKitNamedFlowCollection.cpp:
(WebCore::WebKitNamedFlowCollection::namedFlowsNames):
(WebCore):
* dom/WebKitNamedFlowCollection.h:
(WebKitNamedFlowCollection):
* inspector/Inspector.json:
* inspector/InspectorCSSAgent.cpp:
(WebCore::InspectorCSSAgent::getNamedFlowCollection):
(WebCore):
* inspector/InspectorCSSAgent.h:
(InspectorCSSAgent):
* inspector/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::assertDocument):
(WebCore):
* inspector/InspectorDOMAgent.h:
(InspectorDOMAgent):
* inspector/front-end/CSSStyleModel.js:
(WebInspector.CSSStyleModel.prototype.getNamedFlowCollectionAsync):

LayoutTests:

The test builds a webpage with 3 Named Flows in the main frame and 1 Named Flow in an iframe.
Because the getNamedFlowCollection command is executed with the main document node id as an argument,
it should return only the first 3 Named Flows.

* inspector/styles/protocol-getNamedFlowCollection-command-expected.txt: Added.
* inspector/styles/protocol-getNamedFlowCollection-command.html: Added.

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