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