[BlackBerry] EditorClientBlackBerry: Fix parameter name
https://bugs.webkit.org/show_bug.cgi?id=114856

Patch by Alberto Garcia <agarcia@igalia.com> on 2013-04-19
Reviewed by Carlos Garcia Campos.

Build fix due to a typo in a parameter name.

* WebCoreSupport/EditorClientBlackBerry.cpp:
(WebCore::EditorClientBlackBerry::requestCheckingOfString):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148736 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK][WK2] accessibility/language-attribute.html is failing
https://bugs.webkit.org/show_bug.cgi?id=106342

Patch by Krzysztof Czech <k.czech@samsung.com> on 2013-04-19
Reviewed by Gyuyoung Kim.

Tools:

Adds support for getting language information.

* WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
(WTR::AccessibilityUIElement::language):

LayoutTests:

Unskipping accessibility/language-attribute.html.

* platform/gtk-wk2/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148737 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Unreviewed gardening. Added new baseline.

* platform/qt/editing/selection/select-across-readonly-input-1-expected.txt: Updated after r148594.
* platform/qt/fast/sub-pixel/inline-block-with-padding-expected.txt: Added after r148604.
* platform/qt/fast/sub-pixel/selection/selection-gaps-at-fractional-offsets-expected.png: Added after r148604.
* platform/qt/fast/sub-pixel/selection/selection-gaps-at-fractional-offsets-expected.txt: Added after r148604.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148738 268f45cc-cd09-0410-ab3c-d52691b4dbfc
fixed debug broken from previous patch
https://bugs.webkit.org/show_bug.cgi?id=114844

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

* WebKitSupport/RenderQueue.cpp:
(BlackBerry::WebKit::RenderQueue::scrollZoomJobsCompleted):

Add the parameter outstandingJobs which is used in ASSERT(),it was
removed in the r148677 by misstake.now I need to fix it.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148739 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Add method in ewk_settings for setting the CSS media type
https://bugs.webkit.org/show_bug.cgi?id=113284

Patch by Jose Lejin PJ <jose.lejin@gmail.com> on 2013-04-19
Reviewed by Gyuyoung Kim.

Source/WebKit:

test_ewk_setting is added.

* PlatformEfl.cmake:

Source/WebKit/efl:

Added APIs to set and get CSS media type.
Added unit tests for these APIs.

* WebCoreSupport/FrameLoaderClientEfl.cpp:
(WebCore::FrameLoaderClientEfl::overrideMediaType):
* ewk/ewk_settings.cpp:
(ewk_settings_css_media_type_set):
(ewk_settings_css_media_type_get):
* ewk/ewk_settings.h:
* tests/test_ewk_setting.cpp: Added.
(TEST_F):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148740 268f45cc-cd09-0410-ab3c-d52691b4dbfc
OSAllocatorPosix: fix build warnings about unused parameters in QNX
https://bugs.webkit.org/show_bug.cgi?id=114859

Patch by Alberto Garcia <agarcia@igalia.com> on 2013-04-19
Reviewed by Carlos Garcia Campos.

* wtf/OSAllocatorPosix.cpp:
(WTF::OSAllocator::reserveUncommitted):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148741 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK][AC] Support masksToBounds for clutter AC backend.
https://bugs.webkit.org/show_bug.cgi?id=114113

Patch by ChangSeok Oh <changseok.oh@collabora.com> on 2013-04-19
Reviewed by Gustavo Noronha Silva.

We can support the masksToBounds property by using clutter_actor_set_clip simply.

Covered by existing AC tests.

* platform/graphics/clutter/GraphicsLayerActor.cpp:
(graphicsLayerActorSetMasksToBounds):
* platform/graphics/clutter/GraphicsLayerActor.h:
* platform/graphics/clutter/GraphicsLayerClutter.cpp:
(WebCore::GraphicsLayerClutter::setMasksToBounds):
(WebCore):
(WebCore::GraphicsLayerClutter::commitLayerChangesBeforeSublayers):
(WebCore::GraphicsLayerClutter::setupContentsLayer):
(WebCore::GraphicsLayerClutter::updateMasksToBounds):
* platform/graphics/clutter/GraphicsLayerClutter.h:
(GraphicsLayerClutter):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148742 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK][AC] Manage actor's children by using clutter's own way.
https://bugs.webkit.org/show_bug.cgi?id=114257

Patch by ChangSeok Oh <changseok.oh@collabora.com> on 2013-04-19
Reviewed by Gustavo Noronha Silva.

I believe we don't need to maintain a children list of GList. We can do it
by using clutter APIs like clutter_actor_get_children, clutter_actor_get_first_child, etc.

No new tests since no functionality changed.

* platform/graphics/clutter/GraphicsLayerActor.cpp:
(graphics_layer_actor_init):
(graphicsLayerActorAllocate):
(graphicsLayerActorPaint):
(graphicsLayerActorRemoveAll):
(graphicsLayerActorGetnChildren):
(graphicsLayerActorReplaceSublayer):
(graphicsLayerActorInsertSublayer):
* platform/graphics/clutter/GraphicsLayerActor.h:
(_GraphicsLayerActor):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148743 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Only use thin archives on Linux

Rubber-stamped by Jocelyn Turcotte.

Since "thin archive" is a feature of GNU's ar
we limit the usage to Linux to avoid problems
with other configurations (eg. macx-g++).

* qmake/mkspecs/features/default_pre.prf:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148744 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] Make the 32 bits bot only build and run API tests
https://bugs.webkit.org/show_bug.cgi?id=113532

Reviewed by Martin Robinson.

* BuildSlaveSupport/build.webkit.org-config/config.json: make the 32 bits bot use the new BuildAndAPITest type
* BuildSlaveSupport/build.webkit.org-config/master.cfg:
(BuildAndAPITestFactory): new factory that builds and runs API tests, only used by the GTK+ 32 bits bot at the
moment;
(BuildAndAPITestFactory.__init__): add API tests step for platforms that have it.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148745 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix expectations added in r148720.

* fast/js/stack-trace-expected.txt:

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

Marking compositing reftests added in r148172 as ImageOnlyFailure.
Also, skip failing tests on EFL bots.

* platform/efl/TestExpectations:
* platform/efl/compositing/geometry/foreground-layer-expected.txt: Removed.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148747 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Texmap] Implementation for pattern compositing
https://bugs.webkit.org/show_bug.cgi?id=109588

Patch by Noam Rosenthal <noam@webkit.org> on 2013-04-19
Reviewed by Allan Sandfeld Jensen.

Source/WebCore:

Enable pattern compositing (background images) for CoordinatedGraphics/TextureMapperGL.
Use the existing patternTransform shader uniform, multiplying it by a matrix calculated
using the contentsRect, tileSize and tilePhase.

Covered by existing tests in compositing/patterns.

* platform/graphics/GraphicsLayer.h:
(GraphicsLayer):
    Conditionally enable pattern compositing for coordinated graphics.

* platform/graphics/texmap/TextureMapper.cpp:
(WebCore::TextureMapper::TextureMapper):
* platform/graphics/texmap/TextureMapper.h:
(WebCore::TextureMapper::setPatternTransform):
(WebCore::TextureMapper::setWrapMode):
(WebCore::TextureMapper::wrapMode):
(WebCore::TextureMapper::patternTransform):
    Add wrapMode and patternTransform properties to the TextureMapper state.

* platform/graphics/texmap/TextureMapperGL.cpp:
(WebCore::TextureMapperGL::drawTexturedQuadWithProgram):
    Paint with GL_REPEAT and a pattern transform when needed.

* platform/graphics/texmap/TextureMapperLayer.cpp:
(WebCore::TextureMapperLayer::computePatternTransformIfNeeded):
(WebCore):
(WebCore::TextureMapperLayer::paintSelf):
(WebCore::TextureMapperLayer::setContentsRect):
(WebCore::TextureMapperLayer::setContentsTileSize):
(WebCore::TextureMapperLayer::setContentsTilePhase):
    Apply the patternTransform from the tile size/phase.

* platform/graphics/texmap/TextureMapperLayer.h:
(WebCore::TextureMapperLayer::TextureMapperLayer):
(TextureMapperLayer):
(WebCore::TextureMapperLayer::setShouldMapBackingStoreToContentsRect):
(State):
(WebCore::TextureMapperLayer::State::State):
    Allow the client to configure whether a layer uses its bounds or its
    contents rect to paint the backing store.
    This is needed now since layers with background images, unlike layers
    with regular images, may have bounds that are greater than the contents
    rect.

* platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
(WebCore::CoordinatedGraphicsLayer::setContentsTileSize):
(WebCore):
(WebCore::CoordinatedGraphicsLayer::setContentsTilePhase):
(WebCore::CoordinatedGraphicsLayer::setShouldSupportContentsTiling):
(WebCore::GraphicsLayer::supportsContentsTiling):
* platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h:
(CoordinatedGraphicsLayer):
* platform/graphics/texmap/coordinated/CoordinatedGraphicsScene.cpp:
(WebCore::CoordinatedGraphicsScene::setLayerState):
(WebCore::CoordinatedGraphicsScene::assignImageBackingToLayer):
* platform/graphics/texmap/coordinated/CoordinatedGraphicsState.h:
(CoordinatedGraphicsLayerState):
    Logic to pass the tileSize/tilePhase from CoordinatedGraphicsLayer
    to TextureMapperLayer.

* rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::updateDirectlyCompositedBackgroundImage):
    Don't reset the layer's image contents when this is a directly composited image.

Source/WebKit2:

Serialize the two new properties from CoordinatedGraphicsLayer to CoordinatedGraphicsScene.

* Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
(CoreIPC::::encode):
(CoreIPC::::decode):
    Encode/decode the new tiling properties.

* WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
(WebKit::CoordinatedLayerTreeHost::CoordinatedLayerTreeHost):
    Enable pattern compositing for coordinated graphics.
    This is needed since we don't want to enable pattern compositing for
    WebKit1 yet.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148748 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] Minimize calls to GailTextUtil in AtkText implementation
https://bugs.webkit.org/show_bug.cgi?id=114868

Patch by Mario Sanchez Prada <mario.prada@samsung.com> on 2013-04-19
Reviewed by Martin Robinson.

Create a new helper function to concentrate inside of it the calls to
gail_text_util_get_text(), so we can get rid of it later more easily.

* accessibility/atk/WebKitAccessibleInterfaceText.cpp:
(webkitAccessibleTextGetTextForOffset): New helper function.
(webkitAccessibleTextGetTextAfterOffset): Rely on the new function.
(webkitAccessibleTextGetTextAtOffset): Ditto.
(webkitAccessibleTextGetTextBeforeOffset): Ditto.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Mac] ComplexTextController is slow with large numbers of text runs.
<http://webkit.org/b/114875>
<rdar://problem/13337036>

Reviewed by Dan Bernstein.

Instead of iterating over the text runs in indexOfCurrentRun() to figure out the leftmost glyph,
create a lookup table of [run# -> distance in glyphs] at ComplexTextController construction time.

This avoids O(n^2) behavior in indexOfCurrentRun().

* platform/graphics/mac/ComplexTextController.cpp:
(WebCore::ComplexTextController::ComplexTextController):
(WebCore::ComplexTextController::indexOfCurrentRun):
* platform/graphics/mac/ComplexTextController.h:
(ComplexTextController):

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

* platform/efl/TestExpectations: Adding failure expectations for two tests
which are failing on EFL bots.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148751 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Rename TextTrackList owner to element for consistency
https://bugs.webkit.org/show_bug.cgi?id=79822

Reviewed by Eric Carlson.

No new tests. Covered by existing tests.

* bindings/js/JSTextTrackListCustom.cpp:
(WebCore::JSTextTrackListOwner::isReachableFromOpaqueRoots):
(WebCore::JSTextTrackList::visitChildren):
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::~HTMLMediaElement):
* html/track/TextTrackList.cpp:
(TextTrackList::append):
(TextTrackList::remove):
* html/track/TextTrackList.h:
(WebCore::TextTrackList::create):
* html/track/TrackListBase.cpp:
(TrackListBase::TrackListBase):
(TrackListBase::remove):
* html/track/TrackListBase.h:
(WebCore::TrackListBase::clearElement):
(WebCore::TrackListBase::element):
(TrackListBase):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148752 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Refactor transform code in StyleResolver
https://bugs.webkit.org/show_bug.cgi?id=114874

Reviewed by Andreas Kling.

Move transform code frome StyleResolver into own files.

Refactoring, no changes in functionality.

* CMakeLists.txt:
* GNUmakefile.list.am:
* Target.pri:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.vcxproj/WebCore.vcxproj:
* WebCore.vcxproj/WebCore.vcxproj.filters:
* WebCore.xcodeproj/project.pbxproj:
* css/StyleResolver.cpp:
(WebCore::StyleResolver::applyProperty):
(WebCore::StyleResolver::parseCustomFilterTransformParameter):
* css/StyleResolver.h:
* css/TransformFunctions.cpp: Added.
(WebCore):
(WebCore::transformOperationType):
(WebCore::convertToFloatLength):
(WebCore::transformsForValue):
* css/TransformFunctions.h: Added.
(WebCore):
* css/WebKitCSSMatrix.cpp:
(WebCore::WebKitCSSMatrix::setMatrixValue):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148753 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ContainerNode::removeChildren should first detach the children then remove them
https://bugs.webkit.org/show_bug.cgi?id=113433

Reviewed by Ryosuke Niwa.

Currently, ContainerNode::removeChildren initially removes the nodes from the DOM tree and then
calls detach() on each of them. This is anti-intuitive and can lead to subtle bugs because the
detached renderers are not backed by a valid DOM tree any more. With the patch, the nodes are first
detached and then removed from the DOM.
The patch also lets the tree in a consistent state after each node removal by clearing the previous
sibling pointer of the node following the one removed.
I haven't found any proof the performance will get worse if the detachment happens when the children
are still in the DOM tree.

Tests: No changed visible functionality.

* dom/ContainerNode.cpp:
(WebCore::ContainerNode::removeChildren):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148754 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] JSCore.gir.in has a few problems
https://bugs.webkit.org/show_bug.cgi?id=114710

Reviewed by Philippe Normand.

.:

* GNUmakefile.am: Move common GIR initialization here from WebKit1.
* configure.ac: Updated to reflect new JSC gir file location.

Source/JavaScriptCore:

* GNUmakefile.am: Add the gobject introspection steps for JavaScriptCore here,
because they are shared between WebKit1 and WebKit2.
* JavaScriptCore.gir.in: Added. Moved from the WebKit1 directory. Now written
as foreign interfaces and referencing the javascriptcoregtk library.

Source/WebKit/gtk:

* GNUmakefile.am: Updated to reflect new name and location of JavaScriptCore-x.0.gir.
* JSCore.gir.in: Removed.

Source/WebKit2:

* GNUmakefile.am: Updated to reflect new location of JavaScriptCore gir file. Share the
same autotools data task as the WebKit1 and JavaScriptCore gir installations.

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