[Qt] Couple of tests have different results on 64 bit and/or in debug mode compared to 32 bit and/or release mode
https://bugs.webkit.org/show_bug.cgi?id=52810

* platform/qt/Skipped: Skip a new failing test: svg/custom/image-with-transform-clip-filter.svg

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@91842 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Unreviewed build fix for mac.

QtKit is now our default media player, the define is WTF_USE_QTKIT and it's not part
of the options passed to build-webkit, therefore DerivedSources should now generate the
includes when it's mac.

* DerivedSources.pro:
* WebCore.pro:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@91843 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt][V8] Fix the build.

Unreviewed build fix.

No new tests needed.

* platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: Add missing CString.h include.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@91844 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Fix build in Qt 5 of QDeclarativeWebView
https://bugs.webkit.org/show_bug.cgi?id=65258

Reviewed by Andreas Kling.

In Qt 5, the QGraphicsView-based classes for QtQuick are in the
qtquick1 module, including QDeclarativeItem and QDeclarativeView.

.:

* Source/WebKit.pro:

Source/WebKit/qt:

* declarative/qdeclarativewebview_p.h:
* tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
* tests/tests.pri:
* tests/tests.pro:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@91845 268f45cc-cd09-0410-ab3c-d52691b4dbfc
New chromium-linux baselines after skia change
http://code.google.com/p/skia/source/detail?r=1924.

Unreviewed.

* platform/chromium-linux/fast/backgrounds/repeat/negative-offset-repeat-transformed-expected.png:
* platform/chromium-linux/fast/forms/placeholder-position-expected.png:
* platform/chromium-linux/fast/transforms/transform-on-inline-expected.png:
* platform/chromium-linux/fast/transforms/transform-table-row-expected.png:
* platform/chromium-linux/fast/transforms/transformed-document-element-expected.png:
* platform/chromium-linux/fonts/cursive-expected.txt: Added.
* platform/chromium-linux/fonts/fantasy-expected.txt:
* platform/chromium-linux/media/audio-repaint-expected.png:
* platform/chromium-linux/svg/W3C-SVG-1.1/text-path-01-b-expected.png:
* platform/chromium-linux/svg/W3C-SVG-1.1/text-text-07-t-expected.png:
* platform/chromium-linux/svg/W3C-SVG-1.1/types-basicDOM-01-b-expected.png:
* platform/chromium-linux/svg/batik/text/textGlyphOrientationHorizontal-expected.png:
* platform/chromium-linux/svg/batik/text/textLayout2-expected.png:
* platform/chromium-linux/svg/batik/text/textOnPath2-expected.png:
* platform/chromium-linux/svg/batik/text/textOnPath3-expected.png:
* platform/chromium-linux/svg/batik/text/textOnPathSpaces-expected.png:
* platform/chromium-linux/svg/batik/text/verticalText-expected.png:
* platform/chromium-linux/svg/batik/text/verticalTextOnPath-expected.png:
* platform/chromium-linux/svg/custom/focus-ring-expected.png:
* platform/chromium-linux/svg/custom/foreign-object-skew-expected.png:
* platform/chromium-linux/svg/custom/linking-a-03-b-all-expected.png:
* platform/chromium-linux/svg/custom/linking-a-03-b-viewBox-transform-expected.png:
* platform/chromium-linux/svg/custom/text-dom-01-f-expected.png:
* platform/chromium-linux/svg/custom/text-linking-expected.png:
* platform/chromium-linux/svg/custom/text-rotated-gradient-expected.png:
* platform/chromium-linux/svg/custom/text-rotation-expected.png:
* platform/chromium-linux/svg/custom/use-on-disallowed-foreign-object-1-expected.png:
* platform/chromium-linux/svg/custom/use-on-disallowed-foreign-object-2-expected.png:
* platform/chromium-linux/svg/custom/use-on-disallowed-foreign-object-4-expected.png:
* platform/chromium-linux/svg/custom/use-on-disallowed-foreign-object-5-expected.png:
* platform/chromium-linux/svg/custom/use-on-disallowed-foreign-object-6-expected.png:
* platform/chromium-linux/svg/custom/use-on-non-svg-namespaced-element-expected.png:
* platform/chromium-linux/svg/dynamic-updates/SVGTextElement-dom-rotate-attr-expected.png:
* platform/chromium-linux/svg/text/text-path-01-b-expected.png:
* platform/chromium-linux/svg/text/text-path-middle-align-expected.png:
* platform/chromium-linux/svg/text/text-text-07-t-expected.png:
* platform/chromium-linux/svg/wicd/test-scalable-background-image2-expected.png:
* platform/chromium-linux/svg/zoom/page/zoom-foreignObject-expected.png:
* platform/chromium-linux/svg/zoom/text/zoom-foreignObject-expected.png:
* platform/chromium-linux/transforms/2d/compound-transforms-vs-containers-expected.png:
* platform/chromium/test_expectations.txt:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@91846 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Pass on the suggested name for download file to the client.
https://bugs.webkit.org/show_bug.cgi?id=65181

Patch by Sadrul Habib Chowdhury <sadrul@chromium.org> on 2011-07-27
Reviewed by Darin Fisher.

* src/FrameLoaderClientImpl.cpp:
(WebKit::FrameLoaderClientImpl::startDownload):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@91847 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Rebaseline one Chromium GPU test on Linux after
http://code.google.com/p/skia/source/detail?r=1924.

Unreviewed.

* platform/chromium-gpu-linux/compositing/shadows/shadow-drawing-expected.png:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@91848 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tighten up some chromium test expectations to green up the bots.

Unreviewed.

* platform/chromium/test_expectations.txt:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@91849 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-07-27  Rob Buis  <rbuis@rim.com>

        Implement getIntersectionList(), getEnclosureList(), checkIntersection() and checkEnclosure() in SVGSVGElement
        https://bugs.webkit.org/show_bug.cgi?id=11274

        Reviewed by Nikolas Zimmermann.

        Implement checkIntersection/checkEnclosure and use it to implement getIntersectionList and getEnclosureList as well.
        The referenceElement is used to provide a DOM subtree to find matches in. Also we do not allow elements that specify
        pointer-events=none in the list.

        Tests: svg/W3C-SVG-1.1-SE/struct-dom-11-f.svg
               svg/custom/intersection-list-clipping.svg
               svg/custom/intersection-list-nested-svg.svg

        * rendering/svg/RenderSVGModelObject.cpp:
        (WebCore::getElementCTM):
        (WebCore::intersectsAllowingEmpty):
        (WebCore::isGraphicsElement):
        (WebCore::RenderSVGModelObject::checkIntersection):
        (WebCore::RenderSVGModelObject::checkEnclosure):
        * rendering/svg/RenderSVGModelObject.h:
        * svg/SVGSVGElement.cpp:
        (WebCore::SVGSVGElement::checkIntersection):
        (WebCore::SVGSVGElement::checkEnclosure):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@91850 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WK2] Unreviewed gardening.

* platform/qt-wk2/Skipped: Skip new failing tests.
* platform/qt-wk2/fast/dom/Window/window-properties-expected.txt: Update after r91300.
* platform/wk2/Skipped: Skip tests because of missing layoutTestController implementation.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@91851 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Unreviewed gardening.

* platform/qt-wk2/Skipped: Skip failing tests after migration to Qt5.
* platform/qt/test_expectations.txt: Mark fast/js/array-sort-modifying-tostring.html as TIMEOUT PASS flakey test in debug mode.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@91852 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] svg/W3C-SVG-1.1-SE/styling-pres-02-f.svg fails
https://bugs.webkit.org/show_bug.cgi?id=65266

[Qt] Unreviewed gardening. Update Qt 4.8 specific expected files.

* platform/qt-4.8/fast/css/font-face-opentype-expected.png: Added.
* platform/qt-4.8/fast/css/font-face-opentype-expected.txt: Added.
* platform/qt-4.8/fast/css/font-family-pictograph-expected.png: Added.
* platform/qt-4.8/fast/css/font-family-pictograph-expected.txt: Added.
* platform/qt-4.8/svg/W3C-SVG-1.1-SE/painting-control-04-f-expected.png: Added.
* platform/qt-4.8/svg/W3C-SVG-1.1-SE/painting-control-04-f-expected.txt: Added.
* platform/qt-4.8/svg/custom/tref-own-content-removal-expected.png: Added.
* platform/qt-4.8/svg/custom/tref-own-content-removal-expected.txt: Added.
* platform/qt-wk2/fast/dom/Window/window-properties-expected.txt: Remove window.XSLTProcessor entries.
* platform/qt/Skipped: Skip a failing test: svg/W3C-SVG-1.1-SE/styling-pres-02-f.svg.
* platform/qt/svg/W3C-SVG-1.1-SE/painting-control-04-f-expected.png: Added.
* platform/qt/svg/W3C-SVG-1.1-SE/styling-pres-02-f-expected.txt: Removed.
* platform/qt/svg/W3C-SVG-1.1-SE/struct-dom-11-f-expected.png: Added after r91850.
* platform/qt/svg/W3C-SVG-1.1-SE/struct-dom-11-f-expected.txt: Added after r91850.
* platform/qt/svg/custom/tref-own-content-removal-expected.png: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@91853 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Mark more tests as being flaky.

Unreviewed gardening.

* platform/chromium/test_expectations.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@91854 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] QtWebkit never finishes loading sites when they are loaded after an initial QUrl fails to load.
https://bugs.webkit.org/show_bug.cgi?id=61328

Reviewed by Andreas Kling.

Change the hooks in FrameLoaderClient we use for emitting signals. Instead of
emitting signals in the progress notification functions, we use the
dispatchDid{Start,Finish,Fail}* functions. The main reason behind this change is
that loading code is prepared to handle load() when inside those functions.

The crash was being caused by setUrl() (and load()) being called when
loadFinished(false) was emitted. The problem here is that when
postProgressFinishedNotification the FrameLoader wasn't ready for taking a load()
call again, because it was still the ProvisionalLoadState but with the
provisionalDocumentLoader already removed.

To emulate the same behavior that QtWebKit had when using
postProgressFinishedNotification, we now keep track of the frame originating the
load, and emit the signals when this frame's client is called.

The patch keeps the existing semantics for QWebPage signals, but we now emit the
QWebFrame signals everytime, not only when they are the originating frame for
loading.

* Api/qwebframe.cpp:
(clearCoreFrame): Document our assumption that activeDocumentLoader will exist.

* WebCoreSupport/FrameLoaderClientQt.h: Remove m_loadError, add a boolean to keep
track whether the frame is originating the load. Remove the signals from
FrameLoaderClientQt since we will emit QWebFrame and QWebPage signals directly.

* WebCoreSupport/FrameLoaderClientQt.cpp:
(WebCore::FrameLoaderClientQt::FrameLoaderClientQt): Initialize m_isOriginatingLoad.

(WebCore::FrameLoaderClientQt::setFrame): Do not connect QWebFrame and QWebPage
signals to our signals for load/finished, signal emission will be done manually.

(WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad): Emit
loadStarted() signal and make the first notification of estimation change, that
Qt API tests expect to exist and notify 10%.

(WebCore::FrameLoaderClientQt::dispatchDidFinishLoad): Remove reference to
m_loadError and emit loadFinished() signal.

(WebCore::FrameLoaderClientQt::postProgressStartedNotification): Remove signal
emission and mark the originating load as true, since only the originating frame
gets this call in its client.

(WebCore::FrameLoaderClientQt::postProgressFinishedNotification): Remove signal
emission.

(WebCore::FrameLoaderClientQt::callErrorPageExtension): Return whether the call
was successful or not. This wasn't necessary before because a successful call for
error page would lead to a load(), that cleared the m_loadError.
(WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad): Remove reference
to m_loadError and emit finished signal indicating error if ErrorPage extension
doesn't handle it.
(WebCore::FrameLoaderClientQt::dispatchDidFailLoad): Ditto.

(WebCore::FrameLoaderClientQt::emitLoadStarted): Emit the loadStarted() signal
for the QWebFrame, and if the originating load also do for the QWebPage.

(WebCore::FrameLoaderClientQt::emitLoadFinished): Same as before but for
loadFinished(). Take care to reset the originating load flag before the signals
are emitted, since they might want to set it back again.

* tests/qwebframe/tst_qwebframe.cpp:
(URLSetter::URLSetter): Object that sets the url using either load() or setUrl()
when a certain signal is emitted in the frame.

(URLSetter::execute):
(tst_QWebFrame::loadInSignalHandlers_data):
(tst_QWebFrame::loadInSignalHandlers): New test inspired by the bug test case. This test
crashes without this patch applied.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@91855 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Add baselines for struct-dom-11-f.svg.

Unreviewed gardening.

* platform/chromium-linux/svg/W3C-SVG-1.1-SE/struct-dom-11-f-expected.png: Added.
* platform/chromium-mac-leopard/svg/W3C-SVG-1.1-SE/struct-dom-11-f-expected.png: Added.
* platform/chromium-win/svg/W3C-SVG-1.1-SE/struct-dom-11-f-expected.png: Added.
* platform/chromium-win/svg/W3C-SVG-1.1-SE/struct-dom-11-f-expected.txt: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@91856 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Unreviewed gardening. Update Qt 4.8 specific expected files.

* platform/qt-4.8/svg/W3C-SVG-1.1-SE/struct-dom-11-f-expected.png: Added.
* platform/qt-4.8/svg/W3C-SVG-1.1-SE/struct-dom-11-f-expected.txt: Added.
* platform/qt-wk2/Skipped: Skip failing test.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@91857 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Disable cache option should only clear memory cache, not disable it.
https://bugs.webkit.org/show_bug.cgi?id=65184

Reviewed by Pavel Feldman.

Source/WebCore:

* inspector/InspectorClient.h:
* inspector/InspectorResourceAgent.cpp:
(WebCore::InspectorResourceAgent::enable):
(WebCore::InspectorResourceAgent::disable):
(WebCore::InspectorResourceAgent::setCacheDisabled):
(WebCore::InspectorResourceAgent::mainFrameNavigated):

Source/WebKit/chromium:

* src/InspectorClientImpl.cpp:
* src/InspectorClientImpl.h:
* src/WebDevToolsAgentImpl.cpp:
* src/WebDevToolsAgentImpl.h:

LayoutTests:

* http/tests/inspector/network/network-disable-cache-memory-expected.txt:
* http/tests/inspector/network/network-disable-cache-memory.html:
* http/tests/inspector/network/resources/random-script.php: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@91858 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Mark data-view-test.html as flaky in non-debug configs too.

Unreviewed gardening.

* platform/chromium/test_expectations.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@91859 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Add better WebKit API for chrome.tabs.insertCSS extension API
https://bugs.webkit.org/show_bug.cgi?id=65158

Reviewed by David Hyatt.

Source/WebCore:

Add per-Document instance user stylesheets (as opposed to the page
group user styles and the global page stylesheet).

* css/CSSStyleSelector.cpp:
(WebCore::CSSStyleSelector::CSSStyleSelector):
* css/CSSStyleSelector.h:
* dom/Document.cpp:
(WebCore::Document::~Document):
(WebCore::Document::createStyleSelector):
(WebCore::Document::addUserSheet):
* dom/Document.h:

Source/WebKit/chromium:

Add WebDocument::insertUserStyleSheet which inserts a user stylesheet,
instead of forcing extensions to use insertStyleText which manipulates
the DOM of the page and results in compatibility issues (see
http://crbug.com/82220).

* public/WebDocument.h:
* src/WebDocument.cpp:
(WebKit::WebDocument::insertUserStyleSheet):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@91860 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Mac pixel rebaselines after r91497.

* platform/mac/fast/multicol/float-multicol-expected.png:
* platform/mac/fast/multicol/scrolling-overflow-expected.png:
* platform/mac/fast/multicol/span/anonymous-before-child-parent-crash-expected.png:
* platform/mac/fast/multicol/span/span-as-immediate-child-complex-splitting-expected.png:
* platform/mac/fast/multicol/span/span-as-immediate-child-generated-content-expected.png:
* platform/mac/fast/multicol/span/span-as-immediate-child-property-removal-expected.png:
* platform/mac/fast/multicol/span/span-as-immediate-columns-child-removal-expected.png:
* platform/mac/fast/multicol/span/span-as-nested-columns-child-dynamic-expected.png:
* platform/mac/fast/multicol/span/span-as-nested-columns-child-expected.png:
* platform/mac/fast/multicol/span/span-margin-collapsing-expected.png:
* platform/mac/fast/multicol/vertical-lr/float-multicol-expected.png:
* platform/mac/fast/multicol/vertical-rl/float-multicol-expected.png:


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