Unreviewed. Provided Chromium-specific test expectations after r129176.

* platform/chromium-mac-snowleopard/fast/text/emphasis-expected.png:
* platform/chromium-mac-snowleopard/fast/writing-mode/text-orientation-basic-expected.png:
* platform/chromium-mac-snowleopard/fast/writing-mode/text-orientation-basic-expected.txt:
* platform/chromium-mac/fast/text/emphasis-expected.png:
* platform/chromium-mac/fast/writing-mode/text-orientation-basic-expected.png:
* platform/chromium-mac/fast/writing-mode/text-orientation-basic-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129192 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Several MathML tests need rebaseline after r129146
https://bugs.webkit.org/show_bug.cgi?id=97293

Unreviewed EFL gardening.

Rebaseline several MathML tests due to r129146.

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

* platform/efl/mathml/presentation/attributes-expected.png:
* platform/efl/mathml/presentation/attributes-expected.txt:
* platform/efl/mathml/presentation/fenced-expected.png:
* platform/efl/mathml/presentation/fenced-expected.txt:
* platform/efl/mathml/presentation/fenced-mi-expected.png:
* platform/efl/mathml/presentation/fenced-mi-expected.txt:
* platform/efl/mathml/presentation/fractions-expected.png:
* platform/efl/mathml/presentation/fractions-expected.txt:
* platform/efl/mathml/presentation/fractions-vertical-alignment-expected.png:
* platform/efl/mathml/presentation/fractions-vertical-alignment-expected.txt:
* platform/efl/mathml/presentation/mo-stretch-expected.png:
* platform/efl/mathml/presentation/mo-stretch-expected.txt:
* platform/efl/mathml/presentation/mroot-pref-width-expected.png:
* platform/efl/mathml/presentation/mroot-pref-width-expected.txt:
* platform/efl/mathml/presentation/roots-expected.png:
* platform/efl/mathml/presentation/roots-expected.txt:
* platform/efl/mathml/presentation/row-alignment-expected.png:
* platform/efl/mathml/presentation/row-alignment-expected.txt:
* platform/efl/mathml/presentation/style-expected.png:
* platform/efl/mathml/presentation/style-expected.txt:
* platform/efl/mathml/presentation/sub-expected.png:
* platform/efl/mathml/presentation/sub-expected.txt:
* platform/efl/mathml/presentation/subsup-expected.png:
* platform/efl/mathml/presentation/subsup-expected.txt:
* platform/efl/mathml/presentation/sup-expected.png:
* platform/efl/mathml/presentation/sup-expected.txt:
* platform/efl/mathml/presentation/tokenElements-expected.png:
* platform/efl/mathml/presentation/tokenElements-expected.txt:
* platform/efl/mathml/presentation/under-expected.png:
* platform/efl/mathml/presentation/under-expected.txt:
* platform/efl/mathml/presentation/underover-expected.png:
* platform/efl/mathml/presentation/underover-expected.txt:
* platform/efl/mathml/xHeight-expected.png:
* platform/efl/mathml/xHeight-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129193 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. Mark fast/text/international/hebrew-selection.html as failing
on Windows in addition to Linux. The test was introduced in r129175 and
marked as failing on Linux from the very beginning.

* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129194 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Text Autosizing: Cluster text at flow roots, for consistency and to avoid autosizing headers/footers.
https://bugs.webkit.org/show_bug.cgi?id=97025

Patch by John Mellor <johnme@chromium.org> on 2012-09-20
Reviewed by Julien Chaffraix.

Source/WebCore:

This patch has 3 main changes:

1. All text within a "cluster" (roughly equivalent to a CSS flow root /
   block formatting context) must have a uniform textAutosizingMultiplier,
   except for subtrees which are themselves clusters. This improves the
   consistency of the final output, since sibling blocks are now more
   likely to have the same multiplier (hence grow in proportion).

2. Clusters must contain a minimum amount of text in order to be
   autosized (4 lines of text, assuming each char is 1em wide, so about
   2 lines of text in practice). This is to reduce the likelihood of
   autosizing things like headers and footers, which can be quite
   visually distracting. The rationale is that if a cluster contains
   very few lines of text then it's ok to have to zoom in and pan from
   side to side to read each line, since if there are very few lines of
   text you'll only need to pan across once or twice.

3. To avoid adding a 3rd tree traversal, processSubtree/processBox were
   refactored such that all of Text Autosizing now happens as a single
   tree traversal (hence halving the number of tree traversals done).

Tests: fast/text-autosizing/cluster-narrow-in-wide.html
       fast/text-autosizing/cluster-wide-in-narrow.html
       fast/text-autosizing/clusters-insufficient-text.html
       fast/text-autosizing/clusters-insufficient-width.html
       fast/text-autosizing/clusters-sufficient-text-except-in-root.html
       fast/text-autosizing/clusters-sufficient-width.html

* rendering/TextAutosizer.cpp:
(TextAutosizingWindowInfo):

    Added this struct to bundle together the various sizes that
    processSubtree needs to pass to every recursive call to
    processCluster and processContainer.

(WebCore::TextAutosizer::processSubtree):

    - Bundle windowSize and minLayoutSize together as a single struct,
      TextAutosizingWindowInfo, rather than passing them separately.
    - Walk up the tree to find the current cluster and container, rather
      than (incorrectly) assuming that the layoutRoot is always a
      container.
    - Call processCluster instead of traversing the tree.

(WebCore::TextAutosizer::processCluster):

    Calculates the multiplier based on the width of the cluster (moved
    the calculation here from processBox, since now the multiplier is
    fixed per cluster), and delegates to processContainer for the actual
    tree traversal (since clusters are also containers).

(WebCore::contentHeightIsConstrained):

    Changed parameter to RenderBlock.

(WebCore::TextAutosizer::processContainer):

    This now takes care of the whole tree traversal, recursively calling
    processCluster/processContainer when it encounters such an object,
    and setMultiplier on RenderText objects (as processBox used to).
    Also added a check that the RenderText's multiplier is not already
    equal to the target multiplier (to save needlessly setting it).

(WebCore::TextAutosizer::isContainer):

    - Changed to be a positive (is) instead of negative (isNot) check.
    - Require objects to be RenderBlocks so it's easier to find them
      using containingBlock, and there don't seem to be many interesting
      RenderBoxes that aren't RenderBlocks.

(WebCore::TextAutosizer::isAutosizingCluster):

    A container that is also a flow root / block formatting context
    (approximately), hence demarcates an independent region of the page,
    within which we want consistent autosizing.

(WebCore::TextAutosizer::clusterShouldBeAutosized):

    Uses measureDescendantTextWidth and to check whether the cluster
    contains enough text to be worth autosizing.

(WebCore::TextAutosizer::measureDescendantTextWidth):

    Recursively traverse the cluster, skipping constrained height
    containers as processContainer does, to measure how much autosizable
    text it contains. Early out as soon as the minimum text width is
    reached.

(WebCore::TextAutosizer::nextInPreOrderSkippingDescendantsOfContainers):

    Replaces nextInPreOrderMatchingFilter. The filter is now fixed to
    isContainer (we no longer need an isAutosizingCluster filter, since
    I consolidated the tree traversal), and filtered objects are
    actually returned (so they can in turn be recursively traversed),
    it's just their descendants that get skipped.

* rendering/TextAutosizer.h:
(TextAutosizer):

    - Deleted RenderObjectFilterFunctor, since the filter of
      nextInPreOrderSkippingDescendantsOfContainers is now fixed.

LayoutTests:

Added 6 tests (cluster*.html). Updated various other tests to have
enough text so that they continue to pass, or that if they fail, it's
for the reason that was being tested, not just because clustering
decided they had insufficient text.

* fast/text-autosizing/cluster-narrow-in-wide-expected.html: Added.
* fast/text-autosizing/cluster-narrow-in-wide.html: Copied from LayoutTests/fast/text-autosizing/em-margin-border-padding.html.
* fast/text-autosizing/cluster-wide-in-narrow-expected.html: Added.
* fast/text-autosizing/cluster-wide-in-narrow.html: Added.
* fast/text-autosizing/clusters-insufficient-text-expected.html: Added.
* fast/text-autosizing/clusters-insufficient-text.html: Added.
* fast/text-autosizing/clusters-insufficient-width-expected.html: Added.
* fast/text-autosizing/clusters-insufficient-width.html: Added.
* fast/text-autosizing/clusters-sufficient-text-except-in-root-expected.html: Added.
* fast/text-autosizing/clusters-sufficient-text-except-in-root.html: Added.
* fast/text-autosizing/clusters-sufficient-width-expected.html: Added.
* fast/text-autosizing/clusters-sufficient-width.html: Added.
* fast/text-autosizing/constrained-and-overflow-auto-ancestor-expected.html:
* fast/text-autosizing/constrained-and-overflow-auto-ancestor.html:
* fast/text-autosizing/constrained-and-overflow-hidden-ancestor-expected.html:
* fast/text-autosizing/constrained-and-overflow-hidden-ancestor.html:
* fast/text-autosizing/constrained-and-overflow-paged-x-ancestor-expected.html:
* fast/text-autosizing/constrained-and-overflow-paged-x-ancestor.html:
* fast/text-autosizing/constrained-and-overflow-scroll-ancestor-expected.html:
* fast/text-autosizing/constrained-and-overflow-scroll-ancestor.html:
* fast/text-autosizing/constrained-height-ancestor-expected.html:
* fast/text-autosizing/constrained-height-ancestor.html:
* fast/text-autosizing/constrained-maxheight-ancestor-expected.html:
* fast/text-autosizing/constrained-maxheight-ancestor.html:
* fast/text-autosizing/constrained-maxheight-expected.html:
* fast/text-autosizing/constrained-maxheight.html:
* fast/text-autosizing/constrained-percent-maxheight-expected.html:
* fast/text-autosizing/constrained-percent-maxheight.html:
* fast/text-autosizing/constrained-percent-of-viewport-maxheight-expected.html:
* fast/text-autosizing/constrained-percent-of-viewport-maxheight.html:
* fast/text-autosizing/constrained-then-overflow-ancestors-expected.html:
* fast/text-autosizing/constrained-then-overflow-ancestors.html:
* fast/text-autosizing/constrained-then-overflow-then-positioned-ancestors-expected.html:
* fast/text-autosizing/constrained-then-overflow-then-positioned-ancestors.html:
* fast/text-autosizing/constrained-then-position-absolute-ancestors-expected.html:
* fast/text-autosizing/constrained-then-position-absolute-ancestors.html:
* fast/text-autosizing/constrained-then-position-fixed-ancestors-expected.html:
* fast/text-autosizing/constrained-then-position-fixed-ancestors.html:
* fast/text-autosizing/constrained-within-overflow-ancestor-expected.html:
* fast/text-autosizing/constrained-within-overflow-ancestor.html:
* fast/text-autosizing/em-margin-border-padding-expected.html:
* fast/text-autosizing/em-margin-border-padding.html:
* fast/text-autosizing/narrow-child-expected.html:
* fast/text-autosizing/narrow-child.html:
* fast/text-autosizing/wide-child-expected.html:
* fast/text-autosizing/wide-child.html:
* fast/text-autosizing/wide-iframe-expected.html:
* fast/text-autosizing/wide-iframe.html:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129195 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL][WK2] Add API to feed touch event.
https://bugs.webkit.org/show_bug.cgi?id=96903

Patch by Eunmi Lee <eunmi15.lee@samsung.com> on 2012-09-20
Reviewed by Kenneth Rohde Christiansen.

The applications will use this API to feed touch event to the view
when they want to generate touch event from their own event processor.
WTR also will use this API to generate touch event with multiple touch
points for passing test cases of touch event in the WebKit2/EFL.

* PlatformEfl.cmake:
* UIProcess/API/efl/EWebKit2.h:
* UIProcess/API/efl/ewk_view.cpp:
(ewk_view_feed_touch_event):
* UIProcess/API/efl/ewk_view.h:
* UIProcess/API/efl/tests/test_ewk2_view.cpp:
(TEST_F):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129196 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Unreviewed test expectation update.

* platform/chromium/TestExpectations: Assigned new bug entry for
fast/text/international/hebrew-selection.html

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