[BlackBerry] WebPage::touchEvent() should use Platform::TouchEvent's toString() for debugging.
https://bugs.webkit.org/show_bug.cgi?id=91002

Patch by Pawel Chomicki <pchomicki@rim.com> on 2012-07-12
Reviewed by Antonio Gomes.
Reviewed internally by Genevieve Mak.

Updated DEBUG_TOUCH_EVENTS section of touchEvent method to utilize
Platform::TouchEvent's toString method.

* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPage::touchEvent):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122469 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Remove resources panel edited resources search support.
https://bugs.webkit.org/show_bug.cgi?id=91101

Reviewed by Pavel Feldman.

* inspector/front-end/ResourcesPanel.js:
(WebInspector.ResourcesPanel.prototype.performSearch.callback):
(WebInspector.ResourcesPanel.prototype.performSearch):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122470 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. Remove a large number of empty directories.

* platform/chromium-win-vista: Removed.
* platform/chromium-win-vista/canvas: Removed.
* platform/chromium-win-vista/canvas/philip: Removed.
* platform/chromium-win-vista/canvas/philip/tests: Removed.
* platform/chromium-win-vista/compositing: Removed.
* platform/chromium-win-vista/compositing/geometry: Removed.
* platform/chromium-win-vista/compositing/overflow: Removed.
* platform/chromium-win-vista/compositing/shadows: Removed.
* platform/chromium-win-vista/css1: Removed.
* platform/chromium-win-vista/css1/font_properties: Removed.
* platform/chromium-win-vista/css1/text_properties: Removed.
* platform/chromium-win-vista/css1/units: Removed.
* platform/chromium-win-vista/css2.1: Removed.
* platform/chromium-win-vista/css3: Removed.
* platform/chromium-win-vista/css3/selectors3: Removed.
* platform/chromium-win-vista/css3/selectors3/html: Removed.
* platform/chromium-win-vista/css3/selectors3/xhtml: Removed.
* platform/chromium-win-vista/css3/selectors3/xml: Removed.
* platform/chromium-win-vista/editing: Removed.
* platform/chromium-win-vista/editing/inserting: Removed.
* platform/chromium-win-vista/editing/pasteboard: Removed.
* platform/chromium-win-vista/editing/style: Removed.
* platform/chromium-win-vista/fast: Removed.
* platform/chromium-win-vista/fast/backgrounds: Removed.
* platform/chromium-win-vista/fast/backgrounds/repeat: Removed.
* platform/chromium-win-vista/fast/backgrounds/size: Removed.
* platform/chromium-win-vista/fast/block: Removed.
* platform/chromium-win-vista/fast/block/positioning: Removed.
* platform/chromium-win-vista/fast/box-shadow: Removed.
* platform/chromium-win-vista/fast/canvas: Removed.
* platform/chromium-win-vista/fast/canvas/webgl: Removed.
* platform/chromium-win-vista/fast/compact: Removed.
* platform/chromium-win-vista/fast/css: Removed.
* platform/chromium-win-vista/fast/dom: Removed.
* platform/chromium-win-vista/fast/dom/Document: Removed.
* platform/chromium-win-vista/fast/dom/HTMLAnchorElement: Removed.
* platform/chromium-win-vista/fast/dom/HTMLMeterElement: Removed.
* platform/chromium-win-vista/fast/dom/HTMLProgressElement: Removed.
* platform/chromium-win-vista/fast/forms: Removed.
* platform/chromium-win-vista/fast/inline: Removed.
* platform/chromium-win-vista/fast/inline-block: Removed.
* platform/chromium-win-vista/fast/js: Removed.
* platform/chromium-win-vista/fast/media: Removed.
* platform/chromium-win-vista/fast/multicol: Removed.
* platform/chromium-win-vista/fast/multicol/vertical-rl: Removed.
* platform/chromium-win-vista/fast/parser: Removed.
* platform/chromium-win-vista/fast/repaint: Removed.
* platform/chromium-win-vista/fast/replaced: Removed.
* platform/chromium-win-vista/fast/sub-pixel: Removed.
* platform/chromium-win-vista/fast/sub-pixel/selection: Removed.
* platform/chromium-win-vista/fast/table: Removed.
* platform/chromium-win-vista/fast/text: Removed.
* platform/chromium-win-vista/fast/text/international: Removed.
* platform/chromium-win-vista/fast/text/whitespace: Removed.
* platform/chromium-win-vista/fast/writing-mode: Removed.
* platform/chromium-win-vista/http: Removed.
* platform/chromium-win-vista/http/tests: Removed.
* platform/chromium-win-vista/http/tests/appcache: Removed.
* platform/chromium-win-vista/http/tests/loading: Removed.
* platform/chromium-win-vista/http/tests/media: Removed.
* platform/chromium-win-vista/http/tests/misc: Removed.
* platform/chromium-win-vista/http/tests/multipart: Removed.
* platform/chromium-win-vista/http/tests/security: Removed.
* platform/chromium-win-vista/http/tests/security/aboutBlank: Removed.
* platform/chromium-win-vista/media: Removed.
* platform/chromium-win-vista/platform: Removed.
* platform/chromium-win-vista/platform/chromium: Removed.
* platform/chromium-win-vista/platform/chromium/compositing: Removed.
* platform/chromium-win-vista/platform/chromium/fast: Removed.
* platform/chromium-win-vista/platform/chromium/fast/text: Removed.
* platform/chromium-win-vista/platform/chromium/virtual: Removed.
* platform/chromium-win-vista/platform/chromium/virtual/gpu: Removed.
* platform/chromium-win-vista/platform/chromium/virtual/gpu/fast: Removed.
* platform/chromium-win-vista/platform/chromium/virtual/gpu/fast/canvas: Removed.
* platform/chromium-win-vista/svg: Removed.
* platform/chromium-win-vista/svg/W3C-I18N: Removed.
* platform/chromium-win-vista/svg/W3C-SVG-1.1: Removed.
* platform/chromium-win-vista/svg/W3C-SVG-1.1-SE: Removed.
* platform/chromium-win-vista/svg/as-image: Removed.
* platform/chromium-win-vista/svg/as-object: Removed.
* platform/chromium-win-vista/svg/batik: Removed.
* platform/chromium-win-vista/svg/batik/paints: Removed.
* platform/chromium-win-vista/svg/batik/text: Removed.
* platform/chromium-win-vista/svg/carto.net: Removed.
* platform/chromium-win-vista/svg/css: Removed.
* platform/chromium-win-vista/svg/custom: Removed.
* platform/chromium-win-vista/svg/dynamic-updates: Removed.
* platform/chromium-win-vista/svg/filters: Removed.
* platform/chromium-win-vista/svg/hixie: Removed.
* platform/chromium-win-vista/svg/hixie/intrinsic: Removed.
* platform/chromium-win-vista/svg/in-html: Removed.
* platform/chromium-win-vista/svg/stroke: Removed.
* platform/chromium-win-vista/svg/text: Removed.
* platform/chromium-win-vista/svg/zoom: Removed.
* platform/chromium-win-vista/svg/zoom/page: Removed.
* platform/chromium-win-vista/tables: Removed.
* platform/chromium-win-vista/tables/mozilla: Removed.
* platform/chromium-win-vista/tables/mozilla/bugs: Removed.
* platform/chromium-win-vista/tables/mozilla/marvin: Removed.
* platform/chromium-win-vista/tables/mozilla_expected_failures: Removed.
* platform/chromium-win-vista/tables/mozilla_expected_failures/bugs: Removed.
* platform/chromium-win-vista/tables/mozilla_expected_failures/core: Removed.
* platform/chromium-win-vista/tables/mozilla_expected_failures/marvin: Removed.
* platform/chromium-win-vista/tables/mozilla_expected_failures/other: Removed.
* platform/chromium-win-vista/transforms: Removed.
* platform/chromium-win-vista/transforms/2d: Removed.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122471 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Enable building APKs for TestWebKitAPI and webkit_unit_tests
https://bugs.webkit.org/show_bug.cgi?id=90989

Reviewed by Adam Barth.

Add dependencies on the webkit_unit_tests_apk and TestWebKitAPI_apk
targets for Android, making sure that we're generating the packages.

* All.gyp:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122472 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Move nodesFromRect tests to separate sub-directory.
https://bugs.webkit.org/show_bug.cgi?id=90986

Reviewed by Antonio Gomes.

Moving all nodesFromRect based tests to separate sub-directory will make it easier to test or skip them collectively.

* fast/dom/nodesFromRect/nodesFromRect-basic-expected.txt: Renamed from LayoutTests/fast/dom/nodesFromRect-basic-expected.txt.
* fast/dom/nodesFromRect/nodesFromRect-basic.html: Renamed from LayoutTests/fast/dom/nodesFromRect-basic.html.
* fast/dom/nodesFromRect/nodesFromRect-culled-inlines-expected.txt: Renamed from LayoutTests/fast/dom/nodesFromRect-culled-inlines-expected.txt.
* fast/dom/nodesFromRect/nodesFromRect-culled-inlines.html: Renamed from LayoutTests/fast/dom/nodesFromRect-culled-inlines.html.
* fast/dom/nodesFromRect/nodesFromRect-inner-documents-expected.txt: Renamed from LayoutTests/fast/dom/nodesFromRect-inner-documents-expected.txt.
* fast/dom/nodesFromRect/nodesFromRect-inner-documents.html: Renamed from LayoutTests/fast/dom/nodesFromRect-inner-documents.html.
* fast/dom/nodesFromRect/nodesFromRect-links-and-text-expected.txt: Renamed from LayoutTests/fast/dom/nodesFromRect-links-and-text-expected.txt.
* fast/dom/nodesFromRect/nodesFromRect-links-and-text.html: Renamed from LayoutTests/fast/dom/nodesFromRect-links-and-text.html.
* fast/dom/nodesFromRect/nodesFromRect-svg-expected.txt: Renamed from LayoutTests/fast/dom/nodesFromRect-svg-expected.txt.
* fast/dom/nodesFromRect/nodesFromRect-svg.html: Renamed from LayoutTests/fast/dom/nodesFromRect-svg.html.
* fast/dom/nodesFromRect/nodesFromRect-table-expected.txt: Renamed from LayoutTests/fast/dom/nodesFromRect-table-expected.txt.
* fast/dom/nodesFromRect/nodesFromRect-table.html: Renamed from LayoutTests/fast/dom/nodesFromRect-table.html.
* fast/dom/nodesFromRect/resources/nodesFromRect.css: Renamed from LayoutTests/fast/dom/resources/nodesFromRect.css.
* fast/dom/nodesFromRect/resources/nodesFromRect.js: Renamed from LayoutTests/fast/dom/resources/nodesFromRect.js.
* media/nodesFromRect-shadowContent.html:
* platform/chromium/TestExpectations:
* platform/win/Skipped:
* platform/wincairo/Skipped:
* platform/wk2/Skipped:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122473 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. Build fix for r122462.

* platform/qt/MemoryUsageSupportQt.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122474 268f45cc-cd09-0410-ab3c-d52691b4dbfc
IndexedDB: Verify internal "delete pending" flag on database
https://bugs.webkit.org/show_bug.cgi?id=90995

Reviewed by Tony Chang.

Verify the behavior required by the spec that an open() following
a deleteDatabase() is delayed and returns a new database.

* storage/indexeddb/database-deletepending-flag-expected.txt: Added.
* storage/indexeddb/database-deletepending-flag.html: Added.
* storage/indexeddb/resources/database-deletepending-flag.js: Added.
(test):
(openConnection.request.onsuccess.request.onsuccess):
(openConnection.request.onsuccess):
(openConnection):
(testDatabaseDelete.connection.onversionchange):
(testDatabaseDelete.deleteRequest.onblocked):
(testDatabaseDelete.deleteRequest.onsuccess):
(testDatabaseDelete.openRequest.onsuccess):
(testDatabaseDelete):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122475 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebPage::executeJavaScriptFunction crashes when there is an exception
https://bugs.webkit.org/show_bug.cgi?id=91098
RIM PR #149294

When there is an exception currently the code tries to get the string of
the exception via JSValueToStringCopy to pass back, but this cases a
crash inside JavaScriptCore, so change it to simply return false and not
set the return value with the exception string.

Patch by Benjamin C Meyer <bmeyer@rim.com> on 2012-07-12
Reviewed by George Staikos.

* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPage::executeJavaScriptFunction):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122476 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium][Mac] r122400 broke 10.6 build
https://bugs.webkit.org/show_bug.cgi?id=91103

Patch by Robert Sesek <rsesek@chromium.org> on 2012-07-12
Reviewed by Tony Chang.

Use the right availability macros for forward-declaring methods and
defining constants.

* src/mac/WebInputEventFactory.mm:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122477 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt][WK2] Implement web notifications support
https://bugs.webkit.org/show_bug.cgi?id=80702

Patch by Adenilson Cavalcanti <cavalcantii@gmail.com> on 2012-07-12
Reviewed by Noam Rosenthal.

Adding a new type of permission request for Desktop Notifications (plus required code
to register the handle for this requests).

* UIProcess/API/qt/qwebpermissionrequest.cpp:
(QWebPermissionRequestPrivate::QWebPermissionRequestPrivate):
(QWebPermissionRequestPrivate):
(QWebPermissionRequest::create):
(QWebPermissionRequest::QWebPermissionRequest):
(QWebPermissionRequest::setAllow):
* UIProcess/API/qt/qwebpermissionrequest_p.h:
* UIProcess/API/qt/tests/qmltests/WebView/tst_notification.qml: Added.
* UIProcess/API/qt/tests/qmltests/common/notification.html: Added.
* UIProcess/qt/QtWebPageUIClient.cpp:
(WebKit::QtWebPageUIClient::QtWebPageUIClient):
(WebKit::QtWebPageUIClient::policyForNotificationPermissionRequest):
(WebKit):
* UIProcess/qt/QtWebPageUIClient.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122478 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, rolling out r122477.
http://trac.webkit.org/changeset/122477
https://bugs.webkit.org/show_bug.cgi?id=91103

Broke Chromium Mac build

* src/mac/WebInputEventFactory.mm:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122479 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Allow putting ranges in user.py list prompts
https://bugs.webkit.org/show_bug.cgi?id=91115

Reviewed by Adam Barth.

Ranges are inclusive and denoted by a dash. This is useful for rebaselining a whole port
since the items are listed with each port's builders being contiguous.

* Scripts/webkitpy/common/system/user.py:
(User._wait_on_list_response):
* Scripts/webkitpy/common/system/user_unittest.py:
(UserTest.test_prompt_with_multiple_lists.run_prompt_test):
(UserTest.test_prompt_with_multiple_lists):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122481 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Simplify UISourceCode code after moving revisions support inside it.
https://bugs.webkit.org/show_bug.cgi?id=91118

Reviewed by Pavel Feldman.

* inspector/front-end/UISourceCode.js:
(WebInspector.UISourceCode.prototype._setContent):
(WebInspector.UISourceCode.prototype.revertToOriginal):
(WebInspector.UISourceCode.prototype.revertAndClearHistory):
(WebInspector.UISourceCode.prototype.contentChanged):
(WebInspector.UISourceCode.prototype.commitWorkingCopy):
(WebInspector.Revision.prototype.revertToThis):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122482 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Delete last mention of Hixie76 in WebKit/chromium
https://bugs.webkit.org/show_bug.cgi?id=91099

Reviewed by Tony Chang.

This deprecated API is no longer used anywhere.

* public/WebSettings.h:
(WebKit::WebSettings::setDefaultDeviceScaleFactor):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122483 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Move TextureMapperAnimation and texmap/LayerTransform to platform/graphics
https://bugs.webkit.org/show_bug.cgi?id=91111

Reviewed by Kenneth Rohde Christiansen.

Source/WebCore:

TextureMapperAnimation and LayerTransform are not specific to TextureMapper, and we want
to use them for other purposes as well. Moving them to platform/graphics would make that
more explicit.

No new tests, moving files around.

* GNUmakefile.list.am:
* Target.pri:
* WebCore.gypi:
* platform/graphics/GraphicsLayerAnimation.cpp: Renamed from Source/WebCore/platform/graphics/texmap/TextureMapperAnimation.cpp.
* platform/graphics/GraphicsLayerAnimation.h: Renamed from Source/WebCore/platform/graphics/texmap/TextureMapperAnimation.h.
* platform/graphics/GraphicsLayerTransform.cpp: Renamed from Source/WebCore/platform/graphics/texmap/LayerTransform.cpp.
* platform/graphics/GraphicsLayerTransform.h: Renamed from Source/WebCore/platform/graphics/texmap/LayerTransform.h.
* platform/graphics/texmap/GraphicsLayerTextureMapper.cpp:
(WebCore::GraphicsLayerTextureMapper::addAnimation):
* platform/graphics/texmap/GraphicsLayerTextureMapper.h:
(GraphicsLayerTextureMapper):
* platform/graphics/texmap/TextureMapperLayer.h:
(TextureMapperLayer):
(WebCore::TextureMapperLayer::setAnimatedTransform):
(WebCore::TextureMapperLayer::setAnimatedOpacity):

Source/WebKit2:

Include the new filenames.

* WebProcess/WebPage/LayerTreeCoordinator/WebGraphicsLayer.h:
(WebGraphicsLayer):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed.  Rolled DEPS.

* DEPS:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122485 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Remove drag and drop API methods that are no longer used
https://bugs.webkit.org/show_bug.cgi?id=90996

Reviewed by Adam Barth.

Source/WebKit/chromium:

In r117327, we added a parameter for modifier keys to these methods.
Chromium has since switched to using the methods that require the
extra parameter so we can remove these methods.

* public/WebView.h:
(WebView):
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::dragTargetDragEnter):
(WebKit::WebViewImpl::dragTargetDragOver):
* src/WebViewImpl.h:
(WebViewImpl):

Tools:

Migrate DRT to use the methods that take modifier keys.

* DumpRenderTree/chromium/EventSender.cpp:
(EventSender::doDragDrop):
(EventSender::doMouseUp):
(EventSender::doMouseMove):
(EventSender::beginDragWithFiles):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122486 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Unreviewed gardening. inspector/elements/edit-dom-actions.html is timing out on Win Debug.
https://bugs.webkit.org/show_bug.cgi?id=60109

This test has recently started timing out on Win Debug bots. It was already slow, but has gotten much worse,
but times are also quite variable.

* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122487 268f45cc-cd09-0410-ab3c-d52691b4dbfc
storage tests are flaky (crashing) on windows
https://bugs.webkit.org/show_bug.cgi?id=90469

Patch by James Weatherall <wez@chromium.org> on 2012-07-12
Reviewed by Kentaro Hara.

Add a missing check that the underlying V8 object reference in a V8 NPObject is valid, and zero the NPObject's rootObject member when disposing it, to ensure that it won't be mistakenly touched after that point.

This patch is intended to resolve flakiness in the storage tests including:
  storage/indexeddb/mozilla/indexes.html
  storage/indexeddb/mozilla/key-requirements-inline-and-passed.html
  storage/websql/multiple-databases-garbage-collection.html

* bindings/v8/NPV8Object.cpp:
(WebCore::disposeUnderlyingV8Object):
Zero the NPObject's underlying rootObject.
(_NPN_EvaluateHelper):
Add check that the underlying V8 object reference is valid.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122488 268f45cc-cd09-0410-ab3c-d52691b4dbfc
https://bugs.webkit.org/show_bug.cgi?id=91000
REGRESSION (r122244): Overflow elements don't shrink as much as they should.

Reviewed by Simon Fraser.

This is a fix for a a regression from https://bugs.webkit.org/show_bug.cgi?id=90646.

I incorrectly analyzed the issue with Robert Hogan's negative margin patch and fooled myself into putting back
in an incorrect minimum width check from long ago.
        
What should have happened in the test case I patched is that the overflow element should shrink to 0. The issue 
with improving the logical top estimate in the previous patch is it made the clear delta become 0. This in turn
exposed a bug in our clearing algorithm with Robert's changes where you could need a relayout even if you didn't
actually move. This issue only occurs because the floats list is getting changed mid-layout because of negative margins.

The patch changes getClearDelta to call setChildNeedsLayout(true) on children whose widths change even when their
positions do not. In effect this dynamic addition of new floats after you have done a layout on the child already means
that you can need to lay out again despite not actually having to move.
        
To handle this, the code that does the relayout is now called if the child needs a relayout. This is done even if
the logical top estimate matches the final position.
        
No new tests required, since the test in fast/block/float is now correctly covering the issue.

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::layoutBlockChild):
(WebCore::RenderBlock::getClearDelta):
* rendering/RenderBox.cpp:
(WebCore::RenderBox::shrinkLogicalWidthToAvoidFloats):



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