Try to fix the Qt WebKit2 failures.

* WebProcess/WebPage/DrawingAreaImpl.cpp:
(WebKit::DrawingAreaImpl::DrawingAreaImpl):
Always force compositing if USE(COORDINATED_GRAPHICS) is true.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130324 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix Geolocation/window-close-crash.html and harden WebKitTestRunner for Geolocation
https://bugs.webkit.org/show_bug.cgi?id=97608

Patch by Benjamin Poulain <bpoulain@apple.com> on 2012-10-03
Reviewed by Sam Weinig.

Tools: 

The test fast/dom/Geolocation/window-close-crash.html was crashing because
handleGeolocationPermissionRequest() was executed on the wrong pointer. Depending on how
the page was created, the void* clientInfo can either be a PlatformWebView or
a TestController.

Using the global TestController fixes the issue.

* WebKitTestRunner/GeolocationProviderMock.cpp:
(WTR::GeolocationProviderMock::setPosition):
(WTR::GeolocationProviderMock::setPositionUnavailableError):
To be reliable, the test fast/dom/Geolocation/maximum-age.html needs the setting the position
to clear the error and vice versa.
This is the same behavior as GeolocationClientMock and MockGeolocationProvider of WebKit1.

(WTR::GeolocationProviderMock::sendPositionIfNeeded):
(WTR::GeolocationProviderMock::sendErrorIfNeeded):
Some tests expect the position/error cant be sent multiple time,
just keep the position after sending.

* WebKitTestRunner/TestController.cpp:
(WTR::decidePolicyForGeolocationPermissionRequest):
(WTR::TestController::decidePolicyForGeolocationPermissionRequestIfPossible):
* WebKitTestRunner/TestController.h:
Let's play as if we did not know what is in GeolocationPermissionRequestManagerProxy like a real
client would have to do.

LayoutTests: 

* platform/wk2/TestExpectations:
Unskip fast/dom/Geolocation/window-close-crash.html.
* platform/mac-wk2/TestExpectations:
Unskip fast/dom/Geolocation/maximum-age.html.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130325 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Pixel test rebaselines to enable pixel testing on the bots, part 4.

* platform/efl/fast/repaint/bugzilla-7235-expected.png:
* platform/efl/fast/repaint/change-transform-expected.png:
* platform/efl/fast/repaint/clipped-relative-expected.png:
* platform/efl/fast/repaint/containing-block-position-change-expected.png:
* platform/efl/fast/repaint/control-clip-expected.png:
* platform/efl/fast/repaint/dynamic-table-vertical-alignment-change-expected.png:
* platform/efl/fast/repaint/fixed-move-after-keyboard-scroll-expected.png:
* platform/efl/fast/repaint/fixed-table-cell-expected.png:
* platform/efl/fast/repaint/flexible-box-overflow-expected.png:
* platform/efl/fast/repaint/flexible-box-overflow-horizontal-expected.png:
* platform/efl/fast/repaint/float-move-during-layout-expected.png:
* platform/efl/fast/repaint/focus-layers-expected.png:
* platform/efl/fast/repaint/inline-block-overflow-expected.png:
* platform/efl/fast/repaint/layer-child-outline-expected.png:
* platform/efl/fast/repaint/layer-outline-expected.png:
* platform/efl/fast/repaint/layer-outline-horizontal-expected.png:
* platform/efl/fast/repaint/layout-state-scrolloffset-expected.png:
* platform/efl/fast/repaint/layout-state-scrolloffset2-expected.png:
* platform/efl/fast/repaint/layout-state-scrolloffset3-expected.png:
* platform/efl/fast/repaint/line-flow-with-floats-1-expected.png:
* platform/efl/fast/repaint/line-flow-with-floats-10-expected.png:
* platform/efl/fast/repaint/line-flow-with-floats-2-expected.png:
* platform/efl/fast/repaint/line-flow-with-floats-3-expected.png:
* platform/efl/fast/repaint/line-flow-with-floats-4-expected.png:
* platform/efl/fast/repaint/line-flow-with-floats-5-expected.png:
* platform/efl/fast/repaint/line-flow-with-floats-6-expected.png:
* platform/efl/fast/repaint/line-flow-with-floats-7-expected.png:
* platform/efl/fast/repaint/line-flow-with-floats-8-expected.png:
* platform/efl/fast/repaint/line-flow-with-floats-9-expected.png:
* platform/efl/fast/repaint/line-overflow-expected.png:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130326 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WK2] PageViewportController.cpp is supposed to be a generic WebKit2 file but only works with Qt port.
https://bugs.webkit.org/show_bug.cgi?id=98186

Reviewed by Noam Rosenthal.

Source/WebCore:

Remove the implicit conversion from WebCore::FloatSize to QSize.

* platform/graphics/FloatSize.h:
(FloatSize):

Source/WebKit2:

Remove the dependece of WebCore::FloatSize to QSize implicit conversion.

* UIProcess/API/qt/qquickwebpage.cpp:
(QQuickWebPagePrivate::updateSize):
* UIProcess/API/qt/qquickwebview.cpp:
(QQuickWebViewLegacyPrivate::updateViewportSize):
(QQuickWebViewFlickablePrivate::updateViewportSize):
* UIProcess/PageViewportController.cpp:
(WebKit::PageViewportController::didRenderFrame):
(WebKit::PageViewportController::pageDidRequestScroll):
(WebKit::PageViewportController::syncVisibleContents):
(WebKit::PageViewportController::viewportSizeInContentsCoordinates):
(WebKit):
* UIProcess/PageViewportController.h:
(PageViewportController):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130327 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Pixel test rebaselines to enable pixel testing on the bots, part 5.

* platform/efl/fast/repaint/list-marker-2-expected.png:
* platform/efl/fast/repaint/list-marker-expected.png:
* platform/efl/fast/repaint/make-children-non-inline-expected.png:
* platform/efl/fast/repaint/opacity-change-on-overflow-float-expected.png:
* platform/efl/fast/repaint/outline-child-repaint-expected.png:
* platform/efl/fast/repaint/outline-inset-expected.png:
* platform/efl/fast/repaint/outline-repaint-glitch-expected.png:
* platform/efl/fast/repaint/outline-shrinking-expected.png:
* platform/efl/fast/repaint/overflow-delete-line-expected.png:
* platform/efl/fast/repaint/overflow-hidden-in-overflow-hidden-scrolled-expected.png: Added.
* platform/efl/fast/repaint/overflow-outline-repaint-expected.png:
* platform/efl/fast/repaint/overflow-scroll-body-appear-expected.png:
* platform/efl/fast/repaint/overflow-scroll-delete-expected.png:
* platform/efl/fast/repaint/reflection-redraw-expected.png:
* platform/efl/fast/repaint/repaint-resized-overflow-expected.png:
* platform/efl/fast/repaint/scale-page-shrink-expected.png:
* platform/efl/fast/repaint/scroll-inside-table-cell-expected.png:
* platform/efl/fast/repaint/selected-replaced-expected.png:
* platform/efl/fast/repaint/selection-after-remove-expected.png:
* platform/efl/fast/repaint/selection-gap-overflow-scroll-2-expected.png:
* platform/efl/fast/repaint/selection-gap-overflow-scroll-expected.png:
* platform/efl/fast/repaint/selection-rl-expected.png:
* platform/efl/fast/repaint/shadow-multiple-horizontal-expected.png:
* platform/efl/fast/repaint/shadow-multiple-strict-horizontal-expected.png:
* platform/efl/fast/repaint/shadow-multiple-strict-vertical-expected.png:
* platform/efl/fast/repaint/shadow-multiple-vertical-expected.png:
* platform/efl/fast/repaint/stacked-diacritics-expected.png:
* platform/efl/fast/repaint/static-to-positioned-expected.png:
* platform/efl/fast/repaint/table-cell-collapsed-border-expected.png:
* platform/efl/fast/repaint/table-cell-move-expected.png:
* platform/efl/fast/repaint/table-collapsed-border-expected.png:
* platform/efl/fast/repaint/table-extra-bottom-grow-expected.png:
* platform/efl/fast/repaint/text-append-dirty-lines-expected.png:
* platform/efl/fast/repaint/text-emphasis-v-expected.png: Added.
* platform/efl/fast/repaint/text-selection-rect-in-overflow-2-expected.png:
* platform/efl/fast/repaint/text-selection-rect-in-overflow-expected.png:
* platform/efl/fast/repaint/text-shadow-expected.png:
* platform/efl/fast/repaint/text-shadow-horizontal-expected.png:
* platform/efl/fast/repaint/textarea-set-disabled-expected.png: Added.
* platform/efl/fast/repaint/transform-relative-position-expected.png:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130328 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Round image sizes when zooming
https://bugs.webkit.org/show_bug.cgi?id=98205

Reviewed by Eric Seidel.

Source/WebCore: 

We currently floor image sizes when zooming which can result in
images being rendered at one pixel less than the actual size.
This is especially likely to happen for very large images.

Test: fast/sub-pixel/zoomed-image-tiles.html

* loader/cache/CachedImage.cpp:
(WebCore::CachedImage::imageSizeForRenderer):

LayoutTests: 

Add test for zoomed large image tiles.

* fast/images/zoomed-img-size.html:
* fast/sub-pixel/zoomed-image-tiles-expected.html: Added.
* fast/sub-pixel/zoomed-image-tiles.html: Added.
* platform/chromium-linux/svg/zoom/page/zoom-svg-through-object-with-absolute-size-2-expected.png:
* platform/chromium-linux/svg/zoom/page/zoom-svg-through-object-with-absolute-size-2-expected.txt:
* platform/chromium-linux/svg/zoom/page/zoom-svg-through-object-with-absolute-size-expected.png:
* platform/chromium-linux/svg/zoom/page/zoom-svg-through-object-with-absolute-size-expected.txt:
* platform/chromium-linux/svg/zoom/page/zoom-svg-through-object-with-percentage-size-expected.png:
* platform/chromium-linux/svg/zoom/page/zoom-svg-through-object-with-percentage-size-expected.txt:
* platform/chromium/fast/images/zoomed-img-size-expected.txt: Added.
* platform/gtk/TestExpectations:
* platform/mac-lion/TestExpectations:
* platform/mac-snowleopard/TestExpectations:
* platform/mac-wk2/TestExpectations:
* platform/mac/TestExpectations:
* platform/qt-4.8/TestExpectations:
* platform/qt/TestExpectations:
* platform/win-wk2/TestExpectations:
* platform/win-xp/TestExpectations:
* platform/win/TestExpectations:
* platform/wincairo/TestExpectations:
* platform/wk2/TestExpectations:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130329 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Pixel test rebaselines to enable pixel testing on the bots, part 5.

Finally finish rebaselining fast/.

* platform/efl/fast/repaint/transform-repaint-descendants-expected.png:
* platform/efl/fast/replaced/absolute-image-sizing-expected.png:
* platform/efl/fast/replaced/width100percent-image-expected.png:
* platform/efl/fast/replaced/width100percent-textfield-expected.png:
* platform/efl/fast/ruby/ruby-block-style-not-updated-expected.png: Added.
* platform/efl/fast/ruby/ruby-block-style-not-updated-with-before-after-content-expected.png: Added.
* platform/efl/fast/ruby/ruby-inline-style-not-updated-expected.png: Added.
* platform/efl/fast/ruby/ruby-inline-style-not-updated-with-before-after-content-expected.png: Added.
* platform/efl/fast/ruby/ruby-inline-table-expected.png:
* platform/efl/fast/runin/001-expected.png:
* platform/efl/fast/runin/generated-expected.png:
* platform/efl/fast/table/border-collapsing/equal-precedence-resolution-vertical-expected.png:
* platform/efl/fast/table/floatingTablePaintBackground-expected.png:
* platform/efl/fast/table/form-with-table-style-expected.png:
* platform/efl/fast/text/backslash-to-yen-sign-euc-expected.png:
* platform/efl/fast/text/emphasis-avoid-ruby-expected.png:
* platform/efl/fast/text/emphasis-combined-text-expected.png:
* platform/efl/fast/text/emphasis-overlap-expected.png:
* platform/efl/fast/text/large-text-composed-char-expected.png:
* platform/efl/fast/text/whitespace/002-expected.png:
* platform/efl/fast/text/whitespace/003-expected.png:
* platform/efl/fast/text/whitespace/004-expected.png:
* platform/efl/fast/text/whitespace/005-expected.png:
* platform/efl/fast/text/whitespace/006-expected.png:
* platform/efl/fast/text/whitespace/007-expected.png:
* platform/efl/fast/text/whitespace/008-expected.png:
* platform/efl/fast/text/whitespace/009-expected.png:
* platform/efl/fast/text/whitespace/010-expected.png:
* platform/efl/fast/text/whitespace/011-expected.png:
* platform/efl/fast/text/whitespace/012-expected.png:
* platform/efl/fast/text/whitespace/013-expected.png:
* platform/efl/fast/text/whitespace/014-expected.png:
* platform/efl/fast/text/whitespace/015-expected.png:
* platform/efl/fast/text/whitespace/016-expected.png:
* platform/efl/fast/text/whitespace/018-expected.png:
* platform/efl/fast/text/whitespace/020-expected.png:
* platform/efl/fast/text/whitespace/021-expected.png:
* platform/efl/fast/text/whitespace/025-expected.png:
* platform/efl/fast/text/whitespace/027-expected.png:
* platform/efl/fast/text/whitespace/030-expected.png:
* platform/efl/fast/text/whitespace/normal-after-nowrap-breaking-expected.png:
* platform/efl/fast/text/whitespace/pre-break-word-expected.png:
* platform/efl/fast/text/whitespace/pre-wrap-last-char-expected.png:
* platform/efl/fast/text/whitespace/pre-wrap-line-test-expected.png:
* platform/efl/fast/text/whitespace/pre-wrap-overflow-selection-expected.png:
* platform/efl/fast/text/whitespace/pre-wrap-spaces-after-newline-expected.png:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130330 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Build failure with css filters enabled and accelerated compositing disabled
https://bugs.webkit.org/show_bug.cgi?id=95908

Patch by Arnaud Renevier <a.renevier@sisa.samsung.com> on 2012-10-03
Reviewed by Tony Chang.

Do not try to setBackingNeedsRepaint when building without accelerated
compositing.

Also, allow painting with filter (paintsWithFilters returns true if
renderer has filter) when accelerated compositing is not enabled.

No functional change, so no new tests.

* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::styleChanged):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130331 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Adding total pixels painted and rasterized stats.
https://bugs.webkit.org/show_bug.cgi?id=98269

Patch by Glenn Hartmann <hartmanng@chromium.org> on 2012-10-03
Reviewed by James Robinson.

* chromium/public/WebRenderingStats.h:
(WebRenderingStats):
(WebKit::WebRenderingStats::WebRenderingStats):
(WebKit::WebRenderingStats::enumerateFields):

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