WebKit-https.git
7 years agoMove manual-tests out of WebCore.
abarth@webkit.org [Sat, 19 Nov 2011 02:43:03 +0000 (02:43 +0000)]
Move manual-tests out of WebCore.

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

7 years agoUnreviewed, rolling out r100835.
jamesr@google.com [Sat, 19 Nov 2011 02:40:33 +0000 (02:40 +0000)]
Unreviewed, rolling out r100835.
http://trac.webkit.org/changeset/100835
https://bugs.webkit.org/show_bug.cgi?id=72778

Broke some page scale tests

* DumpRenderTree/chromium/EventSender.cpp:
(EventSender::scalePageBy):

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

7 years agoPrepare to move manual-tests out of WebCore
abarth@webkit.org [Sat, 19 Nov 2011 02:36:58 +0000 (02:36 +0000)]
Prepare to move manual-tests out of WebCore
https://bugs.webkit.org/show_bug.cgi?id=72782

Reviewed by Eric Seidel.

.:

Update these files to refer to the new location of ManualTests.

* .gitattributes:
* Source/cmake/WebKitPackaging.cmake:

Tools:

Update this file to refer to the new location of ManualTests.

* Scripts/webkitpy/common/config/build.py:

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

7 years ago[chromium] Set min/max page scale factors when calling eventSender.scalePageBy to...
jamesr@google.com [Sat, 19 Nov 2011 02:25:54 +0000 (02:25 +0000)]
[chromium] Set min/max page scale factors when calling eventSender.scalePageBy to avoid clamping
https://bugs.webkit.org/show_bug.cgi?id=72778

Reviewed by Kenneth Russell.

Set the min/max page scale clamps when a test calls eventSender.scalePageBy() so that the scale isn't clamped.

* DumpRenderTree/chromium/EventSender.cpp:
(EventSender::scalePageBy):

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

7 years ago[WK2][Qt] Move Accelerated Composite animations to UIProcess
igor.oliveira@openbossa.org [Sat, 19 Nov 2011 02:23:32 +0000 (02:23 +0000)]
[WK2][Qt] Move Accelerated Composite animations to UIProcess
https://bugs.webkit.org/show_bug.cgi?id=72753

Source/WebCore:

Add helper method to synchronize animations in TextureMapper.

Reviewed by Noam Rosenthal.

* platform/graphics/texmap/TextureMapperNode.cpp:
(WebCore::TextureMapperNode::syncAnimationsRecursively):
* platform/graphics/texmap/TextureMapperNode.h:

Source/WebKit2:

Currently, all the accelerated compositing animations are applied in WebProcess and
for each frame generated, WebProcess needs to sync with UIProcess.

This patch moves the accelerated compositing animations to UIProcess reducing the
amount of synchronization messages between WebProcess and UIProcess, this is done
sending animations information to UIProcess.

Reviewed by Noam Rosenthal.

* Shared/WebCoreArgumentCoders.cpp:
(CoreIPC::::encode):
(CoreIPC::::decode):

Encode/Decode RefPtr<Animation> instead of Animation class. This facilitates
the data serialization.

* Shared/WebCoreArgumentCoders.h:
* Shared/WebLayerTreeInfo.cpp:
(WebKit::WebLayerInfo::encode):
(WebKit::WebLayerInfo::decode):
(WebKit::WebLayerAnimation::encode):
(WebKit::WebLayerAnimation::decode):

Create WebLayerAnimation struct, it is used to send animation information
to UIProcess.

* Shared/WebLayerTreeInfo.h:
(WebKit::WebLayerAnimation::WebLayerAnimation):
* UIProcess/LayerTreeHostProxy.h:
* UIProcess/qt/LayerTreeHostProxyQt.cpp:
(WebKit::LayerTreeHostProxy::LayerTreeHostProxy):
(WebKit::LayerTreeHostProxy::paintToCurrentGLContext):
(WebKit::LayerTreeHostProxy::updateSceneGraphUpdateTimerFired):
(WebKit::LayerTreeHostProxy::syncLayerParameters):
* WebProcess/WebCoreSupport/WebGraphicsLayer.cpp:
(WebCore::WebGraphicsLayer::addAnimation):
(WebCore::WebGraphicsLayer::pauseAnimation):
(WebCore::WebGraphicsLayer::removeAnimation):
(WebCore::WebGraphicsLayer::syncCompositingStateForThisLayerOnly):

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

7 years agoIDL changes for gamepad support
commit-queue@webkit.org [Sat, 19 Nov 2011 02:03:15 +0000 (02:03 +0000)]
IDL changes for gamepad support
https://bugs.webkit.org/show_bug.cgi?id=71753

Patch by Scott Graham <scottmg@chromium.org> on 2011-11-18
Reviewed by Adam Barth.

Source/WebCore:

IDL changes and associated plumbing to expose list of gamepad objects
on navigator object (per current spec). Full patch is
https://bugs.webkit.org/show_bug.cgi?id=69451. Only basic existence
test until more plumbing in future patches.

Test: gamepad/gamepad-api.html

* WebCore.gypi:
* bindings/generic/RuntimeEnabledFeatures.h:
(WebCore::RuntimeEnabledFeatures::setWebkitGamepadsEnabled):
(WebCore::RuntimeEnabledFeatures::webkitGamepadsEnabled):
* page/Gamepad.cpp: Added.
(WebCore::Gamepad::Gamepad):
(WebCore::Gamepad::axes):
(WebCore::Gamepad::buttons):
(WebCore::Gamepad::~Gamepad):
* page/Gamepad.h: Added.
* page/Gamepad.idl: Added.
* page/GamepadList.cpp: Added.
(WebCore::GamepadList::~GamepadList):
(WebCore::GamepadList::set):
(WebCore::GamepadList::length):
(WebCore::GamepadList::item):
* page/GamepadList.h: Added.
(WebCore::GamepadList::create):
(WebCore::GamepadList::GamepadList):
* page/GamepadList.idl: Added.
* page/Navigator.cpp:
(WebCore::Navigator::webkitGamepads):
* page/Navigator.h:
* page/Navigator.idl:

Source/WebKit/chromium:

Update to use vendor-prefixed enable.

* src/WebRuntimeFeatures.cpp:
(WebKit::WebRuntimeFeatures::enableGamepad):
(WebKit::WebRuntimeFeatures::isGamepadEnabled):

Tools:

Runtime enable gamepad in chromium test shell.

* DumpRenderTree/chromium/TestShell.cpp:
(TestShell::TestShell):

LayoutTests:

Add basic api existence test.

* gamepad/gamepad-api-expected.txt: Added.
* gamepad/gamepad-api.html: Added.
* gamepad/gamepad-test.js: Added.
(logConsole):
(testExpected):
(reportExpected):
(waitForEventAndEnd):
(waitForEvent._eventCallback):
(waitForEvent):
(waitForEventAndTest._eventCallback):
(waitForEventAndTest):
(waitForEventTestAndEnd):
(endTest):
(logResult):
(consoleWrite):
* platform/chromium/fast/dom/navigator-detached-no-crash-expected.txt:
* platform/efl/Skipped:
* platform/gtk/Skipped:
* platform/mac/Skipped:
* platform/qt/Skipped:
* platform/win/Skipped:
* platform/wincairo/Skipped:

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

7 years agoUnreviewed, rolling out r100693.
commit-queue@webkit.org [Sat, 19 Nov 2011 01:48:13 +0000 (01:48 +0000)]
Unreviewed, rolling out r100693.
http://trac.webkit.org/changeset/100693
https://bugs.webkit.org/show_bug.cgi?id=72779

This patch caused a rendering regression (see bug 72770)
(Requested by philip__ on #webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-11-18

Source/WebCore:

* rendering/RenderObject.cpp:
(WebCore::RenderObject::setStyle):
* rendering/style/RenderStyle.cpp:
(WebCore::RenderStyle::diff):

LayoutTests:

* fast/layers/layer-absolute-parent-opacity-expected.png: Removed.
* fast/layers/layer-absolute-parent-opacity-expected.txt: Removed.
* fast/layers/layer-absolute-parent-opacity.html: Removed.

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

7 years agoReflection on composited element doesn't update if the element changes to show no...
simon.fraser@apple.com [Sat, 19 Nov 2011 01:17:12 +0000 (01:17 +0000)]
Reflection on composited element doesn't update if the element changes to show no content
https://bugs.webkit.org/show_bug.cgi?id=72774

Source/WebCore:

Reviewed by Chris Marrin.

When a style change results in a reflected element losing its backing store,
we need to clear the backing stores on the layer clones as well.

Test: compositing/reflections/become-simple-composited-reflection.html

* platform/graphics/ca/GraphicsLayerCA.cpp:
(WebCore::GraphicsLayerCA::updateLayerDrawsContent):

LayoutTests:

Reviewed by Chris Marrin.

Test that removes the background-color of a reflected, composited element.

* compositing/reflections/become-simple-composited-reflection-expected.png: Added.
* compositing/reflections/become-simple-composited-reflection-expected.txt: Added.
* compositing/reflections/become-simple-composited-reflection.html: Added.

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

7 years agoConvert the encoding of JavaScriptGlue/Change from MacRoman to UTF-8 as it should be.
rniwa@webkit.org [Sat, 19 Nov 2011 01:12:06 +0000 (01:12 +0000)]
Convert the encoding of JavaScriptGlue/Change from MacRoman to UTF-8 as it should be.

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

7 years agoDFG JIT fails speculation on InstanceOf if the base is not an object
fpizlo@apple.com [Sat, 19 Nov 2011 01:00:34 +0000 (01:00 +0000)]
DFG JIT fails speculation on InstanceOf if the base is not an object
https://bugs.webkit.org/show_bug.cgi?id=72709

Reviewed by Geoff Garen.

InstanceOf already leverages the fact that we only allow the default
hasInstance implementation. So, if the base is predicted to possibly
be not an object and the CFA has not yet proven otherwise, InstanceOf
will abstain from speculating cell and instead return false if the
base is not a cell.

This appears to be a 1% speed-up on V8 on the V8 harness. 3-4% or so
speed-up in earley-boyer. Neutral according to bencher on SunSpider,
V8, and Kraken. In 32-bit, it's a 0.5% win on SunSpider and a 1.9%
win on V8 even on my harness, due to a 12.5% win on earley-boyer.

I also took this opportunity to make the code for InstanceOf common
between the two JITs. This was partially successful, in that the
"common code" has a bunch of #if's, but overall it seems like a code
size reduction.

* dfg/DFGAbstractState.cpp:
(JSC::DFG::AbstractState::execute):
* dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::compileInstanceOfForObject):
(JSC::DFG::SpeculativeJIT::compileInstanceOf):
* dfg/DFGSpeculativeJIT.h:
* dfg/DFGSpeculativeJIT32_64.cpp:
(JSC::DFG::SpeculativeJIT::compile):
* dfg/DFGSpeculativeJIT64.cpp:
(JSC::DFG::SpeculativeJIT::compile):

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

7 years ago[chromium] Use correct backing store for ChromiumDataObject in pasteboard writes.
dcheng@chromium.org [Sat, 19 Nov 2011 00:46:42 +0000 (00:46 +0000)]
[chromium] Use correct backing store for ChromiumDataObject in pasteboard writes.
https://bugs.webkit.org/show_bug.cgi?id=72767

Source/WebCore:

Reviewed by Tony Chang.

Covered by existing tests.

* editing/chromium/EditorChromium.cpp:
(WebCore::Editor::newGeneralClipboard):
* page/chromium/EventHandlerChromium.cpp:
(WebCore::EventHandler::createDraggingClipboard):
* platform/chromium/ChromiumDataObject.cpp:
(WebCore::ChromiumDataObject::types):
(WebCore::ChromiumDataObject::getData):
(WebCore::ChromiumDataObject::containsFilenames):
(WebCore::ChromiumDataObject::ChromiumDataObject):
* platform/chromium/ChromiumDataObject.h:
(WebCore::ChromiumDataObject::createFromPasteboard):
(WebCore::ChromiumDataObject::create):
(WebCore::ChromiumDataObject::storageMode):
* platform/chromium/ClipboardChromium.cpp:
(WebCore::ClipboardChromium::hasData):

Source/WebKit/chromium:

Reviewed by Tony Chang.

* src/WebDragData.cpp:
(WebKit::WebDragData::initialize):
(WebKit::WebDragData::assign):

LayoutTests:

* platform/chromium/test_expectations.txt:

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

7 years agoCrash with ranges across a detached, reparented node tree
cevans@google.com [Sat, 19 Nov 2011 00:43:23 +0000 (00:43 +0000)]
Crash with ranges across a detached, reparented node tree
https://bugs.webkit.org/show_bug.cgi?id=72757

Reviewed by Adam Barth.

Source/WebCore:

Test: fast/dom/move-detached-child-in-range.html

* dom/RangeBoundaryPoint.h:
(WebCore::RangeBoundaryPoint::childBefore): protect the raw child node from getting pulled from under us.

LayoutTests:

* fast/dom/move-detached-child-in-range-expected.txt: Added.
* fast/dom/move-detached-child-in-range.html: Added.

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

7 years agohttps://bugs.webkit.org/show_bug.cgi?id=72551
bdakin@apple.com [Sat, 19 Nov 2011 00:31:44 +0000 (00:31 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=72551
When the recommended scrollbar style changes, WKView's tracking options should
adjust accordingly
-and corresponding-
<rdar://problem/10409328>

Reviewed by Darin Adler.

Source/WebCore:

This new ChromeClient function is called when the recommended scrollbar style
changes. This way, WebKit can respond to the change by adjusting its mouse
tracking.
* page/ChromeClient.h:
(WebCore::ChromeClient::recommendedScrollbarStyleDidChange):

Existing ScrollableArea function scrollbarStyleChanged() now takes an int
indicating the new scrollbar style and a bool indicating whether it is necessary
to force an update. It used to be the case that this function was ONLY used to
force an update (and only called when an updated was needed), but now that it must
also call into the ChromeClient, it is necessary to include a bool tracking
whether we need to force an update. New implementation on FrameView is responsible
for calling ChromeClient, and then that calls into the pre-existing ScrollView
function for the forceUpdate part.
* page/FrameView.cpp:
(WebCore::FrameView::scrollbarStyleChanged):
* page/FrameView.h:
* platform/ScrollView.cpp:
(WebCore::ScrollView:: scrollbarStyleChanged):
* platform/ScrollView.h:
* platform/ScrollableArea.h:
(WebCore::ScrollableArea::scrollbarStyleChanged):
* platform/mac/ScrollAnimatorMac.mm:
(WebCore::ScrollAnimatorMac::updateScrollerStyle):

Source/WebKit2:

These new functions take care of passing along the
recommendedScrollbarStyleDidChange() message that originates in the ChromeClient.
* UIProcess/API/mac/PageClientImpl.h:
* UIProcess/PageClient.h:
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::recommendedScrollbarStyleDidChange):
* UIProcess/WebPageProxy.h:
* UIProcess/WebPageProxy.messages.in:
* WebProcess/WebCoreSupport/WebChromeClient.cpp:
(WebKit::WebChromeClient::recommendedScrollbarStyleDidChange):
* WebProcess/WebCoreSupport/WebChromeClient.h:

This is where we actually respond to the recommendedScrollbarStyleDidChange
message. We remove the existing tracking area and create a new tracking area with
the appropriate tracking options.
* UIProcess/API/mac/PageClientImpl.mm:
(WebKit::PageClientImpl::recommendedScrollbarStyleDidChange):

BuiltInPDFView inherits from WebCore::ScrollableArea, so scrollbarStyleChanged()
must now take two parameters like the one in ScrollableArea.
* WebProcess/Plugins/PDF/BuiltInPDFView.cpp:
(WebKit::BuiltInPDFView::scrollbarStyleChanged):
* WebProcess/Plugins/PDF/BuiltInPDFView.h:

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

7 years agoUse canplay instead of canplaythrough in http/tests/media to prevent timeout
adamk@chromium.org [Sat, 19 Nov 2011 00:29:14 +0000 (00:29 +0000)]
Use canplay instead of canplaythrough in http/tests/media to prevent timeout
https://bugs.webkit.org/show_bug.cgi?id=72758

Allow these tests to timeout until the bug is fixed.

Unreviewed gardening.

* platform/chromium/test_expectations.txt:

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

7 years agoFixes several more void functions in RenderObject that return values.
knorton@google.com [Sat, 19 Nov 2011 00:23:03 +0000 (00:23 +0000)]
Fixes several more void functions in RenderObject that return values.
https://bugs.webkit.org/show_bug.cgi?id=72750

Reviewed by Adam Barth.

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::updateBeforeAfterContent):
(WebCore::RenderBlock::addChildToContinuation):
(WebCore::RenderBlock::addChildToAnonymousColumnBlocks):
(WebCore::RenderBlock::addChild):
(WebCore::RenderBlock::addChildIgnoringContinuation):

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

7 years ago[chromium] Add some useful text to existing debug dump
commit-queue@webkit.org [Sat, 19 Nov 2011 00:14:49 +0000 (00:14 +0000)]
[chromium] Add some useful text to existing debug dump
https://bugs.webkit.org/show_bug.cgi?id=72576

Patch by Shawn Singh <shawnsingh@chromium.org> on 2011-11-18
Reviewed by James Robinson.

No new tests needed.

* platform/graphics/chromium/cc/CCLayerImpl.cpp:
(WebCore::CCLayerImpl::dumpLayerProperties):
* platform/graphics/chromium/cc/CCRenderSurface.cpp:
(WebCore::CCRenderSurface::dumpSurface):

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

7 years agoForgot to completely de-virtualize isDynamicScope
mhahnenberg@apple.com [Sat, 19 Nov 2011 00:12:13 +0000 (00:12 +0000)]
Forgot to completely de-virtualize isDynamicScope
https://bugs.webkit.org/show_bug.cgi?id=72763

Reviewed by Darin Adler.

* runtime/JSActivation.h: Removed virtual keyword.

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

7 years ago2011-10-24 Darin Fisher <darin@chromium.org>
darin@chromium.org [Fri, 18 Nov 2011 23:35:14 +0000 (23:35 +0000)]
2011-10-24  Darin Fisher  <darin@chromium.org>

        [chromium] Improve fullscreen API
        https://bugs.webkit.org/show_bug.cgi?id=70477

        Reviewed by Adam Barth.

        Move fullscreen entry points from WebView to WebWidget since they are
        just about widget geometry.

        Delay webkitfullscreenchange event until we know that we have entered
        fullscreen mode.  This is accomplished by expanding the WebKit APIs to
        differentiate will{Enter,Exit} from did{Enter,Exit} state changes.

        WebViewImpl is forced to keep a reference to the requested fullscreen
        element while we are requesting to enter fullscreen mode.  Once in
        fullscreen mode, we switch to keeping only a reference to the Frame
        containing the fullscreen element, which we drop upon exiting
        fullscreen mode.

        * public/WebView.h:
        * public/WebViewClient.h:
        * public/WebWidget.h:
        (WebKit::WebWidget::willEnterFullScreen):
        (WebKit::WebWidget::didEnterFullScreen):
        (WebKit::WebWidget::willExitFullScreen):
        (WebKit::WebWidget::didExitFullScreen):
        * public/WebWidgetClient.h:
        (WebKit::WebWidgetClient::enterFullScreen):
        (WebKit::WebWidgetClient::exitFullScreen):
        * src/ChromeClientImpl.cpp:
        (WebKit::ChromeClientImpl::supportsFullscreenForNode):
        (WebKit::ChromeClientImpl::enterFullscreenForNode):
        (WebKit::ChromeClientImpl::exitFullscreenForNode):
        (WebKit::ChromeClientImpl::supportsFullScreenForElement):
        (WebKit::ChromeClientImpl::enterFullScreenForElement):
        (WebKit::ChromeClientImpl::exitFullScreenForElement):
        * src/WebViewImpl.cpp:
        (WebKit::WebViewImpl::willEnterFullScreen):
        (WebKit::WebViewImpl::didEnterFullScreen):
        (WebKit::WebViewImpl::willExitFullScreen):
        (WebKit::WebViewImpl::didExitFullScreen):
        (WebKit::WebViewImpl::enterFullScreenForElement):
        (WebKit::WebViewImpl::exitFullScreenForElement):
        * src/WebViewImpl.h:

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

7 years agoCrash in JSC::DFG::OSRExitCompiler::compileExit(JSC::DFG::OSRExit const&, JSC::DFG...
fpizlo@apple.com [Fri, 18 Nov 2011 23:29:20 +0000 (23:29 +0000)]
Crash in JSC::DFG::OSRExitCompiler::compileExit(JSC::DFG::OSRExit const&, JSC::DFG::SpeculationRecovery*)
https://bugs.webkit.org/show_bug.cgi?id=72292

Reviewed by Darin Adler.

Fix this for 32_64.

* dfg/DFGOSRExitCompiler32_64.cpp:
(JSC::DFG::OSRExitCompiler::compileExit):

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

7 years agoREGRESSION: rtl horizontal scrollbar / resize bug - Body shifts on resize when scroll...
xji@chromium.org [Fri, 18 Nov 2011 23:22:37 +0000 (23:22 +0000)]
REGRESSION: rtl horizontal scrollbar / resize bug - Body shifts on resize when scrolled all the way to the left
https://bugs.webkit.org/show_bug.cgi?id=70395

Reviewed by Tony Chang.

Source/WebCore:

This patch fixes the problem in Mac and Chromium Mac.

The existing test fast/dom/rtl-scroll-to-leftmost-and-resize.html seems does not really work in Mac DRT
(the browswer window is not resized). It works in Chromium-Mac. And Chromium-Mac's code
is forked from Mac.

* platform/chromium/ScrollAnimatorChromiumMac.mm:
(WebCore::ScrollAnimatorChromiumMac::immediateScrollToPoint):
* platform/mac/ScrollAnimatorMac.mm:
(WebCore::ScrollAnimatorMac::immediateScrollToPoint):

LayoutTests:

The test still marks as FAIL in test_expectations because cg-mac might need rebase.

* platform/chromium-mac/fast/dom/rtl-scroll-to-leftmost-and-resize-expected.png: Added.
* platform/chromium-mac/fast/dom/rtl-scroll-to-leftmost-and-resize-expected.txt: Added.

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

7 years agoREGRESSION (r99924): broke 2 pasteboard tests on GTK
mrobinson@webkit.org [Fri, 18 Nov 2011 23:09:03 +0000 (23:09 +0000)]
REGRESSION (r99924): broke 2 pasteboard tests on GTK
https://bugs.webkit.org/show_bug.cgi?id=72131

Reviewed by Tony Chang.

Source/WebCore:

* platform/gtk/ClipboardGtk.cpp:
(WebCore::ClipboardGtk::clearData): Call clearAll now.
(WebCore::ClipboardGtk::clearAllData): Call clearAllExceptFilenames now.
* platform/gtk/DataObjectGtk.cpp:
(WebCore::DataObjectGtk::clearAllExceptFilenames): Renamed from clear.
(WebCore::DataObjectGtk::clearAll): Added this method which also clear filenames.
* platform/gtk/DataObjectGtk.h:
* platform/gtk/PasteboardGtk.cpp: Call clear before setting new clipboard data.
(WebCore::Pasteboard::writeSelection): Ditto.
(WebCore::Pasteboard::writePlainText): Ditto.
(WebCore::Pasteboard::writeURL): Ditto.
(WebCore::Pasteboard::writeImage): Ditto.
* platform/gtk/PasteboardHelper.cpp:
(WebCore::clearClipboardContentsCallback): Use the clearAll method now.

Source/WebKit/gtk:

* WebCoreSupport/EditorClientGtk.cpp:
(WebKit::setSelectionPrimaryClipboardIfNeeded): Use the new clearAll method.

LayoutTests:

* platform/gtk/Skipped: Unskip passing tests.

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

7 years ago[Qt][Wk2] Add an API test for scroll request from javascript
commit-queue@webkit.org [Fri, 18 Nov 2011 23:01:32 +0000 (23:01 +0000)]
[Qt][Wk2] Add an API test for scroll request from javascript
https://bugs.webkit.org/show_bug.cgi?id=72407

New API test added for QQuickWebView for javascript scroll request
Patch by Dinu Jacob <dinu.jacob@nokia.com> on 2011-11-18
Reviewed by Simon Hausmann.

* UIProcess/API/qt/tests/html/scroll.html: Added.
* UIProcess/API/qt/tests/qquickwebview/tst_qquickwebview.cpp:
(tst_QQuickWebView::scrollRequest):

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

7 years agoLayout Test accessibility/anonymous-render-block-in-continuation-causes-crash.html...
adamk@chromium.org [Fri, 18 Nov 2011 22:52:56 +0000 (22:52 +0000)]
Layout Test accessibility/anonymous-render-block-in-continuation-causes-crash.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=72761

Mark test as PASS TIMEOUT as it occasionally times out on the bots.

Unreviewed gardening.

* platform/chromium/test_expectations.txt:

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

7 years ago[chromium] The exclusions tests are all passing. Remove the
tony@chromium.org [Fri, 18 Nov 2011 22:26:57 +0000 (22:26 +0000)]
[chromium] The exclusions tests are all passing. Remove the
test_expectations.txt entry for them.

* platform/chromium/test_expectations.txt:

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

7 years ago[chromium] Test fast/events/dropzone-002.html is failing on Leopard
adamk@chromium.org [Fri, 18 Nov 2011 22:24:52 +0000 (22:24 +0000)]
[chromium] Test fast/events/dropzone-002.html is failing on Leopard
https://bugs.webkit.org/show_bug.cgi?id=61625

Test is no longer failing since the end of October.

Unreviewed gardening.

* platform/chromium/test_expectations.txt:

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

7 years agoDe-virtualize ExecutableBase::intrinsic
mhahnenberg@apple.com [Fri, 18 Nov 2011 22:13:37 +0000 (22:13 +0000)]
De-virtualize ExecutableBase::intrinsic
https://bugs.webkit.org/show_bug.cgi?id=72548

Reviewed by Oliver Hunt.

* runtime/Executable.cpp:
(JSC::ExecutableBase::intrinsic): Dynamic cast to NativeExecutable. If successful, call intrinsic, otherwise return default value.
* runtime/Executable.h:
* runtime/JSCell.h:
(JSC::jsDynamicCast): Add jsDynamicCast that duplicates the functionality of dynamic_cast in C++ but uses ClassInfo
rather than requiring C++ RTTI.

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

7 years agoRebaseline chromium expectations after r100800.
adamk@chromium.org [Fri, 18 Nov 2011 21:42:13 +0000 (21:42 +0000)]
Rebaseline chromium expectations after r100800.
Note that previous rebaseline was actually meant for r100786.

Unreviewed gardening.

* platform/chromium-win/animations/additive-transform-animations-expected.png: Added.
* platform/chromium-win/animations/additive-transform-animations-expected.txt: Added.
* platform/chromium/animations/additive-transform-animations-expected.png: Added.

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

7 years agoRebaseline chromium expectations after r100800.
adamk@chromium.org [Fri, 18 Nov 2011 21:39:52 +0000 (21:39 +0000)]
Rebaseline chromium expectations after r100800.

Unreviewed gardening.

* platform/chromium-linux/css3/images/cross-fade-overflow-position-expected.png: Added.
* platform/chromium-mac-snowleopard/css3/images/cross-fade-overflow-position-expected.png: Added.
* platform/chromium-win/css3/images/cross-fade-overflow-position-expected.png: Added.

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

7 years agoLayout Test fast/writing-mode/japanese-rl-text-with-broken-font.html is flaky
adamk@chromium.org [Fri, 18 Nov 2011 21:26:23 +0000 (21:26 +0000)]
Layout Test fast/writing-mode/japanese-rl-text-with-broken-font.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=66900

Re-adding SNOWLEOPARD flakiness on CG bots that seems to have been
erroneously removed.

Unreviewed gardening.

* platform/chromium/test_expectations.txt:

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

7 years agoAccess key should work on all elements.
commit-queue@webkit.org [Fri, 18 Nov 2011 21:19:14 +0000 (21:19 +0000)]
Access key should work on all elements.
https://bugs.webkit.org/show_bug.cgi?id=71854

Patch by Vineet Chaudhary <vineet.chaudhary@motorola.com> on 2011-11-18
Reviewed by Ryosuke Niwa.

Source/WebCore:

All HTML elements can have the accesskey content attribute set.
Specification http://dev.w3.org/html5/spec/Overview.html#the-accesskey-attribute
Adding "accessKey" attribute to HTMLElement.idl file as [Reflect].

Test: fast/forms/access-key-for-all-elements.html

* bindings/objc/PublicDOMInterfaces.h: Moved properties form subclass to base class.
* html/BaseButtonInputType.cpp:
(WebCore::BaseButtonInputType::accessKeyAction): Renamed variable sendToAnyElement to sendMouseEvents.
* html/BaseButtonInputType.h: Ditto
* html/BaseCheckableInputType.cpp:
(WebCore::BaseCheckableInputType::accessKeyAction): Ditto
* html/BaseCheckableInputType.h: Ditto
* html/HTMLAnchorElement.cpp:
(WebCore::HTMLAnchorElement::accessKeyAction): Ditto
* html/HTMLAnchorElement.h: Ditto
* html/HTMLAnchorElement.idl: Removed redundant IDL attribute entries.
* html/HTMLAreaElement.idl: Removed redundant IDL attribute entries.
* html/HTMLButtonElement.cpp:
(WebCore::HTMLButtonElement::accessKeyAction): Renamed variable sendToAnyElement to sendMouseEvents.
* html/HTMLButtonElement.h: Ditto
* html/HTMLButtonElement.idl: Removed redundant IDL attribute entries.
* html/HTMLElement.cpp:
(WebCore::HTMLElement::accessKeyAction): Renamed variable sendToAnyElement to sendMouseEvents.
If the element does not have a defined activation behavior, fire a click event at the element.
* html/HTMLElement.h: Ditto
* html/HTMLElement.idl: Added accessKey IDL attribute.
* html/HTMLInputElement.cpp:
(WebCore::HTMLInputElement::accessKeyAction): Renamed variable sendToAnyElement to sendMouseEvents.
* html/HTMLInputElement.h: Ditto
* html/HTMLInputElement.idl: Removed redundant IDL attribute entries.
* html/HTMLLabelElement.cpp:
(WebCore::HTMLLabelElement::accessKeyAction): Renamed variable sendToAnyElement to sendMouseEvents.
* html/HTMLLabelElement.h: Ditto
* html/HTMLLabelElement.idl: Removed redundant IDL attribute entries.
* html/HTMLLegendElement.cpp:
(WebCore::HTMLLegendElement::accessKeyAction): Renamed variable sendToAnyElement to sendMouseEvents.
* html/HTMLLegendElement.h: Ditto
* html/HTMLLegendElement.idl: Removed redundant IDL attribute entries.
* html/HTMLOptGroupElement.h: Renamed variable sendToAnyElement to sendMouseEvents.
* html/HTMLSelectElement.cpp:
(WebCore::HTMLSelectElement::accessKeyAction): Ditto
* html/HTMLSelectElement.h: Ditto
* html/HTMLTextAreaElement.h: Ditto
* html/HTMLTextAreaElement.idl: Removed redundant IDL attribute entries.
* html/HiddenInputType.h: Renamed variable sendToAnyElement to sendMouseEvents.
* html/InputType.h: Ditto
* html/RangeInputType.cpp:
(WebCore::RangeInputType::accessKeyAction): Ditto
* html/RangeInputType.h: Ditto

LayoutTests:

Added test case to check whether all elements can also have accessKey attribute.

* fast/forms/access-key-expected.txt:
* fast/forms/access-key-for-all-elements-expected.txt: Added.
* fast/forms/access-key-for-all-elements.html: Added.
* fast/forms/access-key.html: Added more test coverage for select and textarea elements.

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

7 years agoLayout Test accessibility/loading-iframe-sends-notification.html is slow on Win dbg
adamk@chromium.org [Fri, 18 Nov 2011 20:07:26 +0000 (20:07 +0000)]
Layout Test accessibility/loading-iframe-sends-notification.html is slow on Win dbg
https://bugs.webkit.org/show_bug.cgi?id=72747

Unreviewed gardening.

* platform/chromium/test_expectations.txt:

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

7 years agoRemove expectation for fast/js/delete-syntax.html, which seems to have
adamk@chromium.org [Fri, 18 Nov 2011 19:57:02 +0000 (19:57 +0000)]
Remove expectation for fast/js/delete-syntax.html, which seems to have
been fixed by http://code.google.com/p/v8/source/detail?r=9993.

Unreviewed gardening.

* platform/chromium/test_expectations.txt:

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

7 years agoRemove IMAGE suppression for css3/images/cross-fade-overflow-position.html
adamk@chromium.org [Fri, 18 Nov 2011 19:32:58 +0000 (19:32 +0000)]
Remove IMAGE suppression for css3/images/cross-fade-overflow-position.html
to let me use garden-o-matic for rebaselining.

Unreviewed gardening.

* platform/chromium/test_expectations.txt:

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

7 years agoInfinite recursion in WebCore::RenderInline::computeRectForRepaint
jchaffraix@webkit.org [Fri, 18 Nov 2011 19:20:32 +0000 (19:20 +0000)]
Infinite recursion in WebCore::RenderInline::computeRectForRepaint
https://bugs.webkit.org/show_bug.cgi?id=52144

Reviewed by Tony Chang.

The bug got fixed, landing the test. As I could not test the old test case, it is
landed as-is (apart from making it dumpAsText which was deemed safe).

* editing/execCommand/infinite-recursion-computeRectForRepaint-expected.txt: Added.
* editing/execCommand/infinite-recursion-computeRectForRepaint.html: Added.

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

7 years agoSource/WebCore: Appearance of compound transform animations under apps linked on...
simon.fraser@apple.com [Fri, 18 Nov 2011 19:18:19 +0000 (19:18 +0000)]
Source/WebCore: Appearance of compound transform animations under apps linked on SnowLeopard is incorrect
https://bugs.webkit.org/show_bug.cgi?id=72641
and
<rdar://problem/10314267>

Reviewed by Dean Jackson.

GraphicsLayerCA contains a "linked on or after" check to account for a bug in
Core Animation on SnowLeopard and earlier, which is that CA would apply the list
of animations in reverse order.

Our previous fix was incorrect, because it only adjusted the 'additive' property
of the animation list based on ordering, rather than flipping the entire list.
This change reverses the list of animations before giving them to CA, which fixes
the bug.

Test: animations/additive-transform-animations.html

* platform/graphics/ca/GraphicsLayerCA.cpp:
(WebCore::GraphicsLayerCA::appendToUncommittedAnimations):
(WebCore::GraphicsLayerCA::createTransformAnimationsFromKeyframes):
* platform/graphics/ca/GraphicsLayerCA.h:

LayoutTests: Appearance of compound transform animations under apps linked on SnowLeopard is incorrect
https://bugs.webkit.org/show_bug.cgi?id=72641

Reviewed by Dean Jackson.

Pixel test for a hardware-animated tranform, where order of operations matters.

* animations/additive-transform-animations-expected.png: Added.
* animations/additive-transform-animations.html: Added.
* platform/mac/animations/additive-transform-animations-expected.txt: Added.

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

7 years agoIgnore an ANGLE leak that is not WebKit's fault
aroben@apple.com [Fri, 18 Nov 2011 19:15:42 +0000 (19:15 +0000)]
Ignore an ANGLE leak that is not WebKit's fault

* Scripts/old-run-webkit-tests:
(countAndPrintLeaks):
* Scripts/webkitpy/layout_tests/port/leakdetector.py:
(LeakDetector._callstacks_to_exclude_from_leaks):
Added ScanFromString to the call stacks to exclude on all OS versions.

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

7 years agoSuppress IMAGE failures for css3/images/cross-fade-overflow-position.html
adamk@chromium.org [Fri, 18 Nov 2011 19:02:01 +0000 (19:02 +0000)]
Suppress IMAGE failures for css3/images/cross-fade-overflow-position.html
Needs rebaseline after r100786.

Unreviewed gardening.

* platform/chromium/test_expectations.txt:

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

7 years agobool WebChromeClient::shouldInterruptJavaScript casts pointer to bool and always...
adauria@apple.com [Fri, 18 Nov 2011 18:58:02 +0000 (18:58 +0000)]
bool WebChromeClient::shouldInterruptJavaScript casts pointer to bool and always returns true
https://bugs.webkit.org/show_bug.cgi?id=72568

Reviewed by David Kilzer.

WebChromeClient::shouldInterruptJavaScript called CallUIDelegate, which used an id
as the return value, which was then cast to a bool and always returned true. This
patch uses CallUIDelegateReturningBoolean instead of CallUIDelegate, with the default
return value of NO.

* WebCoreSupport/WebChromeClient.mm:
(WebChromeClient::shouldInterruptJavaScript):

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

7 years agoIgnore another Lion-specific leak that is not WebKit's fault
aroben@apple.com [Fri, 18 Nov 2011 18:39:56 +0000 (18:39 +0000)]
Ignore another Lion-specific leak that is not WebKit's fault

* Scripts/old-run-webkit-tests:
(countAndPrintLeaks):
* Scripts/webkitpy/layout_tests/port/leakdetector.py:
(LeakDetector._callstacks_to_exclude_from_leaks):
Added SecTransformExecute to the call stacks to exclude.

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

7 years agoNo'am Rosenthal <noam.rosenthal@nokia.com>
igor.oliveira@openbossa.org [Fri, 18 Nov 2011 18:36:17 +0000 (18:36 +0000)]
No'am Rosenthal  <noam.rosenthal@nokia.com>

WebKit2: Enable serializing of data types needed for cross-process accelerated compositing
https://bugs.webkit.org/show_bug.cgi?id=61694

Add an ArgumentCoder for KeyframeValueList, and modify the TimingFunction ArgumentCoder to
allow encoding const TimingFunctions and not just RefPtr<TimingFunction>.

Reviewed by Simon Hausmann.

* Scripts/webkit2/messages.py:
* Shared/WebCoreArgumentCoders.cpp:
(CoreIPC::::encode):
(CoreIPC::::decode):
* Shared/WebCoreArgumentCoders.h:

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

7 years agoASSERTION FAILED: fontCache()->generation() == m_generation (running new-run-webkit...
adamk@chromium.org [Fri, 18 Nov 2011 18:24:02 +0000 (18:24 +0000)]
ASSERTION FAILED: fontCache()->generation() == m_generation (running new-run-webkit-tests)
https://bugs.webkit.org/show_bug.cgi?id=59552

Added CRASH to expectations for fast/encoding/parser-tests-50.html.
It's only crashing on Snow Leopard, but I didn't want to split the
existing line in two.

Unreviewed gardening.

* platform/chromium/test_expectations.txt:

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

7 years ago[CMake] Remove duplicate dtoa files from CMakeLists.txt
paroga@webkit.org [Fri, 18 Nov 2011 18:11:27 +0000 (18:11 +0000)]
[CMake] Remove duplicate dtoa files from CMakeLists.txt
https://bugs.webkit.org/show_bug.cgi?id=72711

Reviewed by Brent Fulgham.

* wtf/CMakeLists.txt:

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

7 years ago-webkit-cross-fade rendered incorrectly in overflow divs
timothy_horton@apple.com [Fri, 18 Nov 2011 18:06:02 +0000 (18:06 +0000)]
-webkit-cross-fade rendered incorrectly in overflow divs
https://bugs.webkit.org/show_bug.cgi?id=72693
<rdar://problem/10468564>

Reviewed by Simon Fraser.

Respect the desired source rectangle when rendering the cross-fade.

Test: css3/images/cross-fade-overflow-position.html

* platform/graphics/CrossfadeGeneratedImage.cpp:
(WebCore::CrossfadeGeneratedImage::drawCrossfade):
(WebCore::CrossfadeGeneratedImage::draw):
(WebCore::CrossfadeGeneratedImage::drawPattern):
* platform/graphics/CrossfadeGeneratedImage.h:

Add a test to make sure that -webkit-cross-fade renders correctly inside overflowed areas.

* css3/images/cross-fade-overflow-position.html: Added.
* css3/images/resources/half-circles.svg: Added.
* platform/mac/css3/images/cross-fade-overflow-position-expected.png: Added.
* platform/mac/css3/images/cross-fade-overflow-position-expected.txt: Added.

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

7 years ago[CMake] Add possibility to overwrite WEBKIT_PORT_DIR in platform specific files
paroga@webkit.org [Fri, 18 Nov 2011 17:49:11 +0000 (17:49 +0000)]
[CMake] Add possibility to overwrite WEBKIT_PORT_DIR in platform specific files
https://bugs.webkit.org/show_bug.cgi?id=72710

Reviewed by Brent Fulgham.

.:

* Source/CMakeLists.txt:

Source/WebKit:

* CMakeLists.txt:

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

7 years agoASSERTION FAILED: fontCache()->generation() == m_generation (running new-run-webkit...
steveblock@google.com [Fri, 18 Nov 2011 17:33:22 +0000 (17:33 +0000)]
ASSERTION FAILED: fontCache()->generation() == m_generation (running new-run-webkit-tests)
https://bugs.webkit.org/show_bug.cgi?id=59552

Add CRASH expectation for
fast/frames/sandboxed-iframe-parsing-space-characters.html on Mac 10.6
dbg.

Unreviewed gardening.

* platform/chromium/test_expectations.txt:

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

7 years ago[GTK] Accessibility API tests not loading Gtk's accessibility implementation
mario@webkit.org [Fri, 18 Nov 2011 17:05:18 +0000 (17:05 +0000)]
[GTK] Accessibility API tests not loading Gtk's accessibility implementation
https://bugs.webkit.org/show_bug.cgi?id=72732

Reviewed by Philippe Normand.

Ensure that the GAIL module is being loaded by avoiding using
gtk_test_init() directly, but a modified version of it.

* tests/testatk.c:
(testWebkitAtkParentForRootObject): Use a normal GtkWidget (a
GtkWindow) as the parent container for the webView, instead of
using a dummy webView for that, which was hackish.
(testWebkitAtkSetParentForObject): Use normal GtkWidgets instead
of dummy webViews (a GtkWindow and a GtkButton).
(initializeTestingFramework): New function, identical to
gtk_test_init(), but loading GAIL as the only GTK module.
(main): Use initializeTestingFramework().

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

7 years agoUnreviewed build fix; r100686 broke the EFL build when Geolocation
paroga@webkit.org [Fri, 18 Nov 2011 16:57:16 +0000 (16:57 +0000)]
Unreviewed build fix; r100686 broke the EFL build when Geolocation
support is enabled.

Patch by Raphael Kubo da Costa <kubo@profusion.mobi> on 2011-11-18

* platform/efl/GeolocationServiceEfl.cpp: Only declare
s_factoryFunction if CLIENT_BASED_GEOLOCATION is off, otherwise it is
also declared in GeolocationService.cpp.

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

7 years ago[TextureMapper] computePerspectiveTransformIfNeeded is called twice in TextureMapperN...
igor.oliveira@openbossa.org [Fri, 18 Nov 2011 16:43:45 +0000 (16:43 +0000)]
[TextureMapper] computePerspectiveTransformIfNeeded is called twice in TextureMapperNode::syncCompositingState
https://bugs.webkit.org/show_bug.cgi?id=72727

TextureMapperNode::computeAllTransforms already has a call to TextureMapperNode::computePerspectiveTransformIfNeeded,
so it does not need to be called again after TextureMapperNode::computeAllTransforms.

Reviewed by Noam Rosenthal.

* platform/graphics/texmap/TextureMapperNode.cpp:
(WebCore::TextureMapperNode::syncCompositingState):

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

7 years ago[Chromium] fast/filesystem/file-writer-abort-depth.html crashes occasionally on Win dbg
steveblock@google.com [Fri, 18 Nov 2011 16:38:46 +0000 (16:38 +0000)]
[Chromium] fast/filesystem/file-writer-abort-depth.html crashes occasionally on Win dbg
https://bugs.webkit.org/show_bug.cgi?id=72631

Add CRASH expectation for fast/filesystem/file-writer-abort.html on Linux.

Unreviewed gardening.

* platform/chromium/test_expectations.txt:

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

7 years ago[Qt] Guard for the viewportInteractionEngine as it doesn't always exist.
kenneth@webkit.org [Fri, 18 Nov 2011 16:18:53 +0000 (16:18 +0000)]
[Qt] Guard for the viewportInteractionEngine as it doesn't always exist.

Reviewed by Antonio Gomes.

The engine is non-existent when the view is configured to use desktop
behavior.

* UIProcess/qt/QtWebPageProxy.cpp:
(QtWebPageProxy::handleWheelEvent):
(QtWebPageProxy::didFindZoomableArea):

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

7 years agoAdd test for strange scrollbars with non-integer scaled SVG image
commit-queue@webkit.org [Fri, 18 Nov 2011 16:03:00 +0000 (16:03 +0000)]
Add test for strange scrollbars with non-integer scaled SVG image
https://bugs.webkit.org/show_bug.cgi?id=43018

Patch by Philip Rogers <pdr@google.com> on 2011-11-18
Reviewed by Nikolas Zimmermann.

* svg/as-image/resources/green-non-integer-size-rect.svg: Added.
* svg/as-image/svg-non-integer-scaled-image-expected.png: Added.
* svg/as-image/svg-non-integer-scaled-image-expected.txt: Added.
* svg/as-image/svg-non-integer-scaled-image.html: Added.

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

7 years agoAnother attempt at rebaselining fast/box-shadow for Chromium Mac 10.5.
steveblock@google.com [Fri, 18 Nov 2011 15:47:36 +0000 (15:47 +0000)]
Another attempt at rebaselining fast/box-shadow for Chromium Mac 10.5.
It seems the rebaseline tool made a mess of
http://trac.webkit.org/changeset/100742.

Unreviewed gardening.

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

7 years agoInspector tests flakily crashing on Linux dbg canary
steveblock@google.com [Fri, 18 Nov 2011 15:43:28 +0000 (15:43 +0000)]
Inspector tests flakily crashing on Linux dbg canary
https://bugs.webkit.org/show_bug.cgi?id=72651

Add CRASH and TIMEOUT expectations for severla more tests.

Unreviewed gardening.

* platform/chromium/test_expectations.txt:

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

7 years ago[Chromium] fast/canvas/canvas-alphaImageData-behavior.html has TEXT failure on Mac...
steveblock@google.com [Fri, 18 Nov 2011 15:27:25 +0000 (15:27 +0000)]
[Chromium] fast/canvas/canvas-alphaImageData-behavior.html has TEXT failure on Mac 10.5 CG
https://bugs.webkit.org/show_bug.cgi?id=72728

Add a TEXT expectation for canvas/philip/tests/2d.imageData.put.unchanged.html.

Unreviewed gardening.

* platform/chromium/test_expectations.txt:

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

7 years ago[Chromium] fast/canvas/canvas-alphaImageData-behavior.html has TEXT failure on Mac...
steveblock@google.com [Fri, 18 Nov 2011 15:22:28 +0000 (15:22 +0000)]
[Chromium] fast/canvas/canvas-alphaImageData-behavior.html has TEXT failure on Mac 10.5 CG
https://bugs.webkit.org/show_bug.cgi?id=72728

Add a TEXT expectation.

Unreviewed gardening.

* platform/chromium/test_expectations.txt:

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

7 years agoUnreviewed, skip another GTK crasher.
philn@webkit.org [Fri, 18 Nov 2011 14:58:59 +0000 (14:58 +0000)]
Unreviewed, skip another GTK crasher.

* platform/gtk/Skipped: Skip fast/borders/inline-mask-overlay-image-outset.html

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

7 years agoRebaseline remaining fast/ tests for Chromium Mac 10.5 CG after http://crrev.com...
steveblock@google.com [Fri, 18 Nov 2011 14:56:15 +0000 (14:56 +0000)]
Rebaseline remaining fast/ tests for Chromium Mac 10.5 CG after crrev.com/110543

Unreviewed gardening.

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

7 years ago[GTK] Send DidCreateDestination to DownloadProxy when destination has been created
carlosgc@webkit.org [Fri, 18 Nov 2011 14:50:57 +0000 (14:50 +0000)]
[GTK] Send DidCreateDestination to DownloadProxy when destination has been created
https://bugs.webkit.org/show_bug.cgi?id=72724

Reviewed by Martin Robinson.

* WebProcess/Downloads/soup/DownloadSoup.cpp:
(WebKit::DownloadClient::didReceiveResponse): Call
didCreateDestination() when destination URI has been successfully
created.

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

7 years ago[GTK] Cancel current download operation before download object is deleted
carlosgc@webkit.org [Fri, 18 Nov 2011 14:48:40 +0000 (14:48 +0000)]
[GTK] Cancel current download operation before download object is deleted
https://bugs.webkit.org/show_bug.cgi?id=72721

Reviewed by Martin Robinson.

It fixes a crash in the web process when a download finishes early
due to a failure.

* WebProcess/Downloads/soup/DownloadSoup.cpp:
(WebKit::Download::cancel): Delete current ResourceHandle.
(WebKit::Download::platformInvalidate): If there's a
ResourceHandle active, cancel the download operation and delete
the handle.
(WebKit::Download::platformDidFinish): Delete current ResourceHandle.

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

7 years ago[GTK] Downloads not started by WebView only fail for transport errors
carlosgc@webkit.org [Fri, 18 Nov 2011 14:45:57 +0000 (14:45 +0000)]
[GTK] Downloads not started by WebView only fail for transport errors
https://bugs.webkit.org/show_bug.cgi?id=72718

Reviewed by Martin Robinson.

Source/WebKit/gtk:

Abort the download with an error if the response contains an
error code. It adds a new test case to the download unit tests.

* tests/testdownload.c:
(notifyDownloadStatusCallback):
(serverCallback):
(test_webkit_download_not_found):
(main):
* webkit/webkitdownload.cpp:
(DownloadClient::didReceiveResponse): Check whether http status of
the response is an error code and emit error signal in such case.

Source/WebKit2:

* WebProcess/Downloads/soup/DownloadSoup.cpp:
(WebKit::DownloadClient::didReceiveResponse): Check if the http
status of the response is an error code and finish the download
with an error in such case.

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

7 years agoRebaseline remaining svg/ tests for Chromium Mac 10.5 CG after http://crrev.com/110543
steveblock@google.com [Fri, 18 Nov 2011 14:43:10 +0000 (14:43 +0000)]
Rebaseline remaining svg/ tests for Chromium Mac 10.5 CG after crrev.com/110543

Unreviewed gardening.

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

7 years ago[Qt] Support customizing JS alert/confirm/prompt dialogs using QML
caio.oliveira@openbossa.org [Fri, 18 Nov 2011 14:33:01 +0000 (14:33 +0000)]
[Qt] Support customizing JS alert/confirm/prompt dialogs using QML
https://bugs.webkit.org/show_bug.cgi?id=72319

Reviewed by Simon Hausmann.

Adds alertDialog, confirmDialog and promptDialog properties to QQuickWebView's
privateObject. These are QML components that are created by the webview when the
corresponding function is called in JS.

The dialogs are created in a context that contains a model object, similar to
ListView delegates. The "message" and "defaultValue" parameters are available
in the model object, as well as slots expected to be called by the dialog.

This commit removes the old code for supporting QWidget builtin dialogs. The code
wasn't working properly (closing any dialog was closing the app after QWindow
refactoring in Qt5).

* Target.pri:
* UIProcess/API/qt/qquickwebview.cpp:
(QQuickWebViewPrivate::runJavaScriptAlert):
(QQuickWebViewPrivate::runJavaScriptConfirm):
(QQuickWebViewPrivate::runJavaScriptPrompt):
(QQuickWebViewExperimental::alertDialog):
(QQuickWebViewExperimental::setAlertDialog):
(QQuickWebViewExperimental::confirmDialog):
(QQuickWebViewExperimental::setConfirmDialog):
(QQuickWebViewExperimental::promptDialog):
(QQuickWebViewExperimental::setPromptDialog):
* UIProcess/API/qt/qquickwebview_p.h:
* UIProcess/API/qt/qquickwebview_p_p.h:
* UIProcess/API/qt/tests/qmltests/WebView/tst_javaScriptDialogs.qml: Added.
* UIProcess/API/qt/tests/qmltests/common/alert.html: Added.
* UIProcess/API/qt/tests/qmltests/common/confirm.html: Added.
* UIProcess/API/qt/tests/qmltests/common/prompt.html: Added.
* UIProcess/API/qt/tests/qmltests/qmltests.pro:
* UIProcess/qt/QtDialogRunner.cpp: Added.
(QtDialogRunner::QtDialogRunner):
(QtDialogRunner::~QtDialogRunner):
(DialogContextObject::DialogContextObject):
(DialogContextObject::message):
(DialogContextObject::defaultValue):
(DialogContextObject::dismiss):
(DialogContextObject::accept):
(DialogContextObject::reject):
(QtDialogRunner::initForAlert):
(QtDialogRunner::initForConfirm):
(QtDialogRunner::initForPrompt):
(QtDialogRunner::createDialog):
* UIProcess/qt/QtDialogRunner.h: Added.
(QtDialogRunner::wasAccepted):
(QtDialogRunner::result):
(QtDialogRunner::onAccepted):

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

7 years agoRebaseline fast/writing-mode for Chromium Mac 10.5 CG after http://crrev.com/110543
steveblock@google.com [Fri, 18 Nov 2011 14:23:01 +0000 (14:23 +0000)]
Rebaseline fast/writing-mode for Chromium Mac 10.5 CG after crrev.com/110543

Unreviewed gardening.

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

7 years agoFix compilation warning in ComplexTextControllerCoreText.mm
mihnea@adobe.com [Fri, 18 Nov 2011 14:16:28 +0000 (14:16 +0000)]
Fix compilation warning in ComplexTextControllerCoreText.mm
https://bugs.webkit.org/show_bug.cgi?id=72702

Reviewed by Andreas Kling.

No functionality changed, so no new tests.

* platform/graphics/mac/ComplexTextControllerCoreText.mm:
(WebCore::ComplexTextController::collectComplexTextRunsForCharactersCoreText):

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

7 years ago[Qt] Support wheel event together with resizesToContents
kenneth@webkit.org [Fri, 18 Nov 2011 14:15:13 +0000 (14:15 +0000)]
[Qt] Support wheel event together with resizesToContents

Reviewed by Simon Hausmann.

* UIProcess/API/qt/qquickwebpage.cpp:
* UIProcess/qt/QtViewportInteractionEngine.cpp:
(WebKit::QtViewportInteractionEngine::wheelEvent):
* UIProcess/qt/QtViewportInteractionEngine.h:
* UIProcess/qt/QtWebPageProxy.cpp:
(QtWebPageProxy::handleWheelEvent):

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

7 years ago[Qt] Enable WebSocket hybi tests
yutak@chromium.org [Fri, 18 Nov 2011 14:00:33 +0000 (14:00 +0000)]
[Qt] Enable WebSocket hybi tests
https://bugs.webkit.org/show_bug.cgi?id=72687

Reviewed by Simon Hausmann.

Source/WebKit/qt:

* WebCoreSupport/DumpRenderTreeSupportQt.cpp:
(DumpRenderTreeSupportQt::defaultHixie76WebSocketProtocolEnabled):
(DumpRenderTreeSupportQt::setHixie76WebSocketProtocolEnabled):
Call WebCore::Settings::setUseHixie76WebSocketProtocol() to switch WebSocket protocols.
* WebCoreSupport/DumpRenderTreeSupportQt.h:

Tools:

Let LayoutTestControllerQt be able to switch WebSocket protocols via overridePreference().

* DumpRenderTree/qt/DumpRenderTreeQt.cpp:
(WebCore::WebPage::resetSettings):
* DumpRenderTree/qt/LayoutTestControllerQt.cpp:
(LayoutTestController::overridePreference):

LayoutTests:

* platform/qt/Skipped:
Unskip WebSocket hybi tests. Skip some of them which are known to fail probably due to
a bug in SocketStreamHandleQt implementation.

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

7 years ago[Qt][WK2] Layer violation: WebPopupMenuProxyQtDesktop.cpp uses files from WebKit...
hausmann@webkit.org [Fri, 18 Nov 2011 13:56:59 +0000 (13:56 +0000)]
[Qt][WK2] Layer violation: WebPopupMenuProxyQtDesktop.cpp uses files from WebKit/qt https://bugs.webkit.org/show_bug.cgi?id=72696

Reviewed by Kenneth Rohde Christiansen.

Implement the WK2 desktop popup by simply subclassing QComboBox and doing the
same thing as QtWebComboBox from WK1 (a few lines of code).

* UIProcess/qt/WebPopupMenuProxyQtDesktop.cpp:
(WebKit::WebPopupMenuProxyQtDesktop::WebPopupMenuProxyQtDesktop):
(WebKit::WebPopupMenuProxyQtDesktop::~WebPopupMenuProxyQtDesktop):
(WebKit::WebPopupMenuProxyQtDesktop::showPopupMenu):
(WebKit::WebPopupMenuProxyQtDesktop::hidePopupMenu):
(WebKit::WebPopupMenuProxyQtDesktop::eventFilter):
(WebKit::WebPopupMenuProxyQtDesktop::setSelectedIndex):
(WebKit::WebPopupMenuProxyQtDesktop::populate):
* UIProcess/qt/WebPopupMenuProxyQtDesktop.h:

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

7 years agoRebaseline fast/repaint for Chromium Mac 10.5 CG after http://crrev.com/110543
steveblock@google.com [Fri, 18 Nov 2011 13:52:04 +0000 (13:52 +0000)]
Rebaseline fast/repaint for Chromium Mac 10.5 CG after crrev.com/110543

Unreviewed gardening.

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

7 years ago[Qt][WK2] setViewportInteractionEngine must also set the InteractionEngine for the...
zeno.albisser@nokia.com [Fri, 18 Nov 2011 13:48:58 +0000 (13:48 +0000)]
[Qt][WK2] setViewportInteractionEngine must also set the InteractionEngine for the tap recognizer.
https://bugs.webkit.org/show_bug.cgi?id=72717

Reviewed by Kenneth Rohde Christiansen.

* UIProcess/qt/QtTapGestureRecognizer.cpp:
(WebKit::QtTapGestureRecognizer::setViewportInteractionEngine):
* UIProcess/qt/QtTapGestureRecognizer.h:
* UIProcess/qt/QtWebPageProxy.cpp:
(QtWebPageProxy::setViewportInteractionEngine):
* UIProcess/qt/QtWebPageProxy.h:

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

7 years agoNot reviewed: restore front-end compilability via updating externs and JS generator.
pfeldman@chromium.org [Fri, 18 Nov 2011 13:45:42 +0000 (13:45 +0000)]
Not reviewed: restore front-end compilability via updating externs and JS generator.

* inspector/front-end/ElementsPanel.js:
(WebInspector.ElementsPanel.prototype.jumpToNextSearchResult):
(WebInspector.ElementsPanel.prototype.jumpToPreviousSearchResult):
* inspector/front-end/externs.js:
(WebInspector.showPanelForAnchorNavigation):
* inspector/generate-protocol-externs:

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

7 years ago[Qt][WK2] Fix popups for select elements.
hausmann@webkit.org [Fri, 18 Nov 2011 13:42:59 +0000 (13:42 +0000)]
[Qt][WK2] Fix popups for select elements.

Reviewed by Tor Arne Vestbø.

* UIProcess/qt/QtWebPageProxy.cpp:
(QtWebPageProxy::createPopupMenuProxy): Fall back to the "desktop" implementation
for the moment. Better than nothing :)

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

7 years ago[Qt] Unreviewed debug build fix
hausmann@webkit.org [Fri, 18 Nov 2011 13:42:09 +0000 (13:42 +0000)]
[Qt] Unreviewed debug build fix

* UIProcess/qt/QtWebPageProxy.cpp:
(QtWebPageProxy::QtWebPageProxy): Don't assert on a non-existant
variable.

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

7 years agoWeb Inspector: dispatch messages from the front-end to the backend asynchronously.
pfeldman@chromium.org [Fri, 18 Nov 2011 13:29:22 +0000 (13:29 +0000)]
Web Inspector: dispatch messages from the front-end to the backend asynchronously.
https://bugs.webkit.org/show_bug.cgi?id=72621

Source/WebCore:

We should align the way we dispatch messages from the front-end to backend across the environments:
  - WebKit has it synchronoulsly
  - Chromium has it asynchronously
  - Remote debugging has it asynchronously
Making it asynchronous made a number of flaky Qt tests pass.

Tests uncovered console agent problem that was also fixed.

Reviewed by Yury Semikhatsky.

* inspector/InspectorConsoleAgent.cpp:
(WebCore::InspectorConsoleAgent::clearFrontend):
* inspector/InspectorFrontendClient.h:
* inspector/InspectorFrontendClientLocal.cpp:
(WebCore::InspectorBackendDispatchTask::InspectorBackendDispatchTask):
(WebCore::InspectorBackendDispatchTask::dispatch):
(WebCore::InspectorBackendDispatchTask::reset):
(WebCore::InspectorBackendDispatchTask::onTimer):
(WebCore::InspectorFrontendClientLocal::InspectorFrontendClientLocal):
(WebCore::InspectorFrontendClientLocal::windowObjectCleared):
(WebCore::InspectorFrontendClientLocal::sendMessageToBackend):
* inspector/InspectorFrontendClientLocal.h:

Source/WebKit/chromium:

Reviewed by Yury Semikhatsky.

* src/InspectorFrontendClientImpl.cpp:
(WebKit::InspectorFrontendClientImpl::performDisconnectFromBackend):
* src/InspectorFrontendClientImpl.h:

LayoutTests:

Now that dispatching is asynchronous, timeline test needed a fix.

Reviewed by Yury Semikhatsky.

* inspector/timeline/timeline-script-tag-1.html:
* platform/qt/Skipped:

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

7 years ago[GTK][WK2] Invalid TestNetscapePlugin path when using new-run-webkit-tests
sergio@webkit.org [Fri, 18 Nov 2011 13:28:21 +0000 (13:28 +0000)]
[GTK][WK2] Invalid TestNetscapePlugin path when using new-run-webkit-tests
https://bugs.webkit.org/show_bug.cgi?id=72707

Reviewed by Philippe Normand.

Tools:

Make new-run-webkit-tests use the right path to locate the test
plugin used by WebKitTestRunner.

* Scripts/webkitpy/layout_tests/port/gtk.py:

LayoutTests:

Unskipped a test that is passing now.

* platform/gtk-wk2/Skipped: unskipped plugins/get-url-notify-with-url-that-fails-to-load.html

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

7 years ago[Qt] Unreviewed build fix: Export QQuickWebPage/Preferences private API
hausmann@webkit.org [Fri, 18 Nov 2011 13:16:21 +0000 (13:16 +0000)]
[Qt] Unreviewed build fix: Export QQuickWebPage/Preferences private API
needed for the qml plugin.

* Source/qtwebkit-export.map:

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

7 years agoRebaseline svg/custom for Chromium Mac 10.5 CG after http://crrev.com/110543
steveblock@google.com [Fri, 18 Nov 2011 13:15:07 +0000 (13:15 +0000)]
Rebaseline svg/custom for Chromium Mac 10.5 CG after crrev.com/110543

Unreviewed gardening.

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

7 years agoRebaseline svg/clip-path for Chromium Mac 10.5 CG after http://crrev.com/110543
steveblock@google.com [Fri, 18 Nov 2011 12:56:37 +0000 (12:56 +0000)]
Rebaseline svg/clip-path for Chromium Mac 10.5 CG after crrev.com/110543

Unreviewed gardening.

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

7 years ago[chromium] Pass screen refresh rate into compositor.
commit-queue@webkit.org [Fri, 18 Nov 2011 12:43:44 +0000 (12:43 +0000)]
[chromium] Pass screen refresh rate into compositor.
https://bugs.webkit.org/show_bug.cgi?id=71040

Patch by Iain Merrick <husky@google.com> on 2011-11-18
Reviewed by Tony Gentilcore.

Source/WebCore:

Covered by CCLayerTreeHostTest.

* platform/PlatformScreen.h:
* platform/chromium/PlatformScreenChromium.cpp:
(WebCore::screenRefreshRate):
* platform/chromium/PlatformSupport.h:
* platform/graphics/chromium/cc/CCLayerTreeHost.h:
(WebCore::CCSettings::CCSettings):
* platform/graphics/chromium/cc/CCThreadProxy.cpp:
(WebCore::CCThreadProxy::initializeImplOnImplThread):

Source/WebKit/chromium:

* public/WebScreenInfo.h:
(WebKit::WebScreenInfo::WebScreenInfo):
* src/PlatformSupport.cpp:
(WebCore::PlatformSupport::screenRefreshRate):
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
* tests/CCLayerTreeHostTest.cpp:
(WTF::CCLayerTreeHostTest::runTest):

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

7 years ago[CSSShaders] Implement the computed style for mesh parameters of the custom() filter
steveblock@google.com [Fri, 18 Nov 2011 12:30:45 +0000 (12:30 +0000)]
[CSSShaders] Implement the computed style for mesh parameters of the custom() filter
https://bugs.webkit.org/show_bug.cgi?id=72478

Patch by Alexandru Chiculita <achicu@adobe.com> on 2011-11-18
Reviewed by Dean Jackson.

* css3/filters/custom-filter-property-computed-style-expected.txt:
* css3/filters/custom-filter-property-parsing-invalid-expected.txt:
* css3/filters/script-tests/custom-filter-property-computed-style.js:
* css3/filters/script-tests/custom-filter-property-parsing-invalid.js:

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

7 years ago[CSSShaders] Implement the computed style for mesh parameters of the custom() filter
achicu@adobe.com [Fri, 18 Nov 2011 12:12:46 +0000 (12:12 +0000)]
[CSSShaders] Implement the computed style for mesh parameters of the custom() filter
https://bugs.webkit.org/show_bug.cgi?id=72478

Reviewed by Dean Jackson.

Source/WebCore:

Added parsing and computed style for the mesh rows, columns, mesh box type
(filter-box, border-box, content-box and padding-box) and the detached mode.

Also fixed a case where "custom(none, 10, 10 filter-box)" was incorrectly
treated as "custom(none, 10)".

* css/CSSComputedStyleDeclaration.cpp:
(WebCore::CSSComputedStyleDeclaration::valueForFilter):
* css/CSSParser.cpp:
(WebCore::CSSParser::parseCustomFilter): Fixed a case where invalid syntax was parsed as correct syntax.
* css/CSSPrimitiveValueMappings.h:
(WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
(WebCore::CSSPrimitiveValue::operator CustomFilterOperation::MeshBoxType):
* css/CSSStyleSelector.cpp:
(WebCore::CSSStyleSelector::createCustomFilterOperation):
* css/CSSValueList.h:
(WebCore::CSSValueListIterator::isPrimitiveValue):
* platform/graphics/filters/CustomFilterOperation.h:

LayoutTests:

* css3/filters/custom-filter-property-computed-style-expected.txt:
* css3/filters/custom-filter-property-parsing-invalid-expected.txt:
* css3/filters/script-tests/custom-filter-property-computed-style.js:
* css3/filters/script-tests/custom-filter-property-parsing-invalid.js:

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

7 years ago[Qt] Unreviewed build fix: Export QQuickWebViewExperimental private API
hausmann@webkit.org [Fri, 18 Nov 2011 11:50:02 +0000 (11:50 +0000)]
[Qt] Unreviewed build fix: Export QQuickWebViewExperimental private API
that was added since I made the export patch.

* Source/qtwebkit-export.map:

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

7 years ago[GTK] Accessibility API tests failing because of using non-WebKit GtkWidgets
mario@webkit.org [Fri, 18 Nov 2011 11:46:18 +0000 (11:46 +0000)]
[GTK] Accessibility API tests failing because of using non-WebKit GtkWidgets
https://bugs.webkit.org/show_bug.cgi?id=72708

Reviewed by Xan Lopez.

Do not use non-WebKit GtkWidget's in unit tests, to avoid problems
when GTK's accessibility implementation is not being loaded.

* tests/testatk.c:
(testWebkitAtkParentForRootObject): Use a dummy WebKitWebView
widget as the parent container needed for this unit test.
(testWebkitAtkSetParentForObject): Ditto.

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

7 years ago[Qt] WTR and InjectedBundle should not link statically against JSC/WTF https://bugs...
hausmann@webkit.org [Fri, 18 Nov 2011 11:41:10 +0000 (11:41 +0000)]
[Qt] WTR and InjectedBundle should not link statically against JSC/WTF https://bugs.webkit.org/show_bug.cgi?id=72697

Reviewed by Kenneth Rohde Christiansen.

.:

* Source/api.pri: On Linux, use a GNU LD version script to manage the
symbol exports, which includes the public WK1/WK2 API as well as a bunch
of private WTF symbols needed for WTR and the Injected Bundle.
* Source/qtwebkit-export.map: Added.

Tools:

* Tools.pro: Make WTR linux only for the moment.
* WebKitTestRunner/InjectedBundle/Target.pri: Remove static jsc/wtf linkage.
* WebKitTestRunner/Target.pri: Ditto.
* qmake/mkspecs/features/default_post.prf: Don't build the main webkit sources
with ELF visibility on Linux. Instead we're temporarily using an LD version script.

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

7 years agoOops, fix ChangeLog text
hausmann@webkit.org [Fri, 18 Nov 2011 11:35:49 +0000 (11:35 +0000)]
Oops, fix ChangeLog text

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

7 years ago[Qt] Removal of QtViewInterface part 3
hausmann@webkit.org [Fri, 18 Nov 2011 11:34:51 +0000 (11:34 +0000)]
[Qt] Removal of QtViewInterface part 3

Reviewed by Kenneth Rohde Christiansen.

Move the remaining forwarded calls from ClientImpl that went through
ViewInterface and then PageProxy or WebView to go straight to
QtWebPageProxy. QtViewInterface is empty now and therefore removed.

* Target.pri:
* UIProcess/API/qt/qquickwebpage_p.h:
* UIProcess/API/qt/qquickwebpage_p_p.h:
* UIProcess/API/qt/qquickwebview.cpp:
(QQuickWebViewPrivate::initialize):
(QQuickWebViewPrivate::chooseFiles):
* UIProcess/API/qt/qquickwebview_p.h:
* UIProcess/API/qt/qquickwebview_p_p.h:
* UIProcess/qt/ClientImpl.cpp:
(qt_wk_runJavaScriptAlert):
(qt_wk_runJavaScriptConfirm):
(qt_wk_runJavaScriptPrompt):
(qt_wk_setStatusText):
(qt_wk_runOpenPanel):
(qt_wk_mouseDidMoveOverElement):
(setupPageUiClient):
* UIProcess/qt/QtViewInterface.cpp: Removed.
* UIProcess/qt/QtViewInterface.h: Removed.
* UIProcess/qt/QtWebPageProxy.cpp:
(QtWebPageProxy::QtWebPageProxy):
(QtWebPageProxy::didChangeStatusText):
(QtWebPageProxy::didMouseMoveOverElement):
(QtWebPageProxy::showContextMenu):
(QtWebPageProxy::hideContextMenu):
(QtWebPageProxy::runJavaScriptAlert):
(QtWebPageProxy::runJavaScriptConfirm):
(QtWebPageProxy::runJavaScriptPrompt):
(QtWebPageProxy::chooseFiles):
(QtWebPageProxy::createContextMenuProxy):
(QtWebPageProxy::didChangeLoadProgress):
* UIProcess/qt/QtWebPageProxy.h:
(QtWebPageProxy::contextMenuItemSelected):
* UIProcess/qt/WebContextMenuProxyQt.cpp:
(WebKit::WebContextMenuProxyQt::WebContextMenuProxyQt):
(WebKit::WebContextMenuProxyQt::create):
(WebKit::WebContextMenuProxyQt::hideContextMenu):
* UIProcess/qt/WebContextMenuProxyQt.h:

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

7 years ago[Qt] Change default size of the MiniBrowser
kenneth@webkit.org [Fri, 18 Nov 2011 11:33:07 +0000 (11:33 +0000)]
[Qt] Change default size of the MiniBrowser

Reviewed by Simon Hausmann.

As we lay out desktop pages using the width of 980, change our default
size to 980x735 so that we are not scaling down by default.

* MiniBrowser/qt/MiniBrowserApplication.h:
(WindowOptions::WindowOptions):

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

7 years agoRebaseline fast/box-shadow for Chromium Mac 10.5 after http://crrev.com/110543
steveblock@google.com [Fri, 18 Nov 2011 11:27:53 +0000 (11:27 +0000)]
Rebaseline fast/box-shadow for Chromium Mac 10.5 after crrev.com/110543

Unreviewed gardening.

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

7 years ago[Qt][WK2] UI process segfaults, when visiblity properties are set while the WebProces...
commit-queue@webkit.org [Fri, 18 Nov 2011 11:16:40 +0000 (11:16 +0000)]
[Qt][WK2] UI process segfaults, when visiblity properties are set while the WebProcess is dead.
https://bugs.webkit.org/show_bug.cgi?id=72699

The drawing area may be null, if the web process has crashed, but not yet recovered.
Always null check against drawing area.

Patch by Zalan Bujtas <zbujtas@gmail.com> on 2011-11-18
Reviewed by Simon Hausmann.

* UIProcess/qt/QtWebPageProxy.cpp:
(QtWebPageProxy::setDrawingAreaSize):
(QtWebPageProxy::setVisibleContentRectAndScale):
(QtWebPageProxy::setVisibleContentRectTrajectoryVector):

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

7 years agoRemove unneeded include (and ifdef) from V8DOMWindowCustom.cpp
abarth@webkit.org [Fri, 18 Nov 2011 11:07:52 +0000 (11:07 +0000)]
Remove unneeded include (and ifdef) from V8DOMWindowCustom.cpp
https://bugs.webkit.org/show_bug.cgi?id=72705

Reviewed by Eric Seidel.

Death to ifdefs!

* bindings/v8/custom/V8DOMWindowCustom.cpp:

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

7 years ago[Qt] Removal of QtViewInterface part 1
hausmann@webkit.org [Fri, 18 Nov 2011 11:01:28 +0000 (11:01 +0000)]
[Qt] Removal of QtViewInterface part 1

Reviewed by Kenneth Rohde Christiansen.

Move all functions that forwarded from QtWebPageProxy to QtViewInterface and then
to QQuickWebView straight into QtWebPageProxy.

* UIProcess/API/qt/qquickwebpage_p.h:
* UIProcess/API/qt/qquickwebview.cpp:
(QQuickWebViewPrivate::initialize):
* UIProcess/API/qt/qquickwebview_p_p.h:
* UIProcess/qt/QtViewInterface.cpp:
* UIProcess/qt/QtViewInterface.h:
* UIProcess/qt/QtWebPageProxy.cpp:
(QtWebPageProxy::QtWebPageProxy):
(QtWebPageProxy::setCursor):
(QtWebPageProxy::isViewWindowActive):
(QtWebPageProxy::isViewVisible):
(QtWebPageProxy::pageDidRequestScroll):
(QtWebPageProxy::didFinishFirstNonEmptyLayout):
(QtWebPageProxy::didChangeContentsSize):
(QtWebPageProxy::didChangeViewportProperties):
(QtWebPageProxy::toolTipChanged):
(QtWebPageProxy::didChangeUrl):
(QtWebPageProxy::didChangeTitle):
(QtWebPageProxy::loadDidBegin):
(QtWebPageProxy::loadDidCommit):
(QtWebPageProxy::loadDidSucceed):
(QtWebPageProxy::loadDidFail):
(QtWebPageProxy::didRelaunchProcess):
(QtWebPageProxy::processDidCrash):
(QtWebPageProxy::startDrag):
(QtWebPageProxy::didReceiveDownloadResponse):
* UIProcess/qt/QtWebPageProxy.h:

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

7 years agoRebaseline acid3.html for Chromium Mac 10.5
steveblock@google.com [Fri, 18 Nov 2011 10:54:04 +0000 (10:54 +0000)]
Rebaseline acid3.html for Chromium Mac 10.5

The image contains the text 'YOU SHOULD NOT SEE THIS AT ALL', but so do
all other Chromium expected results for this test, so I'm guessing this
is expected.

Unreviewed gardening.

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

7 years agoMove some mediastream related files into the mediastream directory
abarth@webkit.org [Fri, 18 Nov 2011 10:37:16 +0000 (10:37 +0000)]
Move some mediastream related files into the mediastream directory
https://bugs.webkit.org/show_bug.cgi?id=72695

Reviewed by Eric Seidel.

Just moving the files to the proper directory.

* GNUmakefile.list.am:
* WebCore.gypi:
* mediastream/NavigatorUserMediaError.h: Renamed from Source/WebCore/page/NavigatorUserMediaError.h.
(WebCore::NavigatorUserMediaError::create):
(WebCore::NavigatorUserMediaError::~NavigatorUserMediaError):
(WebCore::NavigatorUserMediaError::code):
(WebCore::NavigatorUserMediaError::NavigatorUserMediaError):
* mediastream/NavigatorUserMediaError.idl: Renamed from Source/WebCore/page/NavigatorUserMediaError.idl.
* mediastream/NavigatorUserMediaErrorCallback.h: Renamed from Source/WebCore/page/NavigatorUserMediaErrorCallback.h.
(WebCore::NavigatorUserMediaErrorCallback::~NavigatorUserMediaErrorCallback):
* mediastream/NavigatorUserMediaErrorCallback.idl: Renamed from Source/WebCore/page/NavigatorUserMediaErrorCallback.idl.
* mediastream/NavigatorUserMediaSuccessCallback.h: Renamed from Source/WebCore/page/NavigatorUserMediaSuccessCallback.h.
(WebCore::NavigatorUserMediaSuccessCallback::~NavigatorUserMediaSuccessCallback):
* mediastream/NavigatorUserMediaSuccessCallback.idl: Renamed from Source/WebCore/page/NavigatorUserMediaSuccessCallback.idl.

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

7 years ago[Qt] Removal of QtViewInterface part 1
hausmann@webkit.org [Fri, 18 Nov 2011 10:27:25 +0000 (10:27 +0000)]
[Qt] Removal of QtViewInterface part 1

Reviewed by Kenneth Rohde Christiansen.

Replace functions of QtViewInterface that forward to QQuickWebPage with direct
usage of QQuickWebPage. Also removed some dead code.

* UIProcess/API/qt/qquickwebpage.cpp:
(QQuickWebPage::sceneGraphUpdateQueue):
* UIProcess/API/qt/qquickwebpage_p.h:
* UIProcess/API/qt/qquickwebview.cpp:
(QQuickWebViewPrivate::initialize):
* UIProcess/TiledDrawingAreaProxy.h:
* UIProcess/qt/QtViewInterface.cpp:
(WebKit::QtViewInterface::QtViewInterface):
(WebKit::QtViewInterface::isVisible):
* UIProcess/qt/QtViewInterface.h:
* UIProcess/qt/QtWebPageProxy.cpp:
(QtWebPageProxy::QtWebPageProxy):
(QtWebPageProxy::setViewNeedsDisplay):
(QtWebPageProxy::viewSize):
(QtWebPageProxy::isViewFocused):
(QtWebPageProxy::isViewVisible):
(QtWebPageProxy::didRelaunchProcess):
* UIProcess/qt/QtWebPageProxy.h:
(QtWebPageProxy::qmlWebPage):
* UIProcess/qt/TiledDrawingAreaProxyQt.cpp:

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

7 years agoWeb Inspector: [Extensions API] Provide a way for extension to create a status bar...
caseq@chromium.org [Fri, 18 Nov 2011 10:22:09 +0000 (10:22 +0000)]
Web Inspector: [Extensions API] Provide a way for extension to create a status bar icon
https://bugs.webkit.org/show_bug.cgi?id=45955

Reviewed by Pavel Feldman.

Source/WebCore:

* inspector/front-end/ExtensionAPI.js:
(injectedExtensionAPI.ExtensionPanelImpl.prototype.createStatusBarButton):
(injectedExtensionAPI):
(injectedExtensionAPI.ButtonImpl.prototype.update):
* inspector/front-end/ExtensionPanel.js:
(WebInspector.ExtensionPanel):
(WebInspector.ExtensionPanel.prototype.get statusBarItems):
(WebInspector.ExtensionPanel.prototype.addStatusBarItem):
(WebInspector.ExtensionButton):
(WebInspector.ExtensionButton.prototype.update):
(WebInspector.ExtensionButton.prototype._onClicked):
* inspector/front-end/ExtensionServer.js:
(WebInspector.ExtensionServer):
(WebInspector.ExtensionServer.prototype.notifyButtonClicked):
(WebInspector.ExtensionServer.prototype._onCreateStatusBarButton):
(WebInspector.ExtensionServer.prototype._onUpdateButton):
(WebInspector.ExtensionServer.prototype._onCreateSidebarPane):
* inspector/front-end/inspector.css:
(button.status-bar-item.extension):

LayoutTests:

* inspector/extensions/extensions-panel-expected.txt:
* inspector/extensions/extensions-panel.html:

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

7 years agoMediaStream API: Merging the PeerConnectionHandler.h files
commit-queue@webkit.org [Fri, 18 Nov 2011 10:05:16 +0000 (10:05 +0000)]
MediaStream API: Merging the PeerConnectionHandler.h files
https://bugs.webkit.org/show_bug.cgi?id=72611

Patch by Tommy Widenflycht <tommyw@google.com> on 2011-11-18
Reviewed by Adam Barth.

No actual code changes.

* GNUmakefile.am:
* GNUmakefile.list.am:
* WebCore.gyp/WebCore.gyp:
* WebCore.gypi:
* platform/mediastream/PeerConnectionHandler.h: Renamed from Source/WebCore/platform/mediastream/chromium/PeerConnectionHandler.h.
* platform/mediastream/gstreamer/PeerConnectionHandler.h: Removed.

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

7 years agoUnreviewed, mark media/audio-garbage-collect.html flaky on GTK.
philn@webkit.org [Fri, 18 Nov 2011 09:04:59 +0000 (09:04 +0000)]
Unreviewed, mark media/audio-garbage-collect.html flaky on GTK.

* platform/gtk/test_expectations.txt:

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

7 years ago[Qt] fast/canvas/canvas-lineWidth.html timeouts intermittently on 64 bit
ossy@webkit.org [Fri, 18 Nov 2011 08:36:04 +0000 (08:36 +0000)]
[Qt] fast/canvas/canvas-lineWidth.html timeouts intermittently on 64 bit
https://bugs.webkit.org/show_bug.cgi?id=72694

* platform/qt/Skipped: Skip fast/canvas/canvas-lineWidth.html until fix.

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

7 years ago[Qt] Layer violation: ThirdPartyCookiesQt.cpp uses QWebSettings in two places https...
hausmann@webkit.org [Fri, 18 Nov 2011 08:21:55 +0000 (08:21 +0000)]
[Qt] Layer violation: ThirdPartyCookiesQt.cpp uses QWebSettings in two places https://bugs.webkit.org/show_bug.cgi?id=72597

Reviewed by Kenneth Rohde Christiansen.

Source/WebCore:

Moved code that queries the third party cookie policy from QWebSettings
out of WebCore. Instead NetworkingContext has now the interface that allows
delegating the functionality into WebKit/qt.

In order to do that we need to pass the NetworkingContext around, which is used to
retrieve the cookie jar and the originating frame object pointer.

* platform/network/NetworkingContext.h: Add interface.
* platform/network/qt/QNetworkReplyHandler.cpp:
(WebCore::QNetworkReplyHandler::QNetworkReplyHandler): Pass NetworkingContext to ResourceRequest::toNetworkRequest.
(WebCore::QNetworkReplyHandler::redirect): Ditto.
* platform/network/qt/ResourceRequest.h: Replaced originatingObject parameter with NetworkingContext, which can
also provide the same plus more (cookie jar, policy callback).
* platform/network/qt/ResourceRequestQt.cpp:
(WebCore::ResourceRequest::toNetworkRequest): Ditto.
* platform/qt/CookieJarQt.cpp: Simplify to use NetworkingContext to get cookie jar and
call new thirdPartyCookiePolicyPermits API that takes the context as parameter.
(WebCore::networkingContext):
(WebCore::setCookies):
(WebCore::cookies):
(WebCore::cookieRequestHeaderFieldValue):
(WebCore::cookiesEnabled):
* platform/qt/ThirdPartyCookiesQt.cpp: Replace up-casting to QWebFrame and use of QWebSettings
with useage of NetworkingContext.
(WebCore::thirdPartyCookiePolicyPermits):
* platform/qt/ThirdPartyCookiesQt.h:

Source/WebKit/qt:

Implemented NetworkingContext::thirdPartyCookiePolicyPermission, which queries
QWebSettings.

* WebCoreSupport/DumpRenderTreeSupportQt.cpp:
(DumpRenderTreeSupportQt::thirdPartyCookiePolicyAllows): Adapt to the
changed thirdPartyCookiePolicyPermits WebCore API that operates on a networking context.
* WebCoreSupport/DumpRenderTreeSupportQt.h:
* WebCoreSupport/FrameLoaderClientQt.cpp:
(WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction): Pass networking
context to ResourceRequest::toNetworkRequest.
(WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): Ditto.
(WebCore::FrameLoaderClientQt::startDownload): Ditto.
* WebCoreSupport/FrameNetworkingContextQt.cpp:
(WebCore::FrameNetworkingContextQt::thirdPartyCookiePolicyPermission): Implement.
* WebCoreSupport/FrameNetworkingContextQt.h:
* tests/qwebpage/tst_qwebpage.cpp:
(tst_QWebPage::thirdPartyCookiePolicy): Adapt to QtDRTSupport API change.

Source/WebKit2:

Stub implementation of new NetworkingContext::thirdPartyCookiePolicyPermission
API.

* WebProcess/WebCoreSupport/qt/WebFrameNetworkingContext.cpp:
(WebCore::WebFrameNetworkingContext::thirdPartyCookiePolicyPermission):
* WebProcess/WebCoreSupport/qt/WebFrameNetworkingContext.h:

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

7 years ago[Qt] REGRESSION(r100510): Enable 8 Bit Strings in JavaScriptCore
loki@webkit.org [Fri, 18 Nov 2011 07:42:03 +0000 (07:42 +0000)]
[Qt] REGRESSION(r100510): Enable 8 Bit Strings in JavaScriptCore
https://bugs.webkit.org/show_bug.cgi?id=72602

Unskip tests after the fix on Qt.

* platform/qt/Skipped:

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

7 years ago[Qt] REGRESSION(r100510): Enable 8 Bit Strings in JavaScriptCore
loki@webkit.org [Fri, 18 Nov 2011 07:41:48 +0000 (07:41 +0000)]
[Qt] REGRESSION(r100510): Enable 8 Bit Strings in JavaScriptCore
https://bugs.webkit.org/show_bug.cgi?id=72602

Fixed StringImpl::foldCase by adding return in the case we need to handle
folding of 8 bit strings with Latin-1 characters.

Fixed case where StringImpl::replace was using a char temp instead of an
LChar temp.

Because of the second change, I changed other uses of char or
unsigned char to LChar.

Patch by Michael Saboff <msaboff@apple.com> on 2011-11-17
Reviewed by Zoltan Herczeg.

* wtf/text/StringImpl.cpp:
(WTF::StringImpl::upper):
(WTF::StringImpl::foldCase):
(WTF::equal):
(WTF::equalIgnoringCase):
(WTF::StringImpl::replace):

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