Text Autosizing: Ignore constrained heights in certain circumstances.
https://bugs.webkit.org/show_bug.cgi?id=96848

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

Source/WebCore:

Ignore constrained heights on html and body elements, as some sites
(e.g. wikipedia) set height:100% on these, without intending to
constrain the height of descendants.

Also ignore constrained heights on ancestors of floats and out-of-flow
positioned elements with no height set, since the height of these is
determined independently from their ancestors.

Test: fast/text-autosizing/constrained-height-body.html
      fast/text-autosizing/constrained-out-of-flow.html
      fast/text-autosizing/constrained-then-float-ancestors.html
      fast/text-autosizing/constrained-then-position-absolute-ancestors.html
      fast/text-autosizing/constrained-then-position-fixed-ancestors.html

* rendering/TextAutosizer.cpp:
(WebCore::contentHeightIsConstrained):

    Adjusted constrainedness algorithm.

LayoutTests:

Added 3 tests, updated 2, and removed 1. See below.

* fast/text-autosizing/constrained-height-body-expected.html: Added.
* fast/text-autosizing/constrained-height-body.html: Added.

    Checks that constrained height html & body are ignored.

* fast/text-autosizing/constrained-then-overflow-then-positioned-ancestors-expected.html: Removed.
* fast/text-autosizing/constrained-then-overflow-then-positioned-ancestors.html: Removed.

    Removed because this situation is no longer possible now that
    heightless position:absolute elements are always unconstrained.

* fast/text-autosizing/constrained-out-of-flow-expected.html: Added.
* fast/text-autosizing/constrained-out-of-flow.html: Added.

    Checks that floats and out-of-flow positioned elements do not ignore
    constraints on themselves.

* fast/text-autosizing/constrained-then-float-ancestors-expected.html: Added.
* fast/text-autosizing/constrained-then-float-ancestors.html: Added.

    Checks that floats ignore constraints on ancestors.

* fast/text-autosizing/constrained-then-position-absolute-ancestors-expected.html:
* fast/text-autosizing/constrained-then-position-absolute-ancestors.html:

    Added position:relative to emphasize that the ancestor's constrained
    height is actually being ignored, not just skipped over; and updated
    explanation.

* fast/text-autosizing/constrained-then-position-fixed-ancestors-expected.html:
* fast/text-autosizing/constrained-then-position-fixed-ancestors.html:

    Updated explanation (since the test still passes, but for a
    different reason).

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

Reviewed by Mark Hahnenberg.

IndexingHeaderInlineMethods was incorrectly assuming that if the HasArrayStorage bit is clear, then that means that indexing payload capacity is zero.

* runtime/IndexingHeaderInlineMethods.h:
(JSC::IndexingHeader::preCapacity):
(JSC::IndexingHeader::indexingPayloadSizeInBytes):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128928 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed gardening after http://trac.webkit.org/changeset/128928

* platform/efl/TestExpectations:
* platform/gtk/TestExpectations:
* platform/qt/Skipped:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128929 268f45cc-cd09-0410-ab3c-d52691b4dbfc
http://trac.webkit.org/changeset/128912 caused these tests to start failing.
Looks like a garden-o-matic/webkit-patch bug.

* platform/chromium-linux/css3/filters/filter-change-repaint-composited-expected.png: Added.
* platform/chromium-linux/css3/filters/filter-change-repaint-expected.png: Added.
* platform/chromium-linux/css3/filters/filter-repaint-child-layers-expected.png: Added.
* platform/chromium-linux/css3/filters/filter-repaint-composited-fallback-crash-expected.png: Added.
* platform/chromium-linux/css3/filters/filter-repaint-composited-fallback-expected.png: Added.

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