Web Inspector: [Regression] Save as file is missing in Network panel preview/response tabs.
https://bugs.webkit.org/show_bug.cgi?id=91625

Reviewed by Vsevolod Vlasov.

* inspector/front-end/HandlerRegistry.js:
* inspector/front-end/NetworkPanel.js:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122979 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Remove awkward anchorPoint usage that implicity affects layer position
https://bugs.webkit.org/show_bug.cgi?id=91472

Reviewed by Adrienne Walker.

Source/WebCore:

Covered by existing layout tests and unit tests, several existing unit tests updated.

In GraphicsLayerChromium, anchorPoint() implicity affects
position(). Therefore, unit tests needed to remember to set
anchorPoint correctly when trying to position layers for
testing. However, it's easy to forget that initialization, and
probably shouldn't be necessary anyway since conceptually
anchorPoint does not affect layer position.

This patch removes the "actualPosition + anchorPoint" quirk in
GraphicsLayerChromium, so that this problem is avoided.

* platform/graphics/chromium/GraphicsLayerChromium.cpp:
(WebCore::GraphicsLayerChromium::updateLayerPosition): No longer computes position + anchorPoint. Instead this is done in calcDrawTransformsInternal.
(WebCore::GraphicsLayerChromium::updateLayerSize): No longer affects computation of position.
(WebCore::GraphicsLayerChromium::updateAnchorPoint): No longer affects computation of position
(WebCore::GraphicsLayerChromium::updateLayerPreserves3D): Position is initialized to zero instead of relative to anchorPoint
* platform/graphics/chromium/cc/CCLayerTreeHostCommon.cpp:
(WebCore::calculateDrawTransformsInternal): explicitly use position + anchorPoint in this code, for both layer and replica.
    Note that replicaLayer now uses its own anchorPoint, which seems to be more consistent with Safari behavior.

Source/WebKit/chromium:

Unit tests were updated to account for the fact that anchorPoint
and position are now separated.

* tests/CCDamageTrackerTest.cpp:
(WebKitTests::TEST_F):
* tests/CCLayerTreeHostCommonTest.cpp:
* tests/CCLayerTreeHostImplTest.cpp:
* tests/TiledLayerChromiumTest.cpp:

LayoutTests:

* platform/chromium/TestExpectations: marked compositing/reflections/nested-reflection-anchor-point.html as needing
                                      rebaselining.  Its behavior should now be similar to Safari.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122980 268f45cc-cd09-0410-ab3c-d52691b4dbfc
AX: <input type="submit"> unlabelled.
https://bugs.webkit.org/show_bug.cgi?id=91563

Reviewed by Adele Peterson.

Source/WebCore: 

Make sure the default value is returned if there is no other value specified.

Test: platform/mac/accessibility/submit-button-default-value.html

* accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::title):

LayoutTests: 

* platform/mac/accessibility/submit-button-default-value-expected.txt: Added.
* platform/mac/accessibility/submit-button-default-value.html: Added.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122981 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Unreviewed TestExpectations update for WK90469.
Coalesce entries for windows flaky crashes related to 90469, and try
skipping a particularly impacted test to see if fails shift elsewhere.
https://bugs.webkit.org/show_bug.cgi?id=90469

* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122982 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GStreamer] 0.11 build broken
https://bugs.webkit.org/show_bug.cgi?id=91629

Patch by Philippe Normand <pnormand@igalia.com> on 2012-07-18
Reviewed by Alexis Menard.

* platform/graphics/gstreamer/VideoSinkGStreamer.cpp:
(webkitVideoSinkProposeAllocation): Pass null GstStructure to
gst_query_add_allocation_meta(). Our propose-allocation method
is simple enough to not need to set it.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122983 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Chrome/Skia: PDF print output does not have clickable links.
https://bugs.webkit.org/show_bug.cgi?id=91171

Patch by Steve VanDeBogart <vandebo@chromium.org> on 2012-07-18
Reviewed by Stephen White.

Connect GraphicsContext::setURLForRect to Skia's new API for annotations.

Printing is not generally testable.

* platform/graphics/skia/GraphicsContextSkia.cpp:
(WebCore::GraphicsContext::setURLForRect):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122984 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] fast/table tests needs update after rebaseline and new testfonts
https://bugs.webkit.org/show_bug.cgi?id=91621

Patch by Bruno de Oliveira Abinader <bruno.abinader@basyskom.com> on 2012-07-18
Reviewed by Alexis Menard.

After the rebaseline from changeset 121971 - [Qt] DumpRenderTree does not use
'monospace' font when directed, fast/table tests directory needs to be updated.

* platform/qt-5.0-wk1/Skipped:
* platform/qt-5.0-wk2/Skipped:
* platform/qt-5.0/Skipped:
* platform/qt-5.0/fast/table/003-expected.png:
* platform/qt-5.0/fast/table/003-expected.txt:
* platform/qt-5.0/fast/table/border-collapsing/004-expected.txt:
* platform/qt/fast/table/001-expected.png:
* platform/qt/fast/table/001-expected.txt:
* platform/qt/fast/table/002-expected.png:
* platform/qt/fast/table/002-expected.txt:
* platform/qt/fast/table/004-expected.png:
* platform/qt/fast/table/004-expected.txt:
* platform/qt/fast/table/005-expected.png:
* platform/qt/fast/table/005-expected.txt:
* platform/qt/fast/table/006-expected.png:
* platform/qt/fast/table/006-expected.txt:
* platform/qt/fast/table/007-expected.png:
* platform/qt/fast/table/007-expected.txt:
* platform/qt/fast/table/009-expected.png:
* platform/qt/fast/table/009-expected.txt:
* platform/qt/fast/table/010-expected.png:
* platform/qt/fast/table/010-expected.txt:
* platform/qt/fast/table/011-expected.png:
* platform/qt/fast/table/011-expected.txt:
* platform/qt/fast/table/012-expected.png:
* platform/qt/fast/table/012-expected.txt:
* platform/qt/fast/table/013-expected.png:
* platform/qt/fast/table/013-expected.txt:
* platform/qt/fast/table/014-expected.png:
* platform/qt/fast/table/014-expected.txt:
* platform/qt/fast/table/015-expected.png:
* platform/qt/fast/table/015-expected.txt:
* platform/qt/fast/table/016-expected.png:
* platform/qt/fast/table/016-expected.txt:
* platform/qt/fast/table/017-expected.png:
* platform/qt/fast/table/017-expected.txt:
* platform/qt/fast/table/018-expected.png:
* platform/qt/fast/table/018-expected.txt:
* platform/qt/fast/table/020-expected.png:
* platform/qt/fast/table/020-expected.txt:
* platform/qt/fast/table/021-expected.png:
* platform/qt/fast/table/021-expected.txt:
* platform/qt/fast/table/022-expected.png:
* platform/qt/fast/table/022-expected.txt:
* platform/qt/fast/table/023-expected.png:
* platform/qt/fast/table/023-expected.txt:
* platform/qt/fast/table/025-expected.png:
* platform/qt/fast/table/025-expected.txt:
* platform/qt/fast/table/026-expected.png:
* platform/qt/fast/table/026-expected.txt:
* platform/qt/fast/table/027-expected.png:
* platform/qt/fast/table/027-expected.txt:
* platform/qt/fast/table/027-vertical-expected.png:
* platform/qt/fast/table/027-vertical-expected.txt:
* platform/qt/fast/table/028-expected.png:
* platform/qt/fast/table/028-expected.txt:
* platform/qt/fast/table/028-vertical-expected.png:
* platform/qt/fast/table/028-vertical-expected.txt:
* platform/qt/fast/table/029-expected.png:
* platform/qt/fast/table/029-expected.txt:
* platform/qt/fast/table/030-expected.png:
* platform/qt/fast/table/030-expected.txt:
* platform/qt/fast/table/033-expected.png:
* platform/qt/fast/table/033-expected.txt:
* platform/qt/fast/table/034-expected.png:
* platform/qt/fast/table/034-expected.txt:
* platform/qt/fast/table/035-expected.png:
* platform/qt/fast/table/035-expected.txt:
* platform/qt/fast/table/035-vertical-expected.png:
* platform/qt/fast/table/035-vertical-expected.txt:
* platform/qt/fast/table/036-expected.png:
* platform/qt/fast/table/036-expected.txt:
* platform/qt/fast/table/037-expected.png:
* platform/qt/fast/table/037-expected.txt:
* platform/qt/fast/table/038-expected.png:
* platform/qt/fast/table/038-expected.txt:
* platform/qt/fast/table/038-vertical-expected.png:
* platform/qt/fast/table/038-vertical-expected.txt:
* platform/qt/fast/table/039-expected.png:
* platform/qt/fast/table/039-expected.txt:
* platform/qt/fast/table/040-expected.png:
* platform/qt/fast/table/040-expected.txt:
* platform/qt/fast/table/040-vertical-expected.png:
* platform/qt/fast/table/040-vertical-expected.txt:
* platform/qt/fast/table/041-expected.png:
* platform/qt/fast/table/041-expected.txt:
* platform/qt/fast/table/100-percent-cell-width-expected.png:
* platform/qt/fast/table/100-percent-cell-width-expected.txt:
* platform/qt/fast/table/absolute-table-at-bottom-expected.png:
* platform/qt/fast/table/absolute-table-at-bottom-expected.txt:
* platform/qt/fast/table/add-before-anonymous-child-expected.png:
* platform/qt/fast/table/add-before-anonymous-child-expected.txt:
* platform/qt/fast/table/align-right-within-left-aligned-div-expected.txt:
* platform/qt/fast/table/append-cells-expected.png:
* platform/qt/fast/table/append-cells-expected.txt:
* platform/qt/fast/table/append-cells2-expected.png:
* platform/qt/fast/table/append-cells2-expected.txt:
* platform/qt/fast/table/auto-with-percent-height-expected.png:
* platform/qt/fast/table/auto-with-percent-height-expected.txt:
* platform/qt/fast/table/auto-with-percent-height-vertical-expected.png:
* platform/qt/fast/table/auto-with-percent-height-vertical-expected.txt:
* platform/qt/fast/table/border-collapsing/001-expected.png:
* platform/qt/fast/table/border-collapsing/001-expected.txt:
* platform/qt/fast/table/border-collapsing/001-vertical-expected.png:
* platform/qt/fast/table/border-collapsing/001-vertical-expected.txt:
* platform/qt/fast/table/border-collapsing/002-expected.png:
* platform/qt/fast/table/border-collapsing/002-expected.txt:
* platform/qt/fast/table/border-collapsing/002-vertical-expected.png:
* platform/qt/fast/table/border-collapsing/002-vertical-expected.txt:
* platform/qt/fast/table/border-collapsing/003-expected.png:
* platform/qt/fast/table/border-collapsing/003-expected.txt:
* platform/qt/fast/table/border-collapsing/003-vertical-expected.png:
* platform/qt/fast/table/border-collapsing/003-vertical-expected.txt:
* platform/qt/fast/table/border-collapsing/004-vertical-expected.png:
* platform/qt/fast/table/border-collapsing/004-vertical-expected.txt:
* platform/qt/fast/table/border-collapsing/border-collapsing-head-foot-expected.png:
* platform/qt/fast/table/border-collapsing/border-collapsing-head-foot-expected.txt:
* platform/qt/fast/table/border-collapsing/border-collapsing-head-foot-vertical-expected.png:
* platform/qt/fast/table/border-collapsing/border-collapsing-head-foot-vertical-expected.txt:
* platform/qt/fast/table/border-collapsing/rtl-border-collapsing-expected.png:
* platform/qt/fast/table/border-collapsing/rtl-border-collapsing-expected.txt:
* platform/qt/fast/table/border-collapsing/rtl-border-collapsing-vertical-expected.png:
* platform/qt/fast/table/border-collapsing/rtl-border-collapsing-vertical-expected.txt:
* platform/qt/fast/table/cell-absolute-child-expected.png:
* platform/qt/fast/table/cell-absolute-child-expected.txt:
* platform/qt/fast/table/cell-coalescing-expected.png:
* platform/qt/fast/table/cell-coalescing-expected.txt:
* platform/qt/fast/table/cell-pref-width-invalidation-expected.png:
* platform/qt/fast/table/cell-pref-width-invalidation-expected.txt:
* platform/qt/fast/table/cell-width-auto-expected.png:
* platform/qt/fast/table/cell-width-auto-expected.txt:
* platform/qt/fast/table/cellindex-expected.png:
* platform/qt/fast/table/cellindex-expected.txt:
* platform/qt/fast/table/click-near-anonymous-table-expected.png:
* platform/qt/fast/table/click-near-anonymous-table-expected.txt:
* platform/qt/fast/table/colgroup-preceded-by-caption-expected.png:
* platform/qt/fast/table/colgroup-preceded-by-caption-expected.txt:
* platform/qt/fast/table/colgroup-spanning-groups-rules-expected.png:
* platform/qt/fast/table/colgroup-spanning-groups-rules-expected.txt:
* platform/qt/fast/table/colspanMinWidth-expected.png:
* platform/qt/fast/table/colspanMinWidth-expected.txt:
* platform/qt/fast/table/dynamic-caption-add-before-child-expected.png:
* platform/qt/fast/table/dynamic-caption-add-before-child-expected.txt:
* platform/qt/fast/table/dynamic-caption-add-remove-before-child-expected.png:
* platform/qt/fast/table/dynamic-caption-add-remove-before-child-expected.txt:
* platform/qt/fast/table/dynamic-cellpadding-expected.png:
* platform/qt/fast/table/dynamic-cellpadding-expected.txt:
* platform/qt/fast/table/dynamic-descendant-percentage-height-expected.png:
* platform/qt/fast/table/dynamic-descendant-percentage-height-expected.txt:
* platform/qt/fast/table/early-table-layout-expected.png:
* platform/qt/fast/table/early-table-layout-expected.txt:
* platform/qt/fast/table/edge-offsets-expected.png:
* platform/qt/fast/table/edge-offsets-expected.txt:
* platform/qt/fast/table/empty-cells-expected.png:
* platform/qt/fast/table/empty-cells-expected.txt:
* platform/qt/fast/table/empty-row-crash-expected.png:
* platform/qt/fast/table/empty-row-crash-expected.txt:
* platform/qt/fast/table/empty-table-percent-height-expected.png:
* platform/qt/fast/table/empty-table-percent-height-expected.txt:
* platform/qt/fast/table/fixed-nested-expected.png:
* platform/qt/fast/table/fixed-nested-expected.txt:
* platform/qt/fast/table/fixed-table-non-cell-in-row-expected.png:
* platform/qt/fast/table/fixed-table-non-cell-in-row-expected.txt:
* platform/qt/fast/table/fixed-table-with-percent-inside-percent-table-expected.txt:
* platform/qt/fast/table/fixed-table-with-percent-width-inside-auto-table-expected.txt:
* platform/qt/fast/table/fixed-table-with-percent-width-inside-div-expected.txt:
* platform/qt/fast/table/fixed-table-with-percent-width-inside-extra-large-div-expected.txt:
* platform/qt/fast/table/fixed-table-with-percent-width-inside-fixed-width-table-expected.txt:
* platform/qt/fast/table/fixed-table-with-small-percent-width-expected.txt:
* platform/qt/fast/table/floating-th-expected.png:
* platform/qt/fast/table/floating-th-expected.txt:
* platform/qt/fast/table/floatingTablePaintBackground-expected.png:
* platform/qt/fast/table/floatingTablePaintBackground-expected.txt:
* platform/qt/fast/table/form-with-table-style-expected.png:
* platform/qt/fast/table/form-with-table-style-expected.txt:
* platform/qt/fast/table/frame-and-rules-expected.png:
* platform/qt/fast/table/frame-and-rules-expected.txt:
* platform/qt/fast/table/generated-caption-expected.png:
* platform/qt/fast/table/generated-caption-expected.txt:
* platform/qt/fast/table/giantRowspan2-expected.png:
* platform/qt/fast/table/giantRowspan2-expected.txt:
* platform/qt/fast/table/inline-form-assert-expected.png:
* platform/qt/fast/table/inline-form-assert-expected.txt:
* platform/qt/fast/table/insert-before-anonymous-ancestors-expected.png:
* platform/qt/fast/table/insert-before-anonymous-ancestors-expected.txt:
* platform/qt/fast/table/insert-cell-before-form-expected.png:
* platform/qt/fast/table/insert-cell-before-form-expected.txt:
* platform/qt/fast/table/insert-row-before-form-expected.png:
* platform/qt/fast/table/insert-row-before-form-expected.txt:
* platform/qt/fast/table/invisible-cell-background-expected.png:
* platform/qt/fast/table/invisible-cell-background-expected.txt:
* platform/qt/fast/table/large-width-expected.png:
* platform/qt/fast/table/large-width-expected.txt:
* platform/qt/fast/table/multiple-captions-display-expected.png:
* platform/qt/fast/table/multiple-captions-display-expected.txt:
* platform/qt/fast/table/multiple-percent-height-rows-expected.png:
* platform/qt/fast/table/multiple-percent-height-rows-expected.txt:
* platform/qt/fast/table/nested-percent-height-table-expected.png:
* platform/qt/fast/table/nested-percent-height-table-expected.txt:
* platform/qt/fast/table/nobr-expected.png:
* platform/qt/fast/table/nobr-expected.txt:
* platform/qt/fast/table/overflowHidden-expected.png:
* platform/qt/fast/table/overflowHidden-expected.txt:
* platform/qt/fast/table/percent-heights-expected.png:
* platform/qt/fast/table/percent-heights-expected.txt:
* platform/qt/fast/table/prepend-in-anonymous-table-expected.png:
* platform/qt/fast/table/prepend-in-anonymous-table-expected.txt:
* platform/qt/fast/table/quote-text-around-iframe-expected.png:
* platform/qt/fast/table/quote-text-around-iframe-expected.txt:
* platform/qt/fast/table/relative-position-containment-expected.png:
* platform/qt/fast/table/relative-position-containment-expected.txt:
* platform/qt/fast/table/relative-position-offsets-expected.png:
* platform/qt/fast/table/relative-position-offsets-expected.txt:
* platform/qt/fast/table/relative-position-stacking-expected.png:
* platform/qt/fast/table/relative-position-stacking-expected.txt:
* platform/qt/fast/table/remove-td-display-none-expected.png:
* platform/qt/fast/table/remove-td-display-none-expected.txt:
* platform/qt/fast/table/replaced-percent-height-expected.png:
* platform/qt/fast/table/replaced-percent-height-expected.txt:
* platform/qt/fast/table/row-height-recalc-expected.png:
* platform/qt/fast/table/row-height-recalc-expected.txt:
* platform/qt/fast/table/rowindex-expected.png:
* platform/qt/fast/table/rowindex-expected.txt:
* platform/qt/fast/table/rowspan-paint-order-expected.png:
* platform/qt/fast/table/rowspan-paint-order-expected.txt:
* platform/qt/fast/table/rowspan-paint-order-vertical-expected.png:
* platform/qt/fast/table/rowspan-paint-order-vertical-expected.txt:
* platform/qt/fast/table/rtl-cell-display-none-assert-expected.png:
* platform/qt/fast/table/rtl-cell-display-none-assert-expected.txt:
* platform/qt/fast/table/rules-attr-dynchange1-expected.png:
* platform/qt/fast/table/rules-attr-dynchange1-expected.txt:
* platform/qt/fast/table/rules-attr-dynchange2-expected.png:
* platform/qt/fast/table/rules-attr-dynchange2-expected.txt:
* platform/qt/fast/table/spanOverlapRepaint-expected.png:
* platform/qt/fast/table/spanOverlapRepaint-expected.txt:
* platform/qt/fast/table/stale-grid-crash-expected.png:
* platform/qt/fast/table/stale-grid-crash-expected.txt:
* platform/qt/fast/table/table-after-child-in-table-expected.png:
* platform/qt/fast/table/table-after-child-in-table-expected.txt:
* platform/qt/fast/table/table-and-parts-outline-expected.png:
* platform/qt/fast/table/table-and-parts-outline-expected.txt:
* platform/qt/fast/table/table-before-child-in-table-expected.png:
* platform/qt/fast/table/table-before-child-in-table-expected.txt:
* platform/qt/fast/table/table-cell-after-child-in-block-expected.png:
* platform/qt/fast/table/table-cell-after-child-in-block-expected.txt:
* platform/qt/fast/table/table-cell-after-child-in-table-expected.png:
* platform/qt/fast/table/table-cell-after-child-in-table-expected.txt:
* platform/qt/fast/table/table-cell-before-child-in-block-expected.png:
* platform/qt/fast/table/table-cell-before-child-in-block-expected.txt:
* platform/qt/fast/table/table-cell-before-child-in-table-expected.png:
* platform/qt/fast/table/table-cell-before-child-in-table-expected.txt:
* platform/qt/fast/table/table-continuation-outline-paint-crash-expected.png:
* platform/qt/fast/table/table-continuation-outline-paint-crash-expected.txt:
* platform/qt/fast/table/table-display-types-expected.png:
* platform/qt/fast/table/table-display-types-expected.txt:
* platform/qt/fast/table/table-display-types-strict-expected.png:
* platform/qt/fast/table/table-display-types-strict-expected.txt:
* platform/qt/fast/table/table-display-types-vertical-expected.png:
* platform/qt/fast/table/table-display-types-vertical-expected.txt:
* platform/qt/fast/table/table-hspace-align-center-expected.png:
* platform/qt/fast/table/table-hspace-align-center-expected.txt:
* platform/qt/fast/table/table-row-after-child-in-block-expected.png:
* platform/qt/fast/table/table-row-after-child-in-block-expected.txt:
* platform/qt/fast/table/table-row-after-child-in-table-expected.png:
* platform/qt/fast/table/table-row-after-child-in-table-expected.txt:
* platform/qt/fast/table/table-row-before-child-in-block-expected.png:
* platform/qt/fast/table/table-row-before-child-in-block-expected.txt:
* platform/qt/fast/table/table-row-before-child-in-table-expected.png:
* platform/qt/fast/table/table-row-before-child-in-table-expected.txt:
* platform/qt/fast/table/tableInsideCaption-expected.png:
* platform/qt/fast/table/tableInsideCaption-expected.txt:
* platform/qt/fast/table/text-field-baseline-expected.png:
* platform/qt/fast/table/text-field-baseline-expected.txt:
* platform/qt/fast/table/unbreakable-images-quirk-expected.png:
* platform/qt/fast/table/unbreakable-images-quirk-expected.txt:
* platform/qt/fast/table/unused-percent-heights-expected.png:
* platform/qt/fast/table/unused-percent-heights-expected.txt:
* platform/qt/fast/table/vertical-align-baseline-expected.png:
* platform/qt/fast/table/vertical-align-baseline-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122985 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Build fix for ENABLE_TOUCH_EVENTS=0

Rubber-stamped by No'am Rosenthal.

Add the appropriate ENABLE(TOUCH_EVENTS) where they're needed.

* UIProcess/API/qt/raw/qrawwebview.cpp:
* UIProcess/API/qt/raw/qrawwebview_p.h: include Platform.h so we can use the ENABLE macro.
* UIProcess/InspectorServer/qt/WebInspectorServerQt.cpp: Also add the missing QFile include.
* UIProcess/qt/QtWebPageEventHandler.cpp:
(WebKit::QtWebPageEventHandler::deactivateTapHighlight):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122986 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] QQuickWebView shouldn't recieve mouse events while dialogs are active
https://bugs.webkit.org/show_bug.cgi?id=91634

Reviewed by Alexis Menard.

One side-effect of reimplementing childMouseEventFilter() in r122438 is that it can end up
bypassing the mouseArea mechanism used in QML dialogs and still forward some mouse events
over to the web process. We can rely on the same m_dialogActive mechanism already used for
touch events in there as well.

* UIProcess/API/qt/qquickwebview.cpp:
(QQuickWebView::childMouseEventFilter): ignore events and return early if a dialog is active.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122987 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] platform/qt/http tests needs update after rebaseline and new testfonts
https://bugs.webkit.org/show_bug.cgi?id=91119

Patch by Alex Bravo <alex.bravo@nokia.com> on 2012-07-18
Reviewed by Noam Rosenthal.

Rebased platform/qt/http tests and unskipped them from qt-5.0

* platform/qt/http/tests/loading/simple-subframe-expected.png: Added.
* platform/qt/http/tests/loading/simple-subframe-expected.txt:
* platform/qt/http/tests/local/file-url-sent-as-referer-expected.png:
* platform/qt/http/tests/local/file-url-sent-as-referer-expected.txt:
* platform/qt/http/tests/misc/acid2-expected.png:
* platform/qt/http/tests/misc/acid2-expected.txt:
* platform/qt/http/tests/misc/acid2-pixel-expected.png:
* platform/qt/http/tests/misc/acid2-pixel-expected.txt:
* platform/qt/http/tests/misc/error404-expected.png:
* platform/qt/http/tests/misc/error404-expected.txt:
* platform/qt/http/tests/misc/favicon-as-image-expected.png:
* platform/qt/http/tests/misc/favicon-as-image-expected.txt:
* platform/qt/http/tests/misc/frame-access-during-load-expected.png:
* platform/qt/http/tests/misc/frame-access-during-load-expected.txt:
* platform/qt/http/tests/misc/generated-content-inside-table-expected.png:
* platform/qt/http/tests/misc/generated-content-inside-table-expected.txt:
* platform/qt/http/tests/misc/iframe404-expected.png:
* platform/qt/http/tests/misc/iframe404-expected.txt:
* platform/qt/http/tests/misc/slow-loading-image-in-pattern-expected.png:
* platform/qt/http/tests/misc/slow-loading-image-in-pattern-expected.txt:
* platform/qt/http/tests/misc/slow-loading-mask-expected.png:
* platform/qt/http/tests/misc/slow-loading-mask-expected.txt:
* platform/qt/http/tests/navigation/error404-basic-expected.png: Added.
* platform/qt/http/tests/navigation/error404-basic-expected.txt:
* platform/qt/http/tests/navigation/error404-goback-expected.png: Added.
* platform/qt/http/tests/navigation/error404-goback-expected.txt:
* platform/qt/http/tests/navigation/error404-subframeload-expected.png: Added.
* platform/qt/http/tests/navigation/error404-subframeload-expected.txt:
* platform/qt/http/tests/navigation/javascriptlink-frames-expected.png:
* platform/qt/http/tests/navigation/javascriptlink-frames-expected.txt:
* platform/qt/http/tests/navigation/postredirect-basic-expected.png: Added.
* platform/qt/http/tests/navigation/postredirect-basic-expected.txt:
* platform/qt/http/tests/navigation/postredirect-goback1-expected.png: Added.
* platform/qt/http/tests/navigation/postredirect-goback1-expected.txt:
* platform/qt/http/tests/uri/css-href-expected.png:
* platform/qt/http/tests/uri/css-href-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122988 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Convert svg/css/scientific-numbers.html to a text only test
https://bugs.webkit.org/show_bug.cgi?id=91641

Reviewed by Dirk Schulze.

This is a JS test so we don't need the pixel dump.

* svg/css/script-tests/scientific-numbers.js:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122989 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore: Alignment crash in MIMESniffer
https://bugs.webkit.org/show_bug.cgi?id=89787

Reviewed by Yong Li.

PR 169064

Prevent ASSERT on unaligned data. Special-case handling of unaligned data
to maskedCompareSlowCase.

No test, too hard to reproduce.

* platform/network/MIMESniffing.cpp:
(std::maskedCompareSlowCase):
(std):
(std::maskedCompare):

Source/WTF: Alignment crash in MIMESniffer
https://bugs.webkit.org/show_bug.cgi?id=89787

Reviewed by Yong Li.

PR 169064

Change isPointerTypeAlignmentOkay so calling it does not require ifdefs.

* wtf/StdLibExtras.h:
(isPointerTypeAlignmentOkay):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122990 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, rolling out r122984.
http://trac.webkit.org/changeset/122984
https://bugs.webkit.org/show_bug.cgi?id=91171

Broken the shared build, need to export a SkData in skia

* platform/graphics/skia/GraphicsContextSkia.cpp:
(WebCore::GraphicsContext::setURLForRect):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122991 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[BlackBerry] Move about: URL handling out of WebCore
https://bugs.webkit.org/show_bug.cgi?id=91541

Patch by Yong Li <yoli@rim.com> on 2012-07-18
Reviewed by Rob Buis.

Source/WebCore:

Remove about URL handling from our NetworkJob.

* platform/network/blackberry/NetworkJob.cpp:
(WebCore::NetworkJob::NetworkJob):
(WebCore::NetworkJob::initialize):
(WebCore::NetworkJob::cancelJob):
(WebCore::NetworkJob::sendResponseIfNeeded):
* platform/network/blackberry/NetworkJob.h:
(NetworkJob):
* platform/network/blackberry/NetworkManager.cpp:
(WebCore::NetworkManager::startJob):

Source/WebKit:

AboutData.cpp is moved from WebCoreSupport to WebKitSupport.

* PlatformBlackBerry.cmake:

Source/WebKit/blackberry:

Move about URL handling code to WebKit/blackberry. Now when WebPage is asked to load an about URL,
it directly calls loadString() with the generated source.

Also move AboutData.h/cpp from WebCoreSupport to WebKitSupport and change their namespace from WebCore
to BlackBerry::WebKit.

The change is very mechanical except "procss total memory usage" in about:memory now only accounts used
bytes and ignore free spaces in malloc.

* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPagePrivate::loadAbout):
(WebKit):
(BlackBerry::WebKit::WebPage::load):
* Api/WebPage_p.h:
(WebPagePrivate):
* WebKitSupport/AboutData.cpp: Renamed from Source/WebKit/blackberry/WebCoreSupport/AboutData.cpp.
(WebKit):
(BlackBerry::WebKit::writeFeatures):
(BlackBerry::WebKit::numberToHTMLTr):
(BlackBerry::WebKit::bool):
(BlackBerry::WebKit::configPage):
(BlackBerry::WebKit::cacheTypeStatisticToHTMLTr):
(BlackBerry::WebKit::dumpJSCTypeCountSetToTableHTML):
(BlackBerry::WebKit::memoryPage):
* WebKitSupport/AboutData.h: Renamed from Source/WebKit/blackberry/WebCoreSupport/AboutData.h.
(WebKit):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122992 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Fix style for numeric literals in chromium unit test code
https://bugs.webkit.org/show_bug.cgi?id=91635

Reviewed by Adrienne Walker.

Where possible, removed ".0" and "f" suffixes on numeric literals,
to be more consistent with WebKit style rules.

* tests/CCDamageTrackerTest.cpp:
(WebKitTests::TEST_F):
* tests/CCLayerQuadTest.cpp:
(WebCore::TEST):
* tests/CCLayerTreeHostCommonTest.cpp:
* tests/CCQuadCullerTest.cpp:
* tests/LayerChromiumTest.cpp:
* tests/WebTransformationMatrixTest.cpp:
(WebKit::TEST):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122993 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Unreviewed gardening. Rebaseline 2 tests due to minor changes from r122980.

* platform/chromium-win/transforms/3d/point-mapping/3d-point-mapping-expected.png:
* platform/chromium-win/transforms/3d/point-mapping/3d-point-mapping-origins-expected.png:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122994 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] MediaStream API: Moving the mock create* WebRTC calls into a shadow Platform class
https://bugs.webkit.org/show_bug.cgi?id=86215

Reviewed by Adam Barth.

Adding a shadow Platform object that is used to override some WebKit::Platform funtions to
instead create mock objects. No actual mock objects created yet.

* DumpRenderTree/DumpRenderTree.gypi:
* DumpRenderTree/chromium/DumpRenderTree.cpp:
(WebKitSupportTestEnvironment::WebKitSupportTestEnvironment):
* DumpRenderTree/chromium/MockWebKitPlatformSupport.cpp: Copied from Tools/DumpRenderTree/chromium/config.h.
(MockWebKitPlatformSupport::create):
(MockWebKitPlatformSupport::MockWebKitPlatformSupport):
(MockWebKitPlatformSupport::cryptographicallyRandomValues):
(MockWebKitPlatformSupport::createMediaStreamCenter):
* DumpRenderTree/chromium/MockWebKitPlatformSupport.h: Copied from Tools/DumpRenderTree/chromium/config.h.
(MockWebKitPlatformSupport):
* DumpRenderTree/chromium/config.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122995 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Drag image for image elements should be scaled with device scale factor.
https://bugs.webkit.org/show_bug.cgi?id=89688

Patch by Varun Jain <varunjain@chromium.org> on 2012-07-18
Reviewed by Adam Barth.

.:

* ManualTests/chromium/drag-image-accounts-for-device-scale.html:

Source/WebCore:

Modified ManualTest: ManualTests/chromium/drag-image-accounts-for-device-scale.html

* page/Frame.cpp:
(WebCore::Frame::nodeImage):
(WebCore::Frame::dragImageForSelection):
* platform/chromium/DragImageChromiumSkia.cpp:
(WebCore::dragImageSize):
(WebCore::deleteDragImage):
(WebCore::scaleDragImage):
(WebCore::dissolveDragImageToFraction):
(WebCore::createDragImageFromImage):
* platform/chromium/DragImageRef.h:
(DragImageChromium):
(WebCore):
* platform/graphics/skia/BitmapImageSingleFrameSkia.h:
(BitmapImageSingleFrameSkia):
* platform/graphics/skia/ImageBufferSkia.cpp:
(WebCore::ImageBuffer::ImageBuffer):
(WebCore::ImageBuffer::copyImage):
* platform/graphics/skia/ImageSkia.cpp:
(WebCore::BitmapImageSingleFrameSkia::BitmapImageSingleFrameSkia):
(WebCore::BitmapImageSingleFrameSkia::create):
* platform/graphics/skia/NativeImageSkia.cpp:
(WebCore::NativeImageSkia::NativeImageSkia):
* platform/graphics/skia/NativeImageSkia.h:
(NativeImageSkia):
(WebCore::NativeImageSkia::resolutionScale):

Source/WebKit/chromium:

* src/DragClientImpl.cpp:
(WebKit::DragClientImpl::startDrag):
* tests/DragImageTest.cpp:
(WebCore::TEST):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122996 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Unreviewed compile fix for Android.

Source/WebKit/chromium/tests/CCDamageTrackerTest.cpp: In member function 'virtual void<unnamed>::CCDamageTrackerTest_verifyDamageForTransformedLayer_Test::TestBody()':
Source/WebKit/chromium/tests/CCDamageTrackerTest.cpp:332: error: call of overloaded 'sqrt(int)' is ambiguous

* tests/CCDamageTrackerTest.cpp:
(WebKitTests::TEST_F):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122997 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Unreviewed compile fix for Android.

More sqrt fixes.

* tests/CCLayerTreeHostCommonTest.cpp:

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