[GTK] Set the area of tooltips in WebKit2
https://bugs.webkit.org/show_bug.cgi?id=96618

Reviewed by Martin Robinson.

In GTK+ tooltips are associated to a widget, if the mouse is moved
inside the widget area, the tooltip position doesn't change even
if the tooltip text changes. To support multiple tooltips for the
same widget, we need to set the area of the widget for every
tooltip.

* Shared/WebHitTestResult.cpp:
(WebKit::WebHitTestResult::Data::encode): Encode elementBoundingBox.
(WebKit::WebHitTestResult::Data::decode): Decode elementBoundingBox.
* Shared/WebHitTestResult.h:
(Data): Add elementBoundingBox to WebHitTestResult::Data.
(WebKit::WebHitTestResult::Data::elementBoundingBoxInWindowCoordinates):
Get the bounding box of the inner non shared node of the hit test
result in window coordinates.
(WebKit::WebHitTestResult::Data::Data):
(WebKit::WebHitTestResult::elementBoundingBox):
(WebHitTestResult):
* UIProcess/API/gtk/WebKitWebView.cpp:
(webkitWebViewMouseTargetChanged): Call webkitWebViewBaseSetTooltipArea.
* UIProcess/API/gtk/WebKitWebViewBase.cpp:
(webkitWebViewBaseQueryTooltip): Use the tooltipArea if it's not empty.
(webkitWebViewBaseSetTooltipArea): Set the tooltipArea.
* UIProcess/API/gtk/WebKitWebViewBasePrivate.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128871 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Gardening after r128802.

* platform/efl/TestExpectations: Unskip test that is now passing.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128872 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Unreviewed gardening.

Update some pixel expectations after a long time.
japanese-lr-selection-expected.png now actually shows a selection
background, some shadows are displayed properly and some fonts
have had rendering adjustments.

* platform/efl/fast/writing-mode/basic-vertical-line-expected.png:
* platform/efl/fast/writing-mode/border-radius-clipping-vertical-lr-expected.png:
* platform/efl/fast/writing-mode/box-shadow-horizontal-bt-expected.png:
* platform/efl/fast/writing-mode/box-shadow-vertical-lr-expected.png:
* platform/efl/fast/writing-mode/box-shadow-vertical-rl-expected.png:
* platform/efl/fast/writing-mode/english-bt-text-expected.png:
* platform/efl/fast/writing-mode/english-rl-text-expected.png:
* platform/efl/fast/writing-mode/fieldsets-expected.png:
* platform/efl/fast/writing-mode/japanese-lr-selection-expected.png:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128873 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] run-webkit-tests unable to find TestExpectations for WK2
https://bugs.webkit.org/show_bug.cgi?id=96998

Reviewed by Philippe Normand.

We should look for TestExpectations files in all the locations where
we currently look for Skipped files. This will allow
run-webkit-tests to look for TestExpectations files in
platform/gtk-wk2 and platform/wk2 if the "-2" flag is used.

* Scripts/webkitpy/layout_tests/port/gtk.py:
(GtkPort.expectations_files):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128874 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: [Extensions API] explicitly manage extension audit progress
https://bugs.webkit.org/show_bug.cgi?id=96803

Reviewed by Alexander Pavlov.

Source/WebCore:

- create a sub-progress per audit category;
- manage audit category progress within the category, not in the panel logic;
- consider audit is done when all categories are done;
- expose AuditResults.updateProgress(worked, totalWork) in the extensions API;
- retain old magic for computing audit progress if extension specifies extension results count.

* inspector/front-end/AuditsPanel.js:
(WebInspector.AuditsPanel.prototype._executeAudit.ruleResultReadyCallback):
(WebInspector.AuditsPanel.prototype._executeAudit):
(WebInspector.AuditCategory.prototype.run.callbackWrapper):
(WebInspector.AuditCategory.prototype.run):
* inspector/front-end/ExtensionAPI.js:
(defineCommonExtensionSymbols):
(injectedExtensionAPI.Audits.prototype.addCategory):
(injectedExtensionAPI.AuditResultImpl.prototype.updateProgress):
* inspector/front-end/ExtensionAuditCategory.js:
(WebInspector.ExtensionAuditCategory.prototype.run):
(WebInspector.ExtensionAuditCategoryResults):
(WebInspector.ExtensionAuditCategoryResults.prototype.done):
(WebInspector.ExtensionAuditCategoryResults.prototype._addResult):
(WebInspector.ExtensionAuditCategoryResults.prototype.updateProgress):
* inspector/front-end/ExtensionServer.js:
(WebInspector.ExtensionServer):
(WebInspector.ExtensionServer.prototype._onUpdateAuditProgress):
(WebInspector.ExtensionServer.prototype._onStopAuditCategoryRun):
* inspector/front-end/ProgressBar.js:
(WebInspector.ProgressIndicator.prototype.done): Assure only first call to done() has effect.

LayoutTests:

* inspector/extensions/extensions-audits-api-expected.txt: Added AuditResults.updateProgress()
* inspector/extensions/extensions-audits.html: Added a call to updateProgress()

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128875 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Remove background view on EWebLauncher and MiniBrowser
https://bugs.webkit.org/show_bug.cgi?id=96905

Patch by Seokju Kwon <seokju.kwon@samsung.com> on 2012-09-18
Reviewed by Gyuyoung Kim.

The size of webview was changed after adding url bar.
And the background view is not necessary anymore, since it was used for debugging back in the day.

* EWebLauncher/main.c:
(_ELauncher):
(on_ecore_evas_resize):
(browserCreate):
* MiniBrowser/efl/main.c:
(_MiniBrowser):
(on_ecore_evas_resize):
(browserCreate):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128876 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix compilation with Qt 5 on MeeGo 1.2 Harmattan
https://bugs.webkit.org/show_bug.cgi?id=96937

Patch by Simon Hausmann <simon.hausmann@digia.com> on 2012-09-18
Reviewed by Jocelyn Turcotte.

The gl2ext.h header file on the platform is outdated. Instead use the newer copy from Qt
through implicit inclusion of qopengl.h. Since Qt's declarations are based on newer Khronos
headers, the multi sampling extensions do have the PROC suffix, we need the same workaround
as QNX.

* platform/graphics/opengl/Extensions3DOpenGLES.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128877 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION(r128802): It made some JS tests crash
https://bugs.webkit.org/show_bug.cgi?id=97001

Unreviewed gardening, skip the new _crashing_ tests to paint the bots green.

* platform/qt/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128878 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL][WK2] Clarify TestExpectations file
https://bugs.webkit.org/show_bug.cgi?id=97003

Unreviewed EFL gardening.

Slight reorganization and bug numbers updating
in EFL WK2 TestExpectations for clarity.

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

* platform/efl-wk2/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128879 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] min-device-width failures in media tests
https://bugs.webkit.org/show_bug.cgi?id=96920

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

Source/WebCore:

Return a realistic value (800x600) for screen resolution if
it cannot be detected, instead of returning (0x0).

This allows for some tests to pass on the build bots
where X is not running.

No new tests, already covered by existing tests.

* platform/efl/PlatformScreenEfl.cpp:
(WebCore::screenRect):

LayoutTests:

Unskip several test cases which should pass on the
build bots now that we return a realistic screen
resolution whenever it cannot be detected.

* platform/efl/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128880 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Gardening after r128802.

* platform/efl/TestExpectations: Temporarily skip a few JS tests
which are crashing after r128802.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128881 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Rebaseline several test cases in Skipped list
https://bugs.webkit.org/show_bug.cgi?id=97000

Unreviewed EFL gardening.

Rebaseline several test cases an unskip them.

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

* platform/efl/Skipped:
* platform/efl/TestExpectations:
* platform/efl/animations/additive-transform-animations-expected.txt: Added.
* platform/efl/animations/cross-fade-webkit-mask-box-image-expected.png: Added.
* platform/efl/animations/cross-fade-webkit-mask-box-image-expected.txt: Added.
* platform/efl/fast/events/offsetX-offsetY-expected.txt: Removed.
* platform/efl/fast/events/pointer-events-2-expected.png:
* platform/efl/fast/events/pointer-events-2-expected.txt:
* platform/efl/fast/forms/001-expected.png:
* platform/efl/fast/forms/001-expected.txt:
* platform/efl/fast/forms/float-before-fieldset-expected.png:
* platform/efl/fast/forms/float-before-fieldset-expected.txt:
* platform/efl/fast/forms/form-element-geometry-expected.png:
* platform/efl/fast/forms/form-element-geometry-expected.txt:
* platform/efl/fast/forms/input-baseline-expected.png:
* platform/efl/fast/forms/input-baseline-expected.txt:
* platform/efl/fast/forms/input-placeholder-visibility-1-expected.png:
* platform/efl/fast/forms/input-placeholder-visibility-1-expected.txt:
* platform/efl/fast/forms/input-text-scroll-left-on-blur-expected.png:
* platform/efl/fast/forms/input-text-scroll-left-on-blur-expected.txt:
* platform/efl/fast/forms/mailto/advanced-get-expected.txt: Added.
* platform/efl/fast/forms/mailto/advanced-put-expected.txt: Added.
* platform/efl/fast/forms/placeholder-position-expected.png:
* platform/efl/fast/forms/placeholder-position-expected.txt:
* platform/efl/fast/forms/placeholder-pseudo-style-expected.png:
* platform/efl/fast/forms/placeholder-pseudo-style-expected.txt:
* platform/efl/fast/forms/textarea-placeholder-pseudo-style-expected.png:
* platform/efl/fast/forms/textarea-placeholder-pseudo-style-expected.txt:
* platform/efl/fast/gradients/generated-gradients-expected.png:
* platform/efl/fast/gradients/generated-gradients-expected.txt:
* platform/efl/fast/gradients/radial-centered-expected.png:
* platform/efl/fast/gradients/radial-centered-expected.txt:
* platform/efl/fast/inline-block/contenteditable-baseline-expected.png:
* platform/efl/fast/inline-block/contenteditable-baseline-expected.txt:
* platform/efl/fast/inline/continuation-outlines-with-layers-2-expected.png:
* platform/efl/fast/inline/continuation-outlines-with-layers-2-expected.txt:
* platform/efl/fast/inline/inline-box-background-expected.png:
* platform/efl/fast/inline/inline-box-background-expected.txt:
* platform/efl/fast/inline/inline-box-background-long-image-expected.png:
* platform/efl/fast/inline/inline-box-background-long-image-expected.txt:
* platform/efl/fast/inline/inline-box-background-repeat-x-expected.png:
* platform/efl/fast/inline/inline-box-background-repeat-x-expected.txt:
* platform/efl/fast/inline/inline-box-background-repeat-y-expected.png:
* platform/efl/fast/inline/inline-box-background-repeat-y-expected.txt:
* platform/efl/fast/invalid/nestedh3s-expected.png:
* platform/efl/fast/invalid/nestedh3s-expected.txt:
* platform/efl/fast/overflow/overflow-float-stacking-expected.png:
* platform/efl/fast/overflow/overflow-float-stacking-expected.txt:
* platform/efl/fast/overflow/overflow-stacking-expected.png:
* platform/efl/fast/overflow/overflow-stacking-expected.txt:
* platform/efl/fast/repaint/block-layout-inline-children-replaced-expected.png:
* platform/efl/fast/repaint/block-layout-inline-children-replaced-expected.txt:
* platform/efl/fast/repaint/japanese-rl-selection-clear-expected.png:
* platform/efl/fast/repaint/japanese-rl-selection-clear-expected.txt:
* platform/efl/fast/repaint/japanese-rl-selection-repaint-expected.png:
* platform/efl/fast/repaint/japanese-rl-selection-repaint-expected.txt:
* platform/efl/fast/repaint/line-flow-with-floats-in-regions-expected.png:
* platform/efl/fast/repaint/line-flow-with-floats-in-regions-expected.txt:
* platform/efl/fast/repaint/moving-shadow-on-path-expected.png:
* platform/efl/fast/repaint/moving-shadow-on-path-expected.txt:
* platform/efl/fast/repaint/repaint-svg-after-style-change-expected.png: Added.
* platform/efl/fast/repaint/repaint-svg-after-style-change-expected.txt: Added.
* platform/efl/fast/repaint/table-section-repaint-expected.txt:
* platform/efl/fast/repaint/transform-absolute-in-positioned-container-expected.png:
* platform/efl/fast/repaint/transform-absolute-in-positioned-container-expected.txt:
* platform/efl/fast/replaced/width100percent-searchfield-expected.png:
* platform/efl/fast/replaced/width100percent-searchfield-expected.txt:
* platform/efl/fast/table/027-expected.png:
* platform/efl/fast/table/027-expected.txt:
* platform/efl/fast/table/027-vertical-expected.png:
* platform/efl/fast/table/027-vertical-expected.txt:
* platform/efl/fast/table/032-expected.png:
* platform/efl/fast/table/032-expected.txt:
* platform/efl/fast/table/040-expected.png:
* platform/efl/fast/table/040-expected.txt:
* platform/efl/fast/table/040-vertical-expected.png:
* platform/efl/fast/table/040-vertical-expected.txt:
* platform/efl/fast/table/absolute-table-at-bottom-expected.png:
* platform/efl/fast/table/absolute-table-at-bottom-expected.txt:
* platform/efl/fast/table/border-collapsing/004-expected.png:
* platform/efl/fast/table/border-collapsing/004-expected.txt:
* platform/efl/fast/table/border-collapsing/004-vertical-expected.png:
* platform/efl/fast/table/border-collapsing/004-vertical-expected.txt:
* platform/efl/fast/table/dynamic-caption-add-before-child-expected.png:
* platform/efl/fast/table/dynamic-caption-add-before-child-expected.txt:
* platform/efl/fast/table/frame-and-rules-expected.png:
* platform/efl/fast/table/frame-and-rules-expected.txt:
* platform/efl/fast/table/multiple-captions-display-expected.png: Added.
* platform/efl/fast/table/multiple-captions-display-expected.txt:
* platform/efl/media/video-colorspace-yuv420-expected.png: Added.
* platform/efl/media/video-colorspace-yuv420-expected.txt: Added.
* platform/efl/media/video-colorspace-yuv422-expected.png: Added.
* platform/efl/media/video-colorspace-yuv422-expected.txt: Added.
* platform/efl/perf/nested-combined-selectors-expected.txt: Added.
* platform/efl/userscripts/script-run-at-end-expected.txt: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128882 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, rolling out r128849.
http://trac.webkit.org/changeset/128849
https://bugs.webkit.org/show_bug.cgi?id=97007

Causes test_ewk2_view to time out. (Requested by rakuco on
#webkit).

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

* UIProcess/API/efl/ewk_view.cpp:
(ewk_view_webprocess_crashed):
* UIProcess/API/efl/ewk_view.h:
* UIProcess/API/efl/ewk_view_private.h:
* UIProcess/API/efl/ewk_view_ui_client.cpp:
(ewk_view_ui_client_attach):
* UIProcess/API/efl/tests/test_ewk2_view.cpp:
(TEST_F):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128883 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Prospective Qt/Windows cross-compiling fix

Reviewed by Tor Arne Vestbø.

The win32 scope is not set when cross-compiling from Linux to Windows.

* qmake/mkspecs/features/functions.prf:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128884 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Remove forced use of gold.

Reviewed by Tor Arne Vestbø.

The choice of what linker to use with WebKit should be taken by Qt's build system and ideally the same for all
modules of Qt. Then in turn it is usually up to the administrator of the machine. Recent Debian based systems
often offer the automatic use of gold through a symlink and a dpkg-diversion when installing the gold package.

* qmake/mkspecs/features/unix/default_post.prf:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128885 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Fix build with some versions of the gold linker

Reviewed by Tor Arne Vestbø.

Don't unconditionally pass --no-keep-memory to the linker, some versions might not support it.
Instead run a compile/link test first to see if it works.

* qmake/config.tests/gnuld/gnuld.pro: Added.
* qmake/config.tests/gnuld/main.cpp: Added.
(main):
* qmake/mkspecs/features/unix/default_post.prf:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128886 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] qt_webkit.pri should not be listed in Tools.pro

Reviewed and rubber-stamped by Simon Hausmann and Tor Arne Vestbø.

Since r128751 the module pri file is auto-generated
but it was still listed in OTHER_FILES.

Patch by Andras Becsi <andras.becsi@digia.com> on 2012-09-18

* Tools.pro: Remove unneeded line.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128887 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Update my e-mail address.

Unreviewed.

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

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128888 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Use UndoStep::editingAction() to set the text of undo/redo actions
https://bugs.webkit.org/show_bug.cgi?id=96921

Reviewed by Ryosuke Niwa.

Set the text of QUndoCommands we create for undo/redo actions based on the
editing action from UndoStep.

This change is visible using QtTestBrowser, and looking at the Edit menu after
doing HTML editing changes. I've used http://simple-rte.rniwa.com for testing.

* WebCoreSupport/UndoStepQt.cpp:
(undoNameForEditAction): This function returns a localized name of the action.
(UndoStepQt::UndoStepQt): Set the text based on UndoStep::editingAction.
* tests/qwebpage/tst_qwebpage.cpp:
(tst_QWebPage):
(tst_QWebPage::undoActionHaveCustomText): Create a new test to verify that the text
describing the undo action after inserting a text and indenting the text is different.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128889 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Update my e-mail address.

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

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