[EFL] Add baseline for css3/masking test cases
https://bugs.webkit.org/show_bug.cgi?id=96235

Unreviewed EFL gardening.

Generate baselines for css3/masking test cases added
in r127608.

Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-09-10

* platform/efl/TestExpectations:
* platform/efl/css3/masking/clip-path-circle-expected.png: Added.
* platform/efl/css3/masking/clip-path-circle-expected.txt: Added.
* platform/efl/css3/masking/clip-path-circle-filter-expected.png: Added.
* platform/efl/css3/masking/clip-path-circle-filter-expected.txt: Added.
* platform/efl/css3/masking/clip-path-circle-overflow-expected.png: Added.
* platform/efl/css3/masking/clip-path-circle-overflow-expected.txt: Added.
* platform/efl/css3/masking/clip-path-circle-overflow-hidden-expected.png: Added.
* platform/efl/css3/masking/clip-path-circle-overflow-hidden-expected.txt: Added.
* platform/efl/css3/masking/clip-path-circle-relative-overflow-expected.png: Added.
* platform/efl/css3/masking/clip-path-circle-relative-overflow-expected.txt: Added.
* platform/efl/css3/masking/clip-path-ellipse-expected.png: Added.
* platform/efl/css3/masking/clip-path-ellipse-expected.txt: Added.
* platform/efl/css3/masking/clip-path-polygon-evenodd-expected.png: Added.
* platform/efl/css3/masking/clip-path-polygon-evenodd-expected.txt: Added.
* platform/efl/css3/masking/clip-path-polygon-expected.png: Added.
* platform/efl/css3/masking/clip-path-polygon-expected.txt: Added.
* platform/efl/css3/masking/clip-path-polygon-nonzero-expected.png: Added.
* platform/efl/css3/masking/clip-path-polygon-nonzero-expected.txt: Added.
* platform/efl/css3/masking/clip-path-rectangle-expected.png: Added.
* platform/efl/css3/masking/clip-path-rectangle-expected.txt: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128024 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Several fast/block test cases need rebaseline after r127163
https://bugs.webkit.org/show_bug.cgi?id=96237

Unreviewed EFL gardening.

Rebaseline 4 fast/block test cases due to r127163.

Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-09-10

* platform/efl/TestExpectations:
* platform/efl/fast/block/float/024-expected.png:
* platform/efl/fast/block/float/024-expected.txt:
* platform/efl/fast/block/margin-collapse/025-expected.txt:
* platform/efl/fast/block/margin-collapse/block-inside-inline/025-expected.txt:
* platform/efl/fast/block/margin-collapse/empty-clear-blocks-expected.png:
* platform/efl/fast/block/margin-collapse/empty-clear-blocks-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128025 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt][WK2] REGRESSION(r127861): It made one test fail and one test crash
https://bugs.webkit.org/show_bug.cgi?id=96243

Unreviewed gardening, skip new failing and crashing tests to paint the bot green.

* platform/qt-5.0-wk2/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128026 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Several test cases need rebaseline after bug 88171
https://bugs.webkit.org/show_bug.cgi?id=96240

Unreviewed EFL gardening.

Rebaseline 3 test cases due to bug 88171. The output
is much better now.

Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-09-10

* platform/efl/TestExpectations:
* platform/efl/css1/formatting_model/floating_elements-expected.png: Added.
* platform/efl/css1/formatting_model/floating_elements-expected.txt:
* platform/efl/fast/block/float/010-expected.png:
* platform/efl/fast/block/float/010-expected.txt:
* platform/efl/fast/block/float/independent-align-positioning-expected.png:
* platform/efl/fast/block/float/independent-align-positioning-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128027 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Unskip 2 test cases fixed in r127987
https://bugs.webkit.org/show_bug.cgi?id=96234

Unreviewed EFL gardening.

Unskip 2 test cases that are now passing consistently
after r127987.

Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-09-10

* platform/efl/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128028 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Several CSS 2.1 need rebaseline after bug 93148
https://bugs.webkit.org/show_bug.cgi?id=96241

Unreviewed EFL gardening.

Rebaseline several CSS 2.1 due to bug 93148.

Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-09-10

* platform/efl/TestExpectations:
* platform/efl/fast/css/nested-layers-with-hover-expected.txt: Added.
* platform/efl/tables/mozilla_expected_failures/bugs/bug106966-expected.png:
* platform/efl/tables/mozilla_expected_failures/bugs/bug106966-expected.txt:
* platform/efl/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tbody-expected.png:
* platform/efl/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tbody-expected.txt:
* platform/efl/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tr-expected.png:
* platform/efl/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tr-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128029 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WK2] New fast/forms/number/number-interactive-validation-required.html fails
https://bugs.webkit.org/show_bug.cgi?id=95936

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

Source/WebKit2:

Add WKPreference private API for manipulate the interactive form
validation setting. This is now needed by WebKitTestRunner.

* Shared/WebPreferencesStore.h:
(WebKit):
* UIProcess/API/C/WKPreferences.cpp:
(WKPreferencesSetInteractiveFormValidationEnabled):
(WKPreferencesGetInteractiveFormValidationEnabled):
* UIProcess/API/C/WKPreferencesPrivate.h:
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::updatePreferences):

Tools:

Enable interactive form validation setting in WebKitTestRunner as
we are currently doing in DumpRenderTree. This is needed for some
tests to pass.

* WebKitTestRunner/TestController.cpp:
(WTR::TestController::resetStateToConsistentValues):

LayoutTests:

Unskip fast/forms/number/number-interactive-validation-required.html for
several WebKit2 ports now that the interactive form validation setting is
enabled in WebKitTestRunner.

* platform/efl-wk2/TestExpectations:
* platform/qt-5.0-wk2/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128030 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Replace calls to QString::fromAscii which is deprecated in Qt5
https://bugs.webkit.org/show_bug.cgi?id=96242

Patch by Kevin Funk <kevin.funk@kdab.com> on 2012-09-10
Reviewed by Simon Hausmann.

Replace with QString::fromLatin1 which does the same.

Source/WebCore:

* bridge/qt/qt_runtime.cpp:

Source/WebKit2:

* UIProcess/API/qt/tests/qrawwebview/tst_qrawwebview.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128031 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] fast/forms/menulist-restrict-line-height.html is failing
https://bugs.webkit.org/show_bug.cgi?id=94878

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

Source/WebCore:

<select> element's text is no longer clipped when a CSS
line-height is specified. The fix is the same as for
Mac port in r24886.

Test: fast/forms/menulist-restrict-line-height.html

* platform/efl/RenderThemeEfl.cpp:
(WebCore::RenderThemeEfl::adjustMenuListStyle):

LayoutTests:

Generate baseline for fast/forms/menulist-restrict-line-height.html
and unskip the test now that <select> element's text is no longer
clipped when a CSS line-height is specified.

* platform/efl/TestExpectations:
* platform/efl/fast/forms/menulist-restrict-line-height-expected.png: Added.
* platform/efl/fast/forms/menulist-restrict-line-height-expected.txt: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128032 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WK2] Make WK2 C API headers compile in the Qt build on Windows
https://bugs.webkit.org/show_bug.cgi?id=96246

Patch by Simon Hausmann <simon.hausmann@nokia.com> on 2012-09-10
Reviewed by Kenneth Rohde Christiansen.

WKBase.h and WKAPICast.h include files that are specific to the Safari/Windows
port if WIN32 or _WIN32 is defined. When building WebKit2 on Windows with Qt, we
do not want to include these files, as they define an API that is different to ours
(the view aspect differs). Therefore guard the inclusion with !defined(BUILDING_QT__)

* Shared/API/c/WKBase.h:
* UIProcess/API/C/WKAPICast.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128033 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix build of WTR with Qt on Windows
https://bugs.webkit.org/show_bug.cgi?id=96249

Patch by Simon Hausmann <simon.hausmann@nokia.com> on 2012-09-10
Reviewed by Kenneth Rohde Christiansen.

Windows loves to define min and max as macros, which beautifully
clashes in many places where min and max are used as variable or method
names. It can be convinced not to do this when min and max are already
define as macros (expanding to themselves). We have this kind of
workaround in config.h files all over WebKit and as it turns out when
building WTR with Qt on Windows we do end up with such a clash. Therefore
we need the same workaround.

* WebKitTestRunner/config.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128034 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt][WK2] QWebKitTest should retrieve the viewport state from the PageViewportController
https://bugs.webkit.org/show_bug.cgi?id=96106

Reviewed by Simon Hausmann.

The functions in PageViewportControllerClientQt proxying the
viewport state values can be removed if QWebKitTest uses the
PageViewportController to retrieve these values.

* UIProcess/API/qt/qquickwebview_p_p.h:
(QQuickWebViewPrivate::viewportController):
* UIProcess/API/qt/qwebkittest.cpp:
(QWebKitTest::viewport):
(QWebKitTest::devicePixelRatio):
(QWebKitTest::contentsScale):
* UIProcess/PageViewportController.h:
(WebKit::PageViewportController::currentContentsScale):
* UIProcess/qt/PageViewportControllerClientQt.cpp:
* UIProcess/qt/PageViewportControllerClientQt.h:
(PageViewportControllerClientQt):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128035 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Fix linking of QtWebKit.dll on Windows
https://bugs.webkit.org/show_bug.cgi?id=96250

Patch by Simon Hausmann <simon.hausmann@nokia.com> on 2012-09-10
Reviewed by Kenneth Rohde Christiansen.

On Windows when using ANGLE, the DLL import library of EGL is called libEGL.lib instead of EGL.lib.
However as it turns out we do not need to explicitly link against EGL, because when Qt is configured with ANGLE
support it will do that automatically for us.

* WebCore.pri:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128036 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. Fix make distcheck.

Source/JavaScriptCore:

* GNUmakefile.list.am: Add missing files.

Source/WebCore:

* GNUmakefile.list.am: Add missing header files.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128037 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] WK2 build fixes for MSVC
https://bugs.webkit.org/show_bug.cgi?id=96248

Patch by Simon Hausmann <simon.hausmann@nokia.com> on 2012-09-10
Reviewed by Tor Arne Vestbø.

MSVC is picky when it comes to the use of forward declaration and the use of
such forward declared types in templates. In these instances inline functions were
passed parameters in RefPtrs that were only forward declared, but at compile time
MSVC wants to know what type it is in order to completely instantiate RefPtr (which
needs to call the type destructor for example). Therefore this patch resolves a couple
of forward declarations with direct header file inclusions.

* UIProcess/API/qt/raw/qrawwebview_p_p.h:
* UIProcess/InspectorServer/WebSocketServerClient.h:
* UIProcess/qt/QtPageClient.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128038 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] 2 fast/forms tests need rebaseline after r128032
https://bugs.webkit.org/show_bug.cgi?id=96253

Unreviewed EFL gardening.

Rebaseline 2 fast/forms tests due to r128032.

Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-09-10

* platform/efl/fast/forms/control-restrict-line-height-expected.png:
* platform/efl/fast/forms/control-restrict-line-height-expected.txt:
* platform/efl/fast/forms/menulist-restrict-line-height-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128039 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt][WK2] REGRESSION(r127861): It made one test fail and one test crash
https://bugs.webkit.org/show_bug.cgi?id=96243

Reviewed by Kenneth Rohde Christiansen.

Skip the code if QClipboard is not available, and give WebCore a chance to handle the event first.

* WebProcess/WebPage/WebPage.cpp:
(WebKit::handleMouseEvent):
* WebProcess/WebPage/qt/WebPageQt.cpp:
(WebKit::WebPage::handleMouseReleaseEvent):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128040 268f45cc-cd09-0410-ab3c-d52691b4dbfc
http/tests/security/contentSecurityPolicy/blob-urls-match-self.html fails on Windows port
https://bugs.webkit.org/show_bug.cgi?id=96133

Patch by Mike West <mkwst@chromium.org> on 2012-09-10
Reviewed by Jochen Eisinger.

Blob is indeed disabled on Windows. Moving this skipped test up with
the other ENABLE(BLOB) tests so that it can be reenabled when BLOB
rolls in.

* platform/win/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128041 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore: Warn authors about CSP directives ignored due to non-ASCII values.
https://bugs.webkit.org/show_bug.cgi?id=96061

Patch by Mike West <mkwst@chromium.org> on 2012-09-10
Reviewed by Adam Barth.

CSP defines directive values as VCHAR minus ';' and ','. Currently, we
ignore these directives completely in CSPDirectiveList::parseDirective,
but we don't warn authors. We ought to set their expectations correctly,
and help them fix issues in their policy.

This patch adds a console warning for directives that are ignored, and
points authors to the wonderful world of percent-encoding for situations
where high-ASCII or Unicode (or whatever) characters are required.

Test: http/tests/security/contentSecurityPolicy/source-list-parsing-nonascii.html

* page/ContentSecurityPolicy.cpp:
(WebCore::CSPDirectiveList::parseDirective):
    Call ContentSecurityPolicy::reportInvalidDirectiveValueCharacter in
    order to report ignored directives.
(WebCore::ContentSecurityPolicy::reportInvalidDirectiveValueCharacter):
(WebCore):
* page/ContentSecurityPolicy.h:
    Add new error message.

LayoutTests: CSP parsing doesn't seem treat as invalid policies with a non-ASCII path
https://bugs.webkit.org/show_bug.cgi?id=96061

Patch by Mike West <mkwst@chromium.org> on 2012-09-10
Reviewed by Adam Barth.

* http/tests/security/contentSecurityPolicy/resources/multiple-iframe-test.js:
(testPreescapedPolicy):
(test):
(testImpl):
    To test non-ASCII characters, we need to ensure that we don't encode
    them when testing.
* http/tests/security/contentSecurityPolicy/source-list-parsing-04-expected.txt:
    Adding a warning for the policy here that contains an invalid
    character.
* http/tests/security/contentSecurityPolicy/source-list-parsing-nonascii-expected.txt: Added.
* http/tests/security/contentSecurityPolicy/source-list-parsing-nonascii.html: Added.
    Test paths with invalid characters.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128042 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: [Elements] Poor performance upon continuous attribute changes
https://bugs.webkit.org/show_bug.cgi?id=96252

Reviewed by Vsevolod Vlasov.

The DOM tree is now updated after a non-zero timeout, and same node updates are coalesced rather than added into an array
as many times as the DOM node has been tampered with during the update interval.

* inspector/front-end/ElementsTreeOutline.js:
* inspector/front-end/utilities.js: Implement Map.prototype.size

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