[Chromium] Out of Memory is observed when a large object is passed to a Web Worker.
https://bugs.webkit.org/show_bug.cgi?id=91535.

Reviewed by Dave Levin.

No new tests because of no new behavior and lack of mechanism to monitor used memory.

* bindings/v8/SerializedScriptValue.cpp:
(WebCore::SerializedScriptValue::SerializedScriptValue):
(WebCore::SerializedScriptValue::registerMemoryAllocatedWithCurrentScriptContext):
(WebCore):
(WebCore::SerializedScriptValue::~SerializedScriptValue):
* bindings/v8/SerializedScriptValue.h:
(SerializedScriptValue):
Added a method to SerializedScriptValue to add memory pressure on GC proportional to the size of memory allocated in serialized data.

* dom/MessageEvent.cpp:
(WebCore::MessageEvent::MessageEvent):
(WebCore::MessageEvent::initMessageEvent):
Call the new method of SerializedScriptValue during creation of MessageEvent (presumably in the thread which contains the right V8 context).

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Enable CSS shaders in Qt (software mode)
https://bugs.webkit.org/show_bug.cgi?id=85140

Reviewed by Simon Hausmann.

Source/WebCore:

Added missing files to the Qt build.

No new tests, WebGL is still disabled by default in the bots.

* Target.pri:

Source/WebKit/qt:

Enable CSS Shaders in settings when WebGL is enabled.

* Api/qwebsettings.cpp:
(QWebSettingsPrivate::apply):

Source/WebKit2:

Add CSSCustomFilterEnabled to QWebPreferences. It's disabled by default.

* UIProcess/API/qt/qwebpreferences.cpp:
(QWebPreferencesPrivate::testAttribute):
(QWebPreferencesPrivate::setAttribute):
* UIProcess/API/qt/qwebpreferences_p_p.h:

Tools:

Enable CSS_SHADERS when WEBGL and CSS_FILTERS are enabled.

* qmake/mkspecs/features/features.prf:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123150 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Keep overlap testing on for descendants of an animating element
https://bugs.webkit.org/show_bug.cgi?id=91787

Reviewed by Beth Dakin.

Source/WebCore:

RenderLayerCompositor::computeCompositingRequirements() would turn off
overlap testing for descendants of a layer that has a 3D transform,
or has an animating transform. This could cause compositing changes
inside an animating element when transitions start and stop, which
is undesirable.

Instead, we can keep overlap testing on for descendants of that
animating element, but we have to turn it off for layers later
in z-order.

Also enhance the "IndirectCompositingReason" flags so that in
the compositing log output, we can distinguish between layers that
were composited as a result of overlap testing from those compositing
for stacking reasons.

Test: compositing/layer-creation/animation-overlap-with-children.html

* rendering/RenderLayer.h: New IndirectCompositingReason value to
distinguish overlap from stacking.
* rendering/RenderLayerCompositor.cpp:
(WebCore::RenderLayerCompositor::computeCompositingRequirements):
Use an IndirectCompositingReason enum rather than a bool to track whether
the layer starts as composited.
Remove the if (layer->has3DTransform() || isRunningAcceleratedTransformAnimation(layer->renderer()))
check that turned off overlap testing for descendants of this layer.
Use IndirectCompositingForStacking (somewhat arbitrarily) for reflection layers.
Turn overlap testing off for layers later in the z-order.
(WebCore::RenderLayerCompositor::requiresOwnBackingStore): Take IndirectCompositingForStacking into
account.
(WebCore::RenderLayerCompositor::reasonForCompositing): Improve the logging output.

LayoutTests:

Test with two layers inside an animating container; one should be composited
because of overlap, the other should not be.

* compositing/layer-creation/animation-overlap-with-children-expected.txt: Added.
* compositing/layer-creation/animation-overlap-with-children.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123151 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Unreviewed gardening.  Rebaseline some tests after r115846.

* platform/chromium-mac-snowleopard/fast/repaint/inline-relative-positioned-expected.png: Removed.
* platform/chromium-mac-snowleopard/fast/repaint/lines-with-layout-delta-expected.png:
* platform/chromium-mac-snowleopard/fast/repaint/overflow-clip-subtree-layout-expected.png: Removed.
* platform/chromium-mac-snowleopard/fast/repaint/repaint-resized-overflow-expected.png:
* platform/chromium-mac-snowleopard/fast/repaint/subtree-layoutstate-transform-expected.png:
* platform/chromium-mac-snowleopard/fast/repaint/subtree-root-clip-2-expected.png: Removed.
* platform/chromium-mac-snowleopard/fast/repaint/subtree-root-clip-expected.png: Removed.
* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123152 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] [Part 6] platform/qt/css1 tests needs update after rebaseline and new testfonts
https://bugs.webkit.org/show_bug.cgi?id=91142

Batch of expected result files reviewed. It comprises
/LayoutTests/platform/qt/css1/text_properties directory

Patch by Luciano Wolf <luciano.wolf@openbossa.org> on 2012-07-19
Reviewed by Simon Hausmann.

* platform/qt-5.0-wk1/Skipped:
* platform/qt-5.0-wk2/Skipped:
* platform/qt-5.0/css1/text_properties/letter_spacing-expected.txt: Removed.
* platform/qt-5.0/css1/text_properties/text_transform-expected.txt: Removed.
* platform/qt/css1/text_properties/letter_spacing-expected.png:
* platform/qt/css1/text_properties/letter_spacing-expected.txt:
* platform/qt/css1/text_properties/line_height-expected.png:
* platform/qt/css1/text_properties/line_height-expected.txt:
* platform/qt/css1/text_properties/text_align-expected.png:
* platform/qt/css1/text_properties/text_align-expected.txt:
* platform/qt/css1/text_properties/text_decoration-expected.png:
* platform/qt/css1/text_properties/text_decoration-expected.txt:
* platform/qt/css1/text_properties/text_indent-expected.png:
* platform/qt/css1/text_properties/text_indent-expected.txt:
* platform/qt/css1/text_properties/text_transform-expected.png:
* platform/qt/css1/text_properties/vertical_align-expected.png:
* platform/qt/css1/text_properties/vertical_align-expected.txt:
* platform/qt/css1/text_properties/word_spacing-expected.png:
* platform/qt/css1/text_properties/word_spacing-expected.txt:

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