[EFL] Create a toggle button for closed captions
https://bugs.webkit.org/show_bug.cgi?id=96259

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

Source/WebCore:

Add toggle button for closed captions to EFL's
RenderTheme.

Test: media/video-controls-captions.html

* platform/efl/RenderThemeEfl.cpp:
(WebCore::RenderThemeEfl::edjeGroupFromFormType):
(WebCore::RenderThemeEfl::emitMediaButtonSignal):
(WebCore):
(WebCore::RenderThemeEfl::supportsClosedCaptioning):
(WebCore::RenderThemeEfl::paintMediaToggleClosedCaptionsButton):
* platform/efl/RenderThemeEfl.h:
(RenderThemeEfl):

Source/WebKit/efl:

Add closed caption toggling button to default WebKitEFL
theme.

* DefaultTheme/default.edc:
* DefaultTheme/widget/mediacontrol/togglecaptionsbutton/closedcaption.png: Added.
* DefaultTheme/widget/mediacontrol/togglecaptionsbutton/closedcaption_disabled.png: Added.
* DefaultTheme/widget/mediacontrol/togglecaptionsbutton/toggle_captions_button.edc: Added.

LayoutTests:

Unskip media/video-controls-captions.html test case
now that EFL has a toggle button for closed captions.

Rebaseline a few media track test cases that now
display the new closed caption toggling button.

* platform/efl/TestExpectations:
* platform/efl/media/track/track-cue-rendering-horizontal-expected.png:
* platform/efl/media/track/track-cue-rendering-horizontal-expected.txt:
* platform/efl/media/track/track-cue-rendering-vertical-expected.png:
* platform/efl/media/track/track-cue-rendering-vertical-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128049 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] Sanitize the suggested filename when building the download destination URI
https://bugs.webkit.org/show_bug.cgi?id=96260

Reviewed by Gustavo Noronha Silva.

The suggested filename returned by the server can contain
directory separators so that the filename would be interpreted as
a full path.

* UIProcess/API/gtk/WebKitDownload.cpp:
(webkitDownloadDecideDestination): Convert any directory separator
contained in the suggested filename to an underscore.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128050 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Fix deprecation failures if QT_NO_DEPRECATED enabled
https://bugs.webkit.org/show_bug.cgi?id=96258

Patch by Kevin Funk <kevin.funk@kdab.com> on 2012-09-10
Reviewed by Simon Hausmann.

Sync with latest changes in Qt5.

Source/WebCore:

* platform/qt/RenderThemeQt.cpp:
* platform/qt/SharedTimerQt.cpp:

Source/WebKit2:

* WebProcess/WebCoreSupport/qt/WebErrorsQt.cpp:
* WebProcess/qt/WebProcessQt.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128051 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL][DRT] Encoding issue in printed console messages
https://bugs.webkit.org/show_bug.cgi?id=96263

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

Correctly handle CONSOLE messages that contain non-ascii
characters in EFL's DRT. We need to use String::fromUTF8()
to construct a WTF::String from a raw string.

* DumpRenderTree/efl/DumpRenderTreeView.cpp:
(onConsoleMessage):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128052 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Unskip fast/forms/validation-message-in-relative-body.html
https://bugs.webkit.org/show_bug.cgi?id=96265

Unreviewed EFL gardening.

Unskip fast/forms/validation-message-in-relative-body.html as
it is passing after r128030. The test required interactive
form validation setting to be enabled in WebKitTestRunner.

Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-09-10

* platform/efl-wk2/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128053 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Drastically shorten length of commandline needed for JS bindings generator
https://bugs.webkit.org/show_bug.cgi?id=96266

Patch by Simon Hausmann <simon.hausmann@nokia.com> on 2012-09-10
Reviewed by Kenneth Rohde Christiansen.

The generate-bindings script supports the SOURCE_ROOT environment variable for IDL include file
lookups, which allows specifying relative include search directories.

* DerivedSources.pri:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128054 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Gardening after r128042. Added baseline to newly added
http/tests/security/contentSecurityPolicy/source-list-parsing-nonascii.html
https://bugs.webkit.org/show_bug.cgi?id=96061

Patch by János Badics <jbadics@inf.u-szeged.hu> on 2012-09-10
Reviewed by Csaba Osztrogonác.

* platform/qt/http/tests/security/contentSecurityPolicy/source-list-parsing-nonascii-expected.txt: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128055 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL][WK2] Add fullscreen enter / exit signals to the ewk_view API
https://bugs.webkit.org/show_bug.cgi?id=92362

Patch by Alexander Shalamov <alexander.shalamov@intel.com> on 2012-09-10
Reviewed by Gyuyoung Kim.

Handle WebFullScreenManagerProxy::enterFullScreen and exitFullScreen
methods, so that ewk_view could enter and exit fullscreen mode when requested.
Also, two callbacks were added to ewk_view API, so that UI could customise
behavior when fullscreen mode is requested, e.g. show security dialog.

* UIProcess/API/efl/ewk_settings.cpp:
(ewk_settings_fullscreen_enabled_set):
(ewk_settings_fullscreen_enabled_get):
* UIProcess/API/efl/ewk_settings.h:
* UIProcess/API/efl/ewk_view.cpp:
(_ewk_view_initialize):
(ewk_view_full_screen_enter):
(ewk_view_full_screen_exit):
* UIProcess/API/efl/ewk_view.h:
* UIProcess/API/efl/ewk_view_private.h:
* UIProcess/API/efl/tests/test_ewk2_settings.cpp:
(TEST_F):
* UIProcess/API/efl/tests/test_ewk2_view.cpp:
(fullScreenCallback):
(checkFullScreenProperty):
(TEST_F):
* UIProcess/efl/WebFullScreenManagerProxyEfl.cpp:
(WebKit::WebFullScreenManagerProxy::enterFullScreen):
(WebKit::WebFullScreenManagerProxy::exitFullScreen):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128056 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: only display heap size statistics for timeline records when it makes sense
https://bugs.webkit.org/show_bug.cgi?id=96119

Reviewed by Yury Semikhatsky.

Source/WebCore:

- drop totalHeapSize from timeline records;
- add usedHeapSizeDelta (not set if 0), for heap delta between start and end of the event;
- only display memory details for events of scriping category or when delta is not 0;

* English.lproj/localizedStrings.js:
* inspector/InspectorTimelineAgent.cpp:
(WebCore::getUsedHeapSize):
(WebCore):
(WebCore::InspectorTimelineAgent::setHeapSizeStatistics):
(WebCore::InspectorTimelineAgent::didCompleteCurrentRecord):
(WebCore::InspectorTimelineAgent::pushCurrentRecord):
* inspector/InspectorTimelineAgent.h:
(WebCore::InspectorTimelineAgent::TimelineRecordEntry::TimelineRecordEntry):
(TimelineRecordEntry):
* inspector/front-end/TimelinePresentationModel.js:
(WebInspector.TimelinePresentationModel.Record.prototype.get usedHeapSizeDelta):
(WebInspector.TimelinePresentationModel.Record.prototype._generatePopupContentWithImagePreview):

LayoutTests:

- rebase timeline tests to drop totalHeapSize
- add support for "skip" formatter, to handle cases where value is optionally present in the dumped object;
- drop custom expectations that are identical to base;

* http/tests/inspector/inspector-test.js:
(initialize_InspectorTest.InspectorTest.addObject):
* inspector/timeline/timeline-animation-frame-expected.txt:
* inspector/timeline/timeline-decode-resize-expected.txt:
* inspector/timeline/timeline-dom-content-loaded-event-expected.txt:
* inspector/timeline/timeline-event-dispatch-expected.txt:
* inspector/timeline/timeline-injected-script-eval-expected.txt:
* inspector/timeline/timeline-layout-expected.txt:
* inspector/timeline/timeline-load-event-expected.txt:
* inspector/timeline/timeline-mark-timeline-expected.txt:
* inspector/timeline/timeline-network-resource-expected.txt:
* inspector/timeline/timeline-paint-expected.txt:
* inspector/timeline/timeline-parse-html-expected.txt:
* inspector/timeline/timeline-recalculate-styles-expected.txt:
* inspector/timeline/timeline-script-tag-1-expected.txt:
* inspector/timeline/timeline-script-tag-2-expected.txt:
* inspector/timeline/timeline-test.js:
* inspector/timeline/timeline-time-stamp-expected.txt:
* inspector/timeline/timeline-timer-expected.txt:
* platform/chromium/inspector/timeline/timeline-animation-frame-expected.txt: Removed.
* platform/chromium/inspector/timeline/timeline-event-dispatch-expected.txt: Removed.
* platform/chromium/inspector/timeline/timeline-layout-expected.txt: Removed.
* platform/chromium/inspector/timeline/timeline-network-resource-expected.txt: Removed.
* platform/chromium/inspector/timeline/timeline-parse-html-expected.txt: Removed.
* platform/chromium/inspector/timeline/timeline-timer-expected.txt: Removed.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128057 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Don't use WebGestureEvent.boundingBox for touch adjustment
https://bugs.webkit.org/show_bug.cgi?id=95996

Patch by Rick Byers <rbyers@chromium.org> on 2012-09-10
Reviewed by Adam Barth.

Switch from WebGestureEvent.boundingBox to new gesture-type specific
data fields.
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::handleGestureEvent):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128058 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Added platform-specific results for this test from r128042.

* platform/mac/http/tests/security/contentSecurityPolicy/source-list-parsing-nonascii-expected.txt: Added.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128059 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION (r128006): Three spatial navigation tests are failing
https://bugs.webkit.org/show_bug.cgi?id=96226

Added fast/spatial-navigation/snav-container-white-space.html,
fast/spatial-navigation/snav-div-overflow-scrol-hidden.html, and
fast/spatial-navigation/snav-imagemap-overlapped-areas.html to the mac skip list.

* platform/mac/Skipped:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128060 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: support empty entries in source maps.
https://bugs.webkit.org/show_bug.cgi?id=96088

Reviewed by Vsevolod Vlasov.

Empty entries should be mapped to the compiled script.

Source/WebCore:

* inspector/front-end/CompilerScriptMapping.js:
(WebInspector.CompilerScriptMapping):
(WebInspector.CompilerScriptMapping.prototype.rawLocationToUILocation):
(WebInspector.CompilerScriptMapping.prototype._reset):
(WebInspector.SourceMapParser.prototype._parseMap):

LayoutTests:

* http/tests/inspector/compiler-script-mapping.html:
* http/tests/inspector/resources/source-map.json:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128061 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Gtk] failure to build jhbuild dependencies with cups 1.6
https://bugs.webkit.org/show_bug.cgi?id=95991

Patch by Arnaud Renevier <a.renevier@sisa.samsung.com> on 2012-09-10
Reviewed by Gustavo Noronha Silva.

Bump gtk+ and gnome-themes-standard dependencies to 3.4.2 to allow
building with cups >= 1.6 [GNOME #670373].

* gtk/jhbuild.modules:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128062 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[SOUP] Don't convert to UTF-8 the suggestedFilename passed to Download::decideDestinationWithSuggestedFilename()
https://bugs.webkit.org/show_bug.cgi?id=96261

Reviewed by Martin Robinson.

* WebProcess/Downloads/soup/DownloadSoup.cpp:
(WebKit::DownloadClient::didReceiveResponse):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128063 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Enable WK2 on Windows
Win build fix: Don't do setShouldCloseConnectionOnProcessTermination

FIXME: Check if this can really be left out.
Windows build fix

Somehow the includes are a bit different and the Window build also wants
some header files from WebCore
Fix minibrowser build

DRT is in the include path and therefore with batch builds MiniBrowser's main.cpp conflicts with DRT's main.cpp
Fix WTR build with regards to batching on Windows