[chromium] Enable kerning on Android
https://bugs.webkit.org/show_bug.cgi?id=92737

Patch by Iain Merrick <husky@chromium.org> on 2012-08-09
Reviewed by Adam Barth.

This #ifdef was incorrectly copied from our forked WebKit repository
while unforking our Android-specific changes. Kerning works without
any known problems.

Covered by existing tests (layout and instrumentation tests).

* platform/graphics/harfbuzz/ComplexTextControllerHarfBuzz.cpp:
(WebCore::ComplexTextController::ComplexTextController):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125189 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Updated expectations for script-change-externalResourcesRequired-while-loading.svg

Unreviewed gardening.

Patch by Florin Malita <fmalita@chromium.org> on 2012-08-09

* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125190 268f45cc-cd09-0410-ab3c-d52691b4dbfc
(r125185) http/tests/images/jpg-img-partial-load.html timeout on Lion
https://bugs.webkit.org/show_bug.cgi?id=93636

Unreviewed test expectations update.

* platform/mac/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125191 268f45cc-cd09-0410-ab3c-d52691b4dbfc
CSSRegions: Crash when attaching a region to the removed named flow
https://bugs.webkit.org/show_bug.cgi?id=93204

Reviewed by Abhishek Arya.

Source/WebCore:

The crash happens because the flow thread reference is passed to the RenderRegion object
when the RenderRegion object is created. However, it is only in RenderRegion::attachRegion method
when the region is taken into account and stored in flow thread regions list. Under these circumstances,
it is possible that the flow thread passed to the region at the moment of region creation be destroyed
before the region gets the chance to be attached to the flow thread and a crash will occur.

This patch moves the moment when the RenderRegion object stores its 'weak' reference to the flow thread
from RenderRegion constructor to attachRegion method, preventing the situation in which the region is attached
to a wrong flow thread object.

Test: fast/regions/region-attached-wrong-flow-crash.html

* rendering/RenderObject.cpp:
(WebCore::RenderObject::createObject): Pass 0 instead of a reference to the flow thread.
* rendering/RenderRegion.cpp:
(WebCore::RenderRegion::checkRegionStyle): Added this function to check whether the region has region style rules attached.
(WebCore):
(WebCore::RenderRegion::styleDidChange): Use checkRegionStyle.
(WebCore::RenderRegion::attachRegion): Store the reference to the flow thread. If the flow thread does not exist, it will be created.
Also, check whether the region has region style rules attached, since at this moment the region has a flow thread. Checking whether
the region has region style rules is not enough in styleDidChange, because styleDidChange is sometimes triggered before attachRegion.
* rendering/RenderRegion.h:
(RenderRegion):

LayoutTests:

Add test reproducing the crash.

* fast/regions/region-attached-wrong-flow-crash-expected.txt: Added.
* fast/regions/region-attached-wrong-flow-crash.html: Added.


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