Improve AudioChannelSplitter test
https://bugs.webkit.org/show_bug.cgi?id=91962

Patch by Li Yin <li.yin@intel.com> on 2012-07-23
Reviewed by Kentaro Hara.

Spec: https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioChannelSplitter-section
The numberOfOutputs parameter determines the number of outputs.
Values of up to 32 must be supported. If not specified, then 6 will be used.

* webaudio/audiochannelsplitter-expected.txt:
* webaudio/audiochannelsplitter.html:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123309 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Unreviewed gardening. Skip the new failing tests.

* platform/qt/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123310 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Rename TextCodecWinCE to TextCodecWin
https://bugs.webkit.org/show_bug.cgi?id=91947

Reviewed by Ryosuke Niwa.

Since TextCodecWinCE is used by other (non-upstreamed) windows ports too,
TextCodecWin is a better name for the implementation.
Also remove the dependency on WinCE FontCache to make it more usable.

* PlatformWinCE.cmake:
* platform/text/TextEncodingRegistry.cpp:
(WebCore::extendTextCodecMaps):
* platform/text/win/TextCodecWin.cpp: Renamed from Source/WebCore/platform/text/wince/TextCodecWinCE.cpp.
* platform/text/win/TextCodecWin.h: Renamed from Source/WebCore/platform/text/wince/TextCodecWinCE.h.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123311 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ComposedShadowTreeWalker should skip an empty insertion points.
https://bugs.webkit.org/show_bug.cgi?id=91826

Reviewed by Hajime Morita.

Source/WebCore:

ComposedShadowTreeWalker wrongly returns 'null' if it encounters
an insertion point into where no nodes are distributed.  We should
skip such an insertion point and continue walking using the next
possible node, which might be a next sibling or a next distributed
node, and resolve the next node recursively.

Test: fast/dom/shadow/composed-shadow-tree-walker.html

* dom/ComposedShadowTreeWalker.cpp:
(WebCore::ComposedShadowTreeWalker::traverseLightChildren):
(WebCore):
(WebCore::ComposedShadowTreeWalker::traverseSiblings):
(WebCore::ComposedShadowTreeWalker::traverseNode):
(WebCore::ComposedShadowTreeWalker::traverseDistributedeNodes):
(WebCore::ComposedShadowTreeWalker::traverseSiblingOrBackToInsertionPoint):
(WebCore::ComposedShadowTreeWalker::traverseSiblingInCurrentTree):
(WebCore::ComposedShadowTreeWalker::traverseBackToYoungerShadowRoot):
* dom/ComposedShadowTreeWalker.h:
(ComposedShadowTreeWalker):

LayoutTests:

* fast/dom/shadow/composed-shadow-tree-walker-expected.txt:
* fast/dom/shadow/composed-shadow-tree-walker.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123312 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Drag and drop should not be started on right mouse click.
https://bugs.webkit.org/show_bug.cgi?id=91728

Reviewed by Pavel Feldman.

Introduced WebInspector.installDragHandle method to control drag and drop support, checking whichg mouse button is pressed.
Simplified WebInspector._elementDragStart, removed "element" parameter.
Simplified tab moving support in TabbedPane, removed "mousemove" handler.
Removed while loop determining which element was dragged in TimelineOverviewPane, each drag support is now installed independently.
Drive-by: fixed TimelineOverviewPane window moving on resources-dividers-label-bar drang-and-drop.
Drive-by: fixed CSSStyleModel compilation.

* inspector/front-end/CSSStyleModel.js:
(WebInspector.CSSStyleModel.prototype.getNamedFlowCollectionAsync):
* inspector/front-end/DataGrid.js:
(WebInspector.DataGrid.prototype._positionResizers):
(WebInspector.DataGrid.prototype._startResizerDragging):
(WebInspector.DataGrid.prototype._endResizerDragging):
* inspector/front-end/Drawer.js:
(WebInspector.Drawer):
(WebInspector.Drawer.prototype._animationDuration):
(WebInspector.Drawer.prototype._startStatusBarDragging):
(WebInspector.Drawer.prototype._endStatusBarDragging):
* inspector/front-end/HeapSnapshotView.js:
(WebInspector.HeapSnapshotView.prototype._startRetainersHeaderDragging):
(WebInspector.HeapSnapshotView.prototype._endRetainersHeaderDragging):
* inspector/front-end/SidebarOverlay.js:
(WebInspector.SidebarOverlay.prototype.set _startResizerDragging):
(WebInspector.SidebarOverlay.prototype._endResizerDragging):
(WebInspector.SidebarOverlay.prototype._installResizer):
* inspector/front-end/Spectrum.js:
* inspector/front-end/SplitView.js:
(WebInspector.SplitView.prototype._startResizerDragging):
(WebInspector.SplitView.prototype._endResizerDragging):
(WebInspector.SplitView.prototype.installResizer):
* inspector/front-end/TabbedPane.js:
(WebInspector.TabbedPaneTab.prototype._createTabElement):
(WebInspector.TabbedPaneTab.prototype._tabMouseDown):
(WebInspector.TabbedPaneTab.prototype._startTabDragging):
(WebInspector.TabbedPaneTab.prototype._endTabDragging):
* inspector/front-end/TimelineOverviewPane.js:
(WebInspector.TimelineOverviewPane):
(WebInspector.TimelineOverviewWindow):
(WebInspector.TimelineOverviewWindow.prototype._leftResizeElementDragging):
(WebInspector.TimelineOverviewWindow.prototype._rightResizeElementDragging):
(WebInspector.TimelineOverviewWindow.prototype._startWindowSelectorDragging):
(WebInspector.TimelineOverviewWindow.prototype._endWindowSelectorDragging):
(WebInspector.TimelineOverviewWindow.prototype._startWindowDragging):
(WebInspector.TimelineOverviewWindow.prototype._windowDragging):
(WebInspector.TimelineOverviewWindow.prototype._endWindowDragging):
(WebInspector.TimelineOverviewWindow.prototype._moveWindow):
(WebInspector.TimelineOverviewWindow.prototype._onMouseWheel):
* inspector/front-end/TimelinePanel.js:
(WebInspector.TimelinePanel):
(WebInspector.TimelinePanel.prototype._startSplitterDragging):
(WebInspector.TimelinePanel.prototype._endSplitterDragging):
* inspector/front-end/Toolbar.js:
(WebInspector.Toolbar):
(WebInspector.Toolbar.prototype._toolbarDragStart):
(WebInspector.Toolbar.prototype._toolbarDragEnd):
* inspector/front-end/UIUtils.js:
(WebInspector.installDragHandle):
(WebInspector._elementDragStart):
(WebInspector._elementDragEnd):
* inspector/front-end/timelinePanel.css:
(#timeline-overview-grid .resources-dividers-label-bar):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123313 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Replace getCurrentLocalTime() with GetLocalTime() in LocaleWin.cpp
https://bugs.webkit.org/show_bug.cgi?id=91937

Reviewed by Ryosuke Niwa.

The windows function returns the required year directly and
removes one additonal dependecy on getCurrentLocalTime().

* platform/text/LocaleWin.cpp:
(WebCore::LocaleWin::LocaleWin):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123314 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WK2] SQL Database cannot be disabled at build time
https://bugs.webkit.org/show_bug.cgi?id=91837

Patch by Thiago Marcos P. Santos <thiago.santos@intel.com> on 2012-07-23
Reviewed by Kenneth Rohde Christiansen.

WebKit2 had no #ifdefs for SQL Database. This patch adds these
statments and it can now be disabled at build time.

* Shared/OriginAndDatabases.cpp:
* Shared/OriginAndDatabases.h:
* Shared/WebCoreArgumentCoders.cpp:
(CoreIPC):
* UIProcess/API/C/WKContext.cpp:
(WKContextGetDatabaseManager):
* UIProcess/API/C/WKDatabaseManager.cpp:
(WKDatabaseManagerGetTypeID):
(WKDatabaseManagerGetOriginKey):
(WKDatabaseManagerGetOriginQuotaKey):
(WKDatabaseManagerGetOriginUsageKey):
(WKDatabaseManagerGetDatabaseDetailsKey):
(WKDatabaseManagerGetDatabaseDetailsNameKey):
(WKDatabaseManagerGetDatabaseDetailsDisplayNameKey):
(WKDatabaseManagerGetDatabaseDetailsExpectedUsageKey):
(WKDatabaseManagerGetDatabaseDetailsCurrentUsageKey):
(WKDatabaseManagerSetClient):
(WKDatabaseManagerGetDatabasesByOrigin):
(callGetDatabasesByOriginBlockAndDispose):
(WKDatabaseManagerGetDatabasesByOrigin_b):
(WKDatabaseManagerGetDatabaseOrigins):
(callGetDatabaseOriginsBlockBlockAndDispose):
(WKDatabaseManagerGetDatabaseOrigins_b):
(WKDatabaseManagerDeleteDatabasesWithNameForOrigin):
(WKDatabaseManagerDeleteDatabasesForOrigin):
(WKDatabaseManagerDeleteAllDatabases):
(WKDatabaseManagerSetQuotaForOrigin):
* UIProcess/WebContext.cpp:
(WebKit::WebContext::WebContext):
(WebKit::WebContext::~WebContext):
(WebKit::WebContext::shouldTerminate):
(WebKit::WebContext::disconnectProcess):
(WebKit::WebContext::didReceiveMessage):
* UIProcess/WebContext.h:
(WebContext):
* UIProcess/WebDatabaseManagerProxy.cpp:
* UIProcess/WebDatabaseManagerProxy.h:
* UIProcess/WebDatabaseManagerProxy.messages.in:
* WebProcess/InjectedBundle/InjectedBundle.cpp:
(WebKit::InjectedBundle::clearAllDatabases):
(WebKit::InjectedBundle::setDatabaseQuota):
* WebProcess/WebCoreSupport/WebDatabaseManager.cpp:
* WebProcess/WebCoreSupport/WebDatabaseManager.h:
* WebProcess/WebCoreSupport/WebDatabaseManager.messages.in:
* WebProcess/WebProcess.cpp:
(WebKit::WebProcess::didReceiveMessage):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123315 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKit2 needs layoutTestController.setAlwaysAcceptCookies
https://bugs.webkit.org/show_bug.cgi?id=42778

Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-07-23
Reviewed by Kenneth Rohde Christiansen.

Source/WebKit2:

Add setAlwaysAcceptCookies() method to InjectedBundle
so that we can use it in LayoutTestController.
The method uses WebCookieManager::setHTTPCookieAcceptPolicy()
internally.

* WebProcess/InjectedBundle/API/c/WKBundle.cpp:
(WKBundleSetAlwaysAcceptCookies):
* WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
* WebProcess/InjectedBundle/InjectedBundle.cpp:
(WebKit::InjectedBundle::setAlwaysAcceptCookies):
(WebKit):
* WebProcess/InjectedBundle/InjectedBundle.h:
(InjectedBundle):

Tools:

Add support for layoutTestController.setAlwaysAcceptCookies()
since it is required by some tests.

* WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl:
* WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:
(WTR::LayoutTestController::setAlwaysAcceptCookies):
(WTR):
* WebKitTestRunner/InjectedBundle/LayoutTestController.h:
(LayoutTestController):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123316 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WIN] Use GetTimeZoneInformation() for calculateUTCOffset()
https://bugs.webkit.org/show_bug.cgi?id=91935

Reviewed by Ryosuke Niwa.

GetTimeZoneInformation() returns the offset directly. Using it
avoids unnecessary calculations and remove dependencies on
other time related function, which do not exist on WinCE.

* wtf/DateMath.cpp:
(WTF::calculateUTCOffset):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123317 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Skip http/tests/inspector-enabled/injected-script-discard.html
https://bugs.webkit.org/show_bug.cgi?id=91959

Unreviewed EFL gardening. Skip flaky Web Inspector test case.

Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-07-23

* platform/efl/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123318 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. Fix GTK+ build with ENABLE_DATALIST_ELEMENT.

Add an implementation for virtual pure methods sliderTickSize()
and sliderTickOffsetFromTrackCenter() when HTML5 datalist element
is enabled.

* platform/gtk/RenderThemeGtk.cpp:
(WebCore):
(WebCore::RenderThemeGtk::sliderTickSize):
(WebCore::RenderThemeGtk::sliderTickOffsetFromTrackCenter):
* platform/gtk/RenderThemeGtk.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123319 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] media/controls-styling-strict.html is failing
https://bugs.webkit.org/show_bug.cgi?id=91960

Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-07-23
Reviewed by Kenneth Rohde Christiansen.

Source/WebCore:

Use "display: -webkit-box;" instead of inline-block
for current-time control. This is needed because
inline-block behaves differently in strict mode.

No new test, already tested by media/controls-styling-strict.html

* css/mediaControlsEfl.css:
(audio::-webkit-media-controls-current-time-display, video::-webkit-media-controls-current-time-display):

LayoutTests:

Update test expectations for media tests now that
we use "display: -webkit-box;" for the current-time
control.

* platform/efl/media/audio-controls-rendering-expected.txt:
* platform/efl/media/audio-repaint-expected.png:
* platform/efl/media/audio-repaint-expected.txt:
* platform/efl/media/controls-layout-direction-expected.png:
* platform/efl/media/controls-strict-expected.png:
* platform/efl/media/controls-strict-expected.txt:
* platform/efl/media/controls-styling-expected.txt:
* platform/efl/media/controls-styling-strict-expected.png: Added.
* platform/efl/media/controls-styling-strict-expected.txt: Added.
* platform/efl/media/media-controls-clone-expected.png:
* platform/efl/media/media-controls-clone-expected.txt:
* platform/efl/media/video-aspect-ratio-expected.png:
* platform/efl/media/video-layer-crash-expected.png:
* platform/efl/media/video-transformed-expected.png:
* platform/efl/media/video-zoom-controls-expected.png:
* platform/efl/media/video-zoom-controls-expected.txt:
* platform/efl/media/video-zoom-expected.png:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123320 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed GTK gardening.

Marking more svg/W3C-SVG-1.1/animate-elem-* tests as flaky.

* platform/gtk/TestExpectations:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123321 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Build fix for Windows after r123317.

* wtf/DateMath.cpp: Added missing header include.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123322 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WIN] Remove ICU dependencies from UniscribeController
https://bugs.webkit.org/show_bug.cgi?id=91921

Reviewed by Ryosuke Niwa.

Replace ICU specific functions and macros with the corresponding code from WTF::Unicode.
This allows us to use UniscribeController with an other Unicode implementation too.

* platform/graphics/win/UniscribeController.cpp:
(WebCore::UniscribeController::advance):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123323 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WINCE] Define NOMINMAX in the build system instead of Platform.h
https://bugs.webkit.org/show_bug.cgi?id=91938

Reviewed by Ryosuke Niwa.

.:

Define it in OptionsWindows.cmake, since NOMINMAX
should to be defined for all windows ports.

* Source/cmake/OptionsWinCE.cmake:
* Source/cmake/OptionsWindows.cmake:

Source/WTF:

* wtf/Platform.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123324 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Buildfix for fixing gclient on the Chromium Windows bot
https://bugs.webkit.org/show_bug.cgi?id=91977

Unreviewed build fix.

Add the tools/isolate directory to the Windows checkout as these files
currently are missing during gyp generation. maruel introduced the need
for these in this isolate refactoring, specifically this Chromium CL:
http://src.chromium.org/viewvc/chrome?view=rev&revision=147689

* DEPS:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123325 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Build fix for the Windows builder following r123311
https://bugs.webkit.org/show_bug.cgi?id=91979

Unreviewed build fix.

Changeset r123311 moved the TextCodecWinCE.{cpp,h} files to the Windows
directory. Update Chromium's references to these files to fix the build.

* WebCore.gypi:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123326 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] new test introduced in r123205 fails on Qt
https://bugs.webkit.org/show_bug.cgi?id=91967

Patch by Andrei Poenaru <poenaru@adobe.com> on 2012-07-23
Reviewed by Kenneth Rohde Christiansen.

Skipped WebInspector test that needs CSS Regions enabled.

* platform/qt/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123327 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WK2] REGRESSION r122966: Crash when closing tab with Web Inspector open in WebKit::PageOverlay
https://bugs.webkit.org/show_bug.cgi?id=91782

Reviewed by Yury Semikhatsky.

hideHighlight was never called once user hovered over a node.

* inspector/DOMNodeHighlighter.cpp:
(WebCore::InspectorOverlay::update):


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