[Qt] editing/selection tests needs update after rebaseline and new testfonts
https://bugs.webkit.org/show_bug.cgi?id=92186

Patch by Bruno de Oliveira Abinader <bruno.abinader@basyskom.com> on 2012-07-26
Reviewed by Alexis Menard.

After the rebaseline from changeset 121971 - [Qt] DumpRenderTree does not use
'monospace' font when directed, editing/selection tests directory needs to be
updated.

It is important to notice some Qt WK2 layout tests are still failing, some
requires more investigation (handled in bug 91610) and others have a known cause
(input text and text areas differ in WK2 - bug 91990).

* platform/qt-5.0-wk2/Skipped:
* platform/qt-5.0-wk2/editing/selection/select-box-expected.png:
* platform/qt-5.0-wk2/editing/selection/select-box-expected.txt:
* platform/qt-5.0-wk2/editing/selection/select-element-paragraph-boundary-expected.png:
* platform/qt-5.0-wk2/editing/selection/select-element-paragraph-boundary-expected.txt:
* platform/qt-5.0/Skipped:
* platform/qt-5.0/editing/selection/editable-html-element-expected.txt:
* platform/qt-5.0/editing/selection/extend-by-word-001-expected.txt:
* platform/qt-5.0/editing/selection/select-box-expected.png:
* platform/qt-5.0/editing/selection/select-box-expected.txt:
* platform/qt-5.0/editing/selection/select-element-paragraph-boundary-expected.png:
* platform/qt-5.0/editing/selection/select-element-paragraph-boundary-expected.txt:
* platform/qt-5.0/editing/selection/vertical-lr-ltr-extend-line-backward-br-expected.txt:
* platform/qt-5.0/editing/selection/vertical-lr-ltr-extend-line-forward-br-expected.txt:
* platform/qt-5.0/editing/selection/vertical-rl-ltr-extend-line-backward-br-expected.txt:
* platform/qt-5.0/editing/selection/vertical-rl-ltr-extend-line-backward-p-expected.txt:
* platform/qt-5.0/editing/selection/vertical-rl-ltr-extend-line-backward-wrap-expected.txt:
* platform/qt-5.0/editing/selection/vertical-rl-ltr-extend-line-forward-br-expected.txt:
* platform/qt-5.0/editing/selection/vertical-rl-ltr-extend-line-forward-p-expected.txt:
* platform/qt-5.0/editing/selection/vertical-rl-ltr-extend-line-forward-wrap-expected.txt:
* platform/qt-5.0/editing/selection/vertical-rl-rtl-extend-line-backward-br-expected.txt:
* platform/qt-5.0/editing/selection/vertical-rl-rtl-extend-line-backward-p-expected.txt:
* platform/qt/editing/selection/5825350-1-expected.txt:
* platform/qt/editing/selection/5825350-2-expected.txt:
* platform/qt/editing/selection/drag-start-event-client-x-y-expected.txt:
* platform/qt/editing/selection/fake-doubleclick-expected.png:
* platform/qt/editing/selection/fake-doubleclick-expected.txt:
* platform/qt/editing/selection/hit-test-on-text-with-line-height-expected.txt:
* platform/qt/editing/selection/unrendered-001-expected.png:
* platform/qt/editing/selection/unrendered-001-expected.txt:
* platform/qt/editing/selection/unrendered-002-expected.png:
* platform/qt/editing/selection/unrendered-002-expected.txt:
* platform/qt/editing/selection/unrendered-003-expected.png:
* platform/qt/editing/selection/unrendered-003-expected.txt:
* platform/qt/editing/selection/unrendered-004-expected.png:
* platform/qt/editing/selection/unrendered-004-expected.txt:
* platform/qt/editing/selection/unrendered-005-expected.png:
* platform/qt/editing/selection/unrendered-005-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123750 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[BlackBerry] Refactor BackingStorePrivate::render() to avoid touching tile frontbuffer
https://bugs.webkit.org/show_bug.cgi?id=91989

Patch by Arvid Nilsson <anilsson@rim.com> on 2012-07-26
Reviewed by George Staikos.

PR: 141439
Specifically, we want to avoid changing the rendered region of the
front buffer. The code only touched the front buffer rendered region
if the tile was not committed.

Instead of immediately marking the tile as committed, and clearing the
front buffer's rendered region to make it appear as checkerboard, we
leave the front buffer alone and only mark the tile as committed once
the front buffer has valid content. Un-committed tiles will also be
rendered as checkerboard, so leaving it uncommitted is equivalent to
clearing the front buffer rendered region here.

In addition to the main change, some related changes follow naturally.

The copyPreviousContentsToBackSurfaceOfTile() call only makes sense if
the tile is committed, and the front buffer has valid content.
Otherwise, clearing the back buffer is equivalent. The code has been
updated to this effect.

Since copyPreviousContentsToBackSurfaceOfTile() always sets the
rendered region to the union of the front and back buffer regions,
there is no point in the "backBufferIsValid" check. It has been turned
into an ASSERT instead, just to make sure.

Internally reviewed by Jakob Petsovits.

* Api/BackingStore.cpp:
(BlackBerry::WebKit::BackingStorePrivate::render):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123751 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL][WK2] Add unit tests for Ewk_Context
https://bugs.webkit.org/show_bug.cgi?id=92005

Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-07-26
Reviewed by Antonio Gomes.

Add unit tests for WebKit2 Ewk_Context.

* PlatformEfl.cmake:
* UIProcess/API/efl/ewk_url_scheme_request.cpp:
(ewk_url_scheme_request_finish):
* UIProcess/API/efl/ewk_url_scheme_request.h: Mark content_data
argument as const.
* UIProcess/API/efl/tests/test_ewk2_context.cpp: Added.
(TEST_F):
(schemeRequestCallback):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123752 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: ExtensionView constructor shouldn't take parent argument
https://bugs.webkit.org/show_bug.cgi?id=92326

Patch by Jan Keromnes <janx@linux.com> on 2012-07-26
Reviewed by Pavel Feldman.

ExtensionView's constructor took a parent element parameter and auto-
showed itself in the constructor. This didn't allow lazy showing and
was confusing because it didn't work like a classic View object. Fixed.

No new tests needed: Refactoring with no behavior changes.

* inspector/front-end/ExtensionPanel.js:
(WebInspector.ExtensionPanel):
(WebInspector.ExtensionSidebarPane.prototype.setPage):
* inspector/front-end/ExtensionView.js:
(WebInspector.ExtensionView):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123753 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Move region from HitTestResult to HitTestPoint.
https://bugs.webkit.org/show_bug.cgi?id=92367

Reviewed by Antonio Gomes.

Moves the region to HitTestPoint where it makes more sense, and use this
change to simplify hit-testing a new region in RenderFlowThread.

No new functionality. No new tests.

* rendering/HitTestResult.cpp:
(WebCore::HitTestPoint::HitTestPoint):
(WebCore::HitTestPoint::operator=):
(WebCore::HitTestResult::HitTestResult):
(WebCore::HitTestResult::operator=):
* rendering/HitTestResult.h:
(HitTestPoint):
(WebCore::HitTestPoint::region):
(HitTestResult):
* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::nodeAtPoint):
* rendering/RenderBox.cpp:
(WebCore::RenderBox::nodeAtPoint):
* rendering/RenderFlowThread.cpp:
(WebCore::RenderFlowThread::hitTestRegion):
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::hitTestLayer):
* rendering/RenderRegion.cpp:
(WebCore::RenderRegion::nodeAtPoint):
* rendering/RenderTable.cpp:
(WebCore::RenderTable::nodeAtPoint):
* rendering/RenderTableSection.cpp:
(WebCore::RenderTableSection::nodeAtPoint):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123754 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: add GC button to the profiles panel toolbar.
https://bugs.webkit.org/show_bug.cgi?id=92369

Patch by Alexei Filippov <alexeif@chromium.org> on 2012-07-26
Reviewed by Pavel Feldman.

* inspector/front-end/ProfilesPanel.js:
(WebInspector.ProfilesPanel.prototype.get statusBarItems):
(WebInspector.ProfilesPanel.prototype._garbageCollectButtonClicked):
* inspector/front-end/profilesPanel.css:
(.garbage-collect-status-bar-item .glyph):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123755 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[BlackBerry] Refactor BackingStorePrivate::BackingStorePrivate::clearAndUpdateTileOfNotRenderedRegion() to avoid touching tile frontbuffer
https://bugs.webkit.org/show_bug.cgi?id=92095

Patch by Arvid Nilsson <anilsson@rim.com> on 2012-07-26
Reviewed by George Staikos.

PR: 141439
Specifically, we want to avoid changing the rendered region of the
front buffer without proper synchronization.

The method is trying to force checkerboard to appear on screen because
an area was invalidated but the render job was dropped, so the tile
contents are now invalid.

Unfortunately it did this in a way which is not thread safe. Fixed by
making it thread safe, in a way that minimizes memory bandwidth usage.

Instead of using the customary sequence of copy-back, modify and swap,
we send a synchronous message to the compositing thread to avoid the
copy-back step and save memory bandwidth. The trade-off is that the
WebKit thread might wait a little longer for the compositing thread
than it would from a waitForCurrentMessage() call.

The way we synchronize this is rather expensive for the WebKit thread,
and this method is called rather carelessly, so add various early
returns to avoid doing it redundantly.

Internally reviewed by Jakob Petsovits and Adam Treat.

* Api/BackingStore.cpp:
(BlackBerry::WebKit::BackingStorePrivate::indexOfTile):
(BlackBerry::WebKit::BackingStorePrivate::clearAndUpdateTileOfNotRenderedRegion):
* Api/BackingStore_p.h:
(BackingStorePrivate):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123756 268f45cc-cd09-0410-ab3c-d52691b4dbfc
buildbot: Remove the configuration of hfreyther*
https://bugs.webkit.org/show_bug.cgi?id=91849

Reviewed by Adam Roben.

The machine running these configs was decommissioned and
there is no replacement at this point. Remove them from the
configuration.

* BuildSlaveSupport/build.webkit.org-config/config.json: Remove hfreyther* from
the config. The Qt Linux SH4 and Qt Linux MIPS schedulers are orphaned, remove
them too.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123757 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: reduce auto refresh rate of the live native memory diagram
https://bugs.webkit.org/show_bug.cgi?id=92372

Patch by Alexei Filippov <alexeif@chromium.org> on 2012-07-26
Reviewed by Pavel Feldman.

* inspector/front-end/NativeMemorySnapshotView.js:
(WebInspector.NativeMemoryBarChart.prototype.wasShown):

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