[EFL][WK2] Add tooltip API to the WKView client
https://bugs.webkit.org/show_bug.cgi?id=111563

Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> on 2013-04-18
Reviewed by Andreas Kling.

Add tooltip to the barebone Tizen C API, and implement
the method so that the EFL API keeps working.

* UIProcess/API/C/efl/WKView.h:
* UIProcess/efl/ViewClientEfl.cpp:
(WebKit::ViewClientEfl::didChangeTooltip):
(WebKit):
(WebKit::ViewClientEfl::ViewClientEfl):
* UIProcess/efl/ViewClientEfl.h:
(ViewClientEfl):
* UIProcess/efl/WebView.cpp:
(WebKit::WebView::toolTipChanged):
* UIProcess/efl/WebViewClient.cpp:
(WebKit::WebViewClient::didChangeTooltip):
(WebKit):
* UIProcess/efl/WebViewClient.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148660 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Unreviewed gardening. Updating png expected results after r148594.

* platform/qt-5.0-wk2/compositing/direct-image-compositing-expected.png: Added.
* platform/qt-5.0-wk2/compositing/geometry/video-fixed-scrolling-expected.png:
* platform/qt-5.0-wk2/compositing/overflow/overflow-compositing-descendant-expected.png:
* platform/qt-5.0-wk2/compositing/overflow/scroll-ancestor-update-expected.png: Added.
* platform/qt-5.0-wk2/compositing/reflections/nested-reflection-transformed-expected.png:
* platform/qt-5.0-wk2/compositing/self-painting-layers-expected.png: Added.
* platform/qt-5.0-wk2/compositing/shadows/shadow-drawing-expected.png: Added.
* platform/qt-5.0-wk2/editing/selection/replaced-boundaries-3-expected.png: Added.
* platform/qt-5.0-wk2/editing/selection/select-box-expected.png: Added.
* platform/qt-5.0-wk2/editing/selection/select-element-paragraph-boundary-expected.png: Added.
* platform/qt-5.0-wk2/fast/backgrounds/background-position-parsing-expected.png: Added.
* platform/qt-5.0-wk2/fast/backgrounds/size/contain-and-cover-zoomed-expected.png: Added.
* platform/qt-5.0-wk2/fast/box-shadow/box-shadow-transformed-expected.png:
* platform/qt-5.0-wk2/fast/clip/overflow-border-radius-composited-expected.png: Added.
* platform/qt-5.0-wk2/fast/css-generated-content/014-expected.png:
* platform/qt-5.0-wk2/fast/css/absolute-child-with-percent-height-inside-relative-parent-expected.png:
* platform/qt-5.0-wk2/fast/events/pointer-events-2-expected.png: Added.
* platform/qt-5.0-wk2/fast/forms/form-element-geometry-expected.png: Added.
* platform/qt-5.0-wk2/fast/forms/menulist-separator-painting-expected.txt:
* platform/qt-5.0-wk2/fast/forms/select-baseline-expected.txt: Added.
* platform/qt-5.0-wk2/fast/forms/selectlist-minsize-expected.txt: Added.
* platform/qt-5.0-wk2/fast/gradients/border-image-gradient-sides-and-corners-expected.png: Added.
* platform/qt-5.0-wk2/fast/inline/continuation-outlines-expected.png: Added.
* platform/qt-5.0-wk2/fast/lists/ordered-list-with-no-ol-tag-expected.png: Added.
* platform/qt-5.0-wk2/fast/text/whitespace/013-expected.png:
* platform/qt-5.0-wk2/fast/text/whitespace/014-expected.png:
* platform/qt-5.0-wk2/svg/as-border-image/svg-as-border-image-expected.png:
* platform/qt-5.0-wk2/svg/custom/image-parent-translation-expected.png:
* platform/qt-5.0-wk2/svg/custom/inline-svg-in-xhtml-expected.png:
* platform/qt-5.0-wk2/svg/custom/js-update-image-and-display-expected.png: Copied from LayoutTests/platform/qt-5.0-wk2/fast/text/whitespace/013-expected.png.
* platform/qt-5.0-wk2/svg/dynamic-updates/SVG-dynamic-css-transform-expected.png:
* platform/qt-5.0-wk2/svg/text/remove-text-node-from-tspan-expected.png:
* platform/qt-5.0-wk2/svg/text/remove-tspan-from-text-expected.png:
* platform/qt-5.0-wk2/svg/text/text-deco-01-b-expected.png: Added.
* platform/qt-5.0-wk2/svg/wicd/test-rightsizing-b-expected.png:
* platform/qt-5.0-wk2/svg/wicd/test-scalable-background-image2-expected.png:
* platform/qt-5.0-wk2/svg/zoom/page/zoom-background-images-expected.png:
* platform/qt-5.0-wk2/svg/zoom/page/zoom-svg-through-object-with-absolute-size-2-expected.png:
* platform/qt-5.0-wk2/svg/zoom/page/zoom-svg-through-object-with-absolute-size-expected.png:
* platform/qt-5.0-wk2/svg/zoom/page/zoom-svg-through-object-with-percentage-size-expected.png: Added.
* platform/qt-5.0-wk2/tables/mozilla/bugs/bug56563-expected.png: Added.
* platform/qt-5.0-wk2/tables/mozilla/marvin/backgr_layers-opacity-expected.png: Added.
* platform/qt-5.0-wk2/tables/mozilla_expected_failures/marvin/backgr_position-table-column-expected.png: Added.
* platform/qt-5.0-wk2/tables/mozilla_expected_failures/marvin/backgr_position-table-row-expected.png: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148661 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Add a newline to the end of log message
https://bugs.webkit.org/show_bug.cgi?id=114659

Patch by Seokju Kwon <seokju.kwon@gmail.com> on 2013-04-18
Reviewed by Gyuyoung Kim.

Move a newline to info() definition.

* EWebLauncher/main.c:
(on_load_finished):
(on_tooltip_text_set):
(on_tooltip_text_unset):
(on_inputmethod_changed):
(on_focus_out):
(on_focus_in):
(on_key_down):
(windowCreate):
* MiniBrowser/efl/main.c:
(on_key_down):
(on_download_request):
(on_download_finished):
(on_download_failed):
(on_refresh_button_clicked):
(on_popup_menu_discarded):
(on_popup_menu_item_clicked):
(popup_menu_populate):
(on_popup_menu_show):
(on_window_create):
(context_popup_item_selected_cb):
(on_context_menu_show):
(on_context_menu_hide):
(window_create):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148662 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Implement JIT for MinGW-w64 64-bit
https://bugs.webkit.org/show_bug.cgi?id=114580

Patch by Jonathan Liu <net147@gmail.com> on 2013-04-18
Reviewed by Jocelyn Turcotte.

* jit/JITStubs.cpp:
(JSC):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148663 268f45cc-cd09-0410-ab3c-d52691b4dbfc
fast/sub-pixel/float-wrap-zoom.html fails
https://bugs.webkit.org/show_bug.cgi?id=114800

Unreviewed gardending.

The test depends on pixel rounding in text painting.

* platform/mac/TestExpectations:
* platform/qt/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148664 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] When the WebProcess crashes, a signal should be emitted
https://bugs.webkit.org/show_bug.cgi?id=105180

Reviewed Carlos Garcia Campos.

Emit a "web-process-crashed" signal when the WebProcess crashes. This
is useful, for example, to show an error page in a web browser
like Chrome does.

* UIProcess/API/gtk/WebKitLoaderClient.cpp:
(processDidCrash):
(attachLoaderClientToView):
* UIProcess/API/gtk/WebKitWebContextPrivate.h:
* UIProcess/API/gtk/WebKitWebView.cpp:
(webkit_web_view_class_init):
(webkitWebViewWebProcessCrashed):
* UIProcess/API/gtk/tests/TestWebExtensions.cpp:
(testWebExtensionGetTitle):
(webProcessCrashedCallback):
(testWebKitWebViewProcessCrashed):
(beforeAll):
* UIProcess/API/gtk/tests/WebExtensionTest.cpp:
(methodCallCallback):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148665 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK][WK2] Add WebKitWebPage::webkit_web_page_get_uri to WebKit2 GTK+ API
https://bugs.webkit.org/show_bug.cgi?id=111288

Patch by Manuel Rego Casasnovas <rego@igalia.com> on 2013-04-18
Reviewed by Anders Carlsson.

Add new property URI to WebKitWebPage providing a method
webkit_web_page_get_uri to get it and the signal "notify::uri" to
monitor changes in the URI.

* UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Include new method in
GTK+ doc.
* UIProcess/API/gtk/tests/TestLoaderClient.cpp:
(testWebPageURI):
(beforeAll):
(afterAll): Add test to check that WebKitWebPage URI matches with
WebKitWebView value. The tests is listening for changes in WebKitWebPage
URI via D-Bus and checks that value is the same than WebKitWebView URI.
It also checks that the order of the URIs in a redirection is right.
When the test finishes the signals are disconnected properly.
* UIProcess/API/gtk/tests/WebExtensionTest.cpp:
(uriChangedCallback):
(pageCreatedCallback): Add new D-Bus signal "URIChanged" connected to
"notify::uri" signal of WebKitWebPage.
* UIProcess/API/gtk/tests/WebKitTestBus.cpp:
(WebKitTestBus::getOrCreateConnection): Rename method connection() to
getOrCreateConnection().
(WebKitTestBus::createProxy): Use the new method name.
* UIProcess/API/gtk/tests/WebKitTestBus.h:
(WebKitTestBus::connection): Add public getter for m_connection.
(WebKitTestBus): Add private method header getOrCreateConnection().
* WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:
(_WebKitWebPagePrivate): Add new URI attribute.
(webkitWebPageSetURI): Method to set the URI and emit the "notify:uri"
signal if it has changed.
(didStartProvisionalLoadForFrame): At this point it use the unreachable
URL from provisional document loader if any. Otherwise, it uses the URL
from provisional document loader.
(didReceiveServerRedirectForProvisionalLoadForFrame): In the case of
redirections it works like for didStartProvisionalLoadForFrame getting
the unreachable URL if any.
(didSameDocumentNavigationForFrame): In this case it gets the URL from
the document loader.
(webkitWebPageGetProperty): Add code related to URI property.
(webkit_web_page_class_init): Add bits related to URI property.
(webkitWebPageCreate): Implement callbacks to monitor URI changes.
(webkit_web_page_get_uri): Return URI attribute.
* WebProcess/InjectedBundle/API/gtk/WebKitWebPage.h: Add new method
header.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148666 268f45cc-cd09-0410-ab3c-d52691b4dbfc
removei build  warning (unused parameter )
https://bugs.webkit.org/show_bug.cgi?id=114670

Patch by Xuefei Ren <xren@blackberry.com> on 2013-04-18
Reviewed by Rob Buis.

remove warning (unused parameter ) in
Source/WebKit/blackberry/WebCoreSupport

* WebCoreSupport/ChromeClientBlackBerry.cpp:
(WebCore::ChromeClientBlackBerry::mouseDidMoveOverElement):
(WebCore::ChromeClientBlackBerry::needTouchEvents):
(WebCore::ChromeClientBlackBerry::reachedMaxAppCacheSize):
* WebCoreSupport/DatePickerClient.cpp:
(WebCore::DatePickerClient::setValue):
* WebCoreSupport/EditorClientBlackBerry.cpp:
(WebCore::EditorClientBlackBerry::checkSpellingOfString):
(WebCore::EditorClientBlackBerry::getAutoCorrectSuggestionForMisspelledWord):
* WebCoreSupport/FrameLoaderClientBlackBerry.cpp:
(WebCore::FrameLoaderClientBlackBerry::dispatchDecidePolicyForNewWindowAction):
(WebCore::FrameLoaderClientBlackBerry::dispatchDidReceiveResponse):
(WebCore::FrameLoaderClientBlackBerry::shouldUseCredentialStorage):
* WebCoreSupport/InspectorClientBlackBerry.cpp:
(WebCore::InspectorClientBlackBerry::updateInspectorStateCookie):
* WebCoreSupport/NetworkInfoClientBlackBerry.cpp:
(WebCore::NetworkInfoClientBlackBerry::onCurrentNetworkTypeChange):
(WebCore::NetworkInfoClientBlackBerry::onCurrentCellularTypeChange):
* WebCoreSupport/SelectPopupClient.cpp:
(WebCore::SelectPopupClient::generateHTML):
* WebCoreSupport/UserMediaClientImpl.cpp:
(WebCore::UserMediaClientImpl::requestUserMedia):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148667 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Toolbar icons are displayed incorrectly
https://bugs.webkit.org/show_bug.cgi?id=114792

Patch by Seokju Kwon <seokju.kwon@gmail.com> on 2013-04-18
Reviewed by Timothy Hatcher.

Inspector uses small toolbar icons when docking the inspector.
So icons should have different x position.

No tests because no behavior change is expected.

* inspector/front-end/inspector.css: Add missing 'background-position-x' values.
(body.dock-to-bottom .toolbar-item.profiles .toolbar-icon):
(body.dock-to-bottom .toolbar-item.cpu-profiler .toolbar-icon):
(body.dock-to-bottom .toolbar-item.css-profiler .toolbar-icon):
(body.dock-to-bottom .toolbar-item.heap-profiler .toolbar-icon):
(body.dock-to-bottom .toolbar-item.canvas-profiler .toolbar-icon):
(body.dock-to-bottom .toolbar-item.memory-chart-profiler .toolbar-icon):
(body.dock-to-bottom .toolbar-item.memory-snapshot-profiler .toolbar-icon):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148668 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add checking whether the compiler allows to use #pragma directive.
https://bugs.webkit.org/show_bug.cgi?id=114740

Patch by Krzysztof Wolanski <k.wolanski@samsung.com> on 2013-04-18
Reviewed by Andreas Kling.

Some compilers may complain that #pragma warning is an undefined macro.

* src/compiler/depgraph/DependencyGraph.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148669 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WK2][EFL] Text Checker's settings refactor
https://bugs.webkit.org/show_bug.cgi?id=111713

Reviewed by Andreas Kling.

Source/WebKit2:

Use WK2's TextCheckerState object as the store for the text checker settings.
It's shared between the client (Ewk API part) and WebProcess (read only).
Thanks to it, we don't have to keep any additional structure with
the settings on ewk side.

In the consistency with WKTextChecker C API, move the Ewk's text checker settings APIs
to the ewk_text_checker.h/cpp. They're not connected to Ewk_View/Ewk_Settings object to
keep them in ewk_setting.h/cpp.

Introduce a new class to implement WKTextCheckerClient callbacks to call spelling
methods through WK2 C API.
The main purpose of this change is to detach text checker initialization from ewk_context.

* PlatformEfl.cmake:
Add a new files to the build.

* UIProcess/API/efl/ewk_context.cpp:
(EwkContext::EwkContext):
Detach the text checker initialization from context.
There might be more than default context.
There is one text checker object per application.

* UIProcess/API/efl/ewk_settings.cpp:
* UIProcess/API/efl/ewk_settings.h:
Remove the text checker settings.

* UIProcess/API/efl/ewk_text_checker.cpp:
Add the text checker settings to the ewk_text_checker.h/cpp

(convertLanguagesToEinaList):
Add helper function to convert Vector's values to Eina_List.

(clientCallbacks):
Add the client callback responsible for the continuous spell checking
setting change to the struct.

(ewk_text_checker_continuous_spell_checking_enabled_set):
Do not call the client's callback responsible for the setting
change unless WebKit changes the setting (trough the context
'Check Spelling While Typing' option).

* UIProcess/API/efl/ewk_text_checker.h:
Adjust APIs name to the ewk_text_checker syntax.
Update the documentation according to the changes.

* UIProcess/API/efl/ewk_text_checker_private.h:
(ClientCallbacks):
Move ClientCallbacks structure to TextCheckerClientEfl.
The client callbacks (Ewk API) have to be accessible in WKTextCheckerClient callbacks
to choose what implementation will be used - the client's (if definied) or Enchant impl.

* UIProcess/API/efl/tests/test_ewk2_text_checker.cpp:
Update the unit tests according to the APIs change.
Update the test responsible for the notification about the setting change
according to changes in 'ewk_text_checker_continuous_spell_checking_enabled_set'.

* UIProcess/efl/TextCheckerClientEfl.cpp: Added.
Implement WKTextCheckerClient callbacks.

(TextCheckerClientEfl::TextCheckerClientEfl):
(TextCheckerClientEfl::instance):
Allow to get and create TextCheckerClientEfl object.

(TextCheckerClientEfl::isContinuousSpellCheckingEnabled):
Get the setting value based on WK2 C API.

(TextCheckerClientEfl::ensureSpellCheckingLanguage):
Load the default languages if user didn't specify any.

(TextCheckerClientEfl::updateSpellCheckingLanguages):
(TextCheckerClientEfl::languagesUpdateTimerFired):
(TextCheckerClientEfl::availableSpellCheckingLanguages):
(TextCheckerClientEfl::loadedSpellCheckingLanguages):
(TextCheckerClientEfl::availableSpellCheckingLanguages):
(TextCheckerClientEfl::loadedSpellCheckingLanguages):
Provide support for languages.

(TextCheckerClientEfl::spellCheckingSettingChangeTimerFired):
(TextCheckerClientEfl::callContinuousSpellCheckingChangeCallbackAsync):
Notify the client about the setting change.

(TextCheckerClientEfl::isContinuousSpellCheckingEnabledCallback):
(TextCheckerClientEfl::setContinuousSpellCheckingEnabledCallback):
(TextCheckerClientEfl::uniqueSpellDocumentTagCallback):
(TextCheckerClientEfl::closeSpellDocumentWithTagCallback):
(TextCheckerClientEfl::checkSpellingOfStringCallback):
(TextCheckerClientEfl::guessesForWordCallback):
(TextCheckerClientEfl::learnWordCallback):
(TextCheckerClientEfl::ignoreWordCallback):
WKTextCheckerClient callbacks implementation.

* UIProcess/efl/TextCheckerClientEfl.h: Added.
(TextCheckerClientEfl):
(TextCheckerClientEfl::clientCallbacks):
Return the client callbacks to be used in ewk_text_checker.cpp.

* UIProcess/efl/TextCheckerEfl.cpp:
(WebKit::TextChecker::state):
Initialize the TextCheckerState's members to false.

(WebKit::TextChecker::setContinuousSpellCheckingEnabled):
Set the default language if user didn't specify any.
Notify the client about the setting change.
This method is called when context menu 'Check Spelling While Typing'
option has been toggled.

(WebKit::TextChecker::continuousSpellCheckingEnabledStateChanged):
Set the default language if user didn't specify any.
Called by WKTextChecker's API.

Tools:

* MiniBrowser/efl/main.c:
(window_create):
Use a new text checker API to enable spell checking.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148670 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL][WK2] Change inadequate return value in method setDone().
https://bugs.webkit.org/show_bug.cgi?id=114806

Patch by Krzysztof Wolanski <k.wolanski@samsung.com> on 2013-04-18
Reviewed by Andreas Kling.

Fix possible warning in EFL port: no return statement in function returning non-void.
Change return value from bool to void in method setDone().

* UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp:
(EWK2UnitTest::CallbackDataTimer::setDone):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148671 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unset :hover in inner documents
https://bugs.webkit.org/show_bug.cgi?id=114446

Reviewed by Antonio Gomes.

Source/WebCore:

Fixes a regression from r145126 where hover nodes in inner documents was sometimes
not unset. Additionally it uses the new api from r145126 to avoid an unnecessary
hit test in touch-event handling.

Test: fast/events/touch/frame-hover-update.html

* dom/Document.cpp:
(WebCore::Document::updateHoverActiveState):
* page/EventHandler.cpp:
(WebCore::shouldGesturesTriggerActive):
(WebCore::EventHandler::handleTouchEvent):

LayoutTests:

Test expected effect of touch events on hover state.

* fast/events/touch/frame-hover-update-expected.txt: Added.
* fast/events/touch/frame-hover-update.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148672 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Flaky Test: media/track/track-mode.html
https://bugs.webkit.org/show_bug.cgi?id=114361

Unreviewed, fix a flaky test.

* media/track/track-mode.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148673 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WK2] CoordinatedGraphicsLayerState is a struct, not a class
https://bugs.webkit.org/show_bug.cgi?id=108855

Reviewed by Andreas Kling.

Fixes the forward declaration which takes CoordinatedGraphicsLayerState
as a class.

* UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
(WebCore):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148674 268f45cc-cd09-0410-ab3c-d52691b4dbfc
EditingStyle: Avoid some unnecessary CSSStyleDeclaration wrappers.
<http://webkit.org/b/114763>

Reviewed by Antti Koivisto.

removeEquivalentProperties(CSSStyleDeclaration) and removeEquivalentProperties(StylePropertySet)
only have different behavior if the CSSStyleDeclaration is computed style (they differ in handling
of the 'font-size' property.)

Avoid creating a CSSStyleDeclaration for StylePropertySets where we can just pass them in directly.

* editing/EditingStyle.cpp:
(WebCore::EditingStyle::removeStyleAddedByNode):
(WebCore::EditingStyle::removeStyleConflictingWithStyleOfNode):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148675 268f45cc-cd09-0410-ab3c-d52691b4dbfc
remove build warning(unused parameter)
https://bugs.webkit.org/show_bug.cgi?id=114670

Patch by Xuefei Ren <xren@blackberry.com> on 2013-04-18
Reviewed by Rob Buis.

remove build warning in Source/WebKit/blackberry/Api

* Api/BackingStore.cpp:
(BlackBerry::WebKit::BackingStorePrivate::scroll):
(BlackBerry::WebKit::BackingStorePrivate::clearAndUpdateTileOfNotRenderedRegion):
(BlackBerry::WebKit::BackingStorePrivate::paintDefaultBackground):
(BlackBerry::WebKit::BackingStorePrivate::blitTileRect):
(BlackBerry::WebKit::BackingStorePrivate::actualVisibleSizeChanged):
* Api/BlackBerryGlobal.cpp:
(BlackBerry::WebKit::clearAppCache):
(BlackBerry::WebKit::clearDatabase):
* Api/WebOverlay.cpp:
(BlackBerry::WebKit::WebOverlayPrivateWebKitThread::setContentsToImage):
(BlackBerry::WebKit::WebOverlayLayerCompositingThreadClient::layerVisibilityChanged):
(BlackBerry::WebKit::WebOverlayLayerCompositingThreadClient::drawTextures):
(BlackBerry::WebKit::WebOverlayPrivateCompositingThread::setContentsToImage):
* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPage::setCaretHighlightStyle):
* Api/WebPageCompositor.cpp:
(BlackBerry::WebKit::WebPageCompositor::cleanup):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148676 268f45cc-cd09-0410-ab3c-d52691b4dbfc
remove build warning(unused parameter)
https://bugs.webkit.org/show_bug.cgi?id=114670

Patch by Xuefei Ren <xren@blackberry.com> on 2013-04-18
Reviewed by Rob Buis.

Source/WebCore:

remove builde warning (unused parameter) in
Source/WebCore/platform/blackberry/CursorBlackBerry.cpp

* platform/blackberry/CursorBlackBerry.cpp:
(WebCore::Cursor::Cursor):

Source/WebKit/blackberry:

remove builde warning (unused parameter) in
Source/WebKit/blackberry

* WebKitSupport/InputHandler.cpp:
(BlackBerry::WebKit::InputHandler::spellCheckingRequestCancelled):
(BlackBerry::WebKit::InputHandler::spellCheckingRequestProcessed):
(BlackBerry::WebKit::InputHandler::spannableTextInRange):
* WebKitSupport/RenderQueue.cpp:
(BlackBerry::WebKit::RenderQueue::backingStoreRectChanging):
(BlackBerry::WebKit::RenderQueue::scrollZoomJobsCompleted):
* WebKitSupport/SurfacePool.cpp:
(BlackBerry::WebKit::SurfacePool::destroyPlatformGraphicsContext):
(BlackBerry::WebKit::SurfacePool::waitForBuffer):
(BlackBerry::WebKit::SurfacePool::notifyBuffersComposited):
(BlackBerry::WebKit::SurfacePool::destroyPlatformSync):

Tools:

remove builde warning (unused parameter) in
Tools/DumpRenderTree/blackberry

* DumpRenderTree/blackberry/AccessibilityUIElementBlackBerry.cpp:
(AccessibilityUIElement::scrollToMakeVisibleWithSubFocus):
(AccessibilityUIElement::scrollToGlobalPoint):
* DumpRenderTree/blackberry/DumpRenderTree.cpp:
(BlackBerry::WebKit::DumpRenderTree::addMessageToConsole):
(BlackBerry::WebKit::DumpRenderTree::didReceiveResponseForFrame):
* DumpRenderTree/blackberry/EventSender.cpp:
(getDragModeCallback):
(setDragModeCallback):
(mouseWheelToCallback):
(contextClickCallback):
(mouseDownCallback):
(mouseUpCallback):
(mouseMoveToCallback):
(beginDragWithFilesCallback):
(leapForwardCallback):
(keyDownCallback):
(textZoomInCallback):
(textZoomOutCallback):
(zoomPageInCallback):
(zoomPageOutCallback):
(addTouchPointCallback):
(updateTouchPointCallback):
(setTouchModifierCallback):
(touchStartCallback):
(touchCancelCallback):
(touchMoveCallback):
(touchEndCallback):
(clearTouchPointsCallback):
(cancelTouchPointCallback):
(releaseTouchPointCallback):
(scalePageByCallback):
* DumpRenderTree/blackberry/TestRunnerBlackBerry.cpp:
(TestRunner::authenticateSession):
(TestRunner::setSpatialNavigationEnabled):
(TestRunner::apiTestNewWindowDataLoadBaseURL):
(TestRunner::setPluginsEnabled):
(TestRunner::setApplicationCacheOriginQuota):
(TestRunner::addMockSpeechInputResult):
(TestRunner::setViewModeMediaFeature):
(TestRunner::deleteLocalStorageForOrigin):
(TestRunner::applicationCacheDiskUsageForOrigin):
(TestRunner::grantWebNotificationPermission):
(TestRunner::denyWebNotificationPermission):
(TestRunner::simulateWebNotificationClick):
(TestRunner::simulateLegacyWebNotificationClick):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148677 268f45cc-cd09-0410-ab3c-d52691b4dbfc
remove build warning(unused parameter)
https://bugs.webkit.org/show_bug.cgi?id=114670

Patch by Xuefei Ren <xren@blackberry.com> on 2013-04-18
Reviewed by Rob Buis.

Source/JavaScriptCore:

remove warning in Source/JavaScriptCore/runtime/GCActivityCallbackBlackBerry.cpp

* runtime/GCActivityCallbackBlackBerry.cpp:
(JSC::DefaultGCActivityCallback::didAllocate):

Source/WebCore:

remove warning(unused parameter) in
Source/WebCore/html/shadow/MediaControlsBlackBerry.cpp
Source/WebCore/loader/blackberry/CookieJarBlackBerry.cpp
Source/WebCore/platform/blackberry/AuthenticationChallengeManager.cpp
Source/WebCore/platform/blackberry/RenderThemeBlackBerry.cpp
Source/WebCore/platform/network/blackberry/ResourceResponseBlackBerry.cpp
Source/WebCore/platform/network/blackberry/SocketStreamHandleBlackBerry.cpp
Source/WebCore/plugins/blackberry/PluginViewBlackBerry.cpp

* html/shadow/MediaControlsBlackBerry.cpp:
(WebCore::MediaControlFullscreenFullscreenButtonElement::setIsFullscreen):
* loader/blackberry/CookieJarBlackBerry.cpp:
(WebCore::getRawCookies):
(WebCore::deleteCookie):
* platform/blackberry/AuthenticationChallengeManager.cpp:
(WebCore::AuthenticationChallengeManager::notifyChallengeResult):
* platform/blackberry/RenderThemeBlackBerry.cpp:
(WebCore::RenderTheme::themeForPage):
* platform/network/blackberry/ResourceResponseBlackBerry.cpp:
(WebCore::ResourceResponse::doPlatformAdopt):
* platform/network/blackberry/SocketStreamHandleBlackBerry.cpp:
(WebCore::SocketStreamHandle::notifyStatusReceived):
* plugins/blackberry/PluginViewBlackBerry.cpp:
(WebCore::PluginView::invalidateRegion):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148678 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] Add WebKitWebPage::send-request signal to WebKit2 GTK+ API
https://bugs.webkit.org/show_bug.cgi?id=83681

Reviewed by Anders Carlsson.

Add WebKitWebPage::send-request signal emitted in willSendRequest
callback to allow web process extensions to modify requests before
they are sent or cancel the resource load.
This patch makes WebKitURIRequest and WebKitURIResponse objects
shareable between UI process and web extensions APIs. Since both
APIs force single header includes, the WebKitDefines.h header has
been split moving the forward declarations specific to the UI
process API to a new file WebKitForwardDeclarations.h. This way we
can also  share the WebKitDefines.h header and remove the
WebKitWebExtensionDefines.h header used in the web extensions API.

* GNUmakefile.list.am: Add new files to compilation.
* UIProcess/API/gtk/WebKitContextMenu.h: Include WebKitForward.h.
* UIProcess/API/gtk/WebKitContextMenuItem.h: Ditto.
* UIProcess/API/gtk/WebKitDefines.h: Remove forward declarations.
* UIProcess/API/gtk/WebKitDownload.h: Include WebKitForward.h.
* UIProcess/API/gtk/WebKitFindController.h: Ditto.
* UIProcess/API/gtk/WebKitForwardDeclarations.h: Added. Contains
the forward declarations moved from WebKitDefines.h.
* UIProcess/API/gtk/WebKitPrintOperation.h: Include WebKitForward.h.
* UIProcess/API/gtk/WebKitURIRequest.cpp:
(webkitURIRequestSetProperty): Use webkit_uri_request_set_uri() to
set the new URI.
(webkit_uri_request_class_init): Make URI property construct
instead of construct-only, since it can be updated once
constructed. It should never be NULL, so set default value to
about:blank instad of NULL.
(webkit_uri_request_set_uri): New public method to set the URI of
the WebKitURIRequest.
* UIProcess/API/gtk/WebKitURIRequest.h: Allow to include this file
from webkit-web-extension.h.
* UIProcess/API/gtk/WebKitURIResponse.h: Ditto.
* UIProcess/API/gtk/WebKitURISchemeRequest.h: Include
WebKitForward.h.
* UIProcess/API/gtk/WebKitWebView.h: Ditto.
* UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Add
webkit_uri_request_set_uri.
* UIProcess/API/gtk/tests/TestResources.cpp:
(testWebResourceSendRequest):
(serverCallback):
(beforeAll):
* UIProcess/API/gtk/tests/WebExtensionTest.cpp:
(sendRequestCallback):
(pageCreatedCallback):
* UIProcess/API/gtk/webkit2marshal.list:
* WebProcess/InjectedBundle/API/gtk/WebKitWebExtension.h: Include
WebKitDefines.h instead of WebKitWebExtensionDefines.h.
* WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:
(willSendRequestForFrame): Emit WebKitWebPage::send-request and
return early if the load is cancelled.
(webkit_web_page_class_init): Add WebKitWebPage::send-request
signal.
* WebProcess/InjectedBundle/API/gtk/WebKitWebPage.h: Include
WebKitDefines.h instead of WebKitWebExtensionDefines.h.
* WebProcess/InjectedBundle/API/gtk/webkit-web-extension.h:

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