[CSS Regions] Activate all regions to have layers, as CSS Regions create a new stacking context

https://bugs.webkit.org/show_bug.cgi?id=121828

Patch by Mihai Maerean <mmaerean@adobe.com> on 2013-10-02
Reviewed by Darin Adler.

Source/WebCore:

The CSS Regions specification says "CSS Regions create a new stacking context." (http://dev.w3.org/csswg/css-regions/).

Divs that create stacking contexts are painted after the divs that don't create stacking contexts.

Test: fast/regions/layers/stacking-context-paint-order.html: While the existing region-sibling-paint-order.html
test verifies that regions paint correctly when the next sibling also creates a stacking context, this new test
verifies that regions paint correctly when the next sibling doesn't create a stacking context.

* rendering/RenderBlock.cpp: Remove code that is not needed now that all regions have layers.
* rendering/RenderBlock.h: Remove code that is not needed now that all regions have layers.
* rendering/RenderBox.cpp: Remove code that is not needed now that all regions have layers.
* rendering/RenderBox.h: Remove code that is not needed now that all regions have layers.
* rendering/RenderFlowThread.cpp:
(WebCore::RenderFlowThread::updateLayerToRegionMappings): Remove code that is not needed now that all regions have layers.
* rendering/RenderRegion.cpp:
(WebCore::RenderRegion::RenderRegion):
* rendering/RenderRegion.h:
(WebCore::RenderRegion::requiresLayer): Always. CSS Regions create Stacking Contexts. RenderMultiColumnSet
implements its own behaviour so the behaviour of each class is contained within its own files.
* rendering/RenderMultiColumnSet.h:
(WebCore::RenderMultiColumnSet::requiresLayer): RenderMultiColumnSet derives from RenderRegion, but unlike the
CSS Regions specification, the Multi-Columns CSS specification states that the column boxes do not establish new
Stacking Contexts.
* rendering/RenderTreeAsText.cpp:
(WebCore::writeRenderRegionList): There's no need to output " hasLayer" since all regions now have layers.

LayoutTests:

For the ref tests, the divs in the expected results coresponding to the regions now have a CSS style causing
them to also create Stacking Contexts.

Most of the tests in fast/regions/layers/ have been deleted because they aren't relevant anymore.

The change in most of the *-expected.txt files is that the " hasLayer" part has been removed (since all regions
now have layers).

Platform (efl, efl-wk2, gtk, mac-lion, mac-wk2, qt, qt-wk2) specific expectated results need to be generated again.

* fast/regions/autoheight-regions-mark-expected.txt:
* fast/regions/flow-content-basic-expected.html: Added. The test is now a ref test.
* fast/regions/flow-content-basic-vertical-expected.html: Added. The test is now a ref test.
* fast/regions/flow-content-basic-vertical-rl-expected.html: Added.The test is now a ref test.
* fast/regions/flow-content-basic-vertical-rl.html:
* fast/regions/flow-content-basic-vertical.html:
* fast/regions/flow-content-basic.html:
* fast/regions/flows-dependency-dynamic-remove-expected.txt:
* fast/regions/flows-dependency-same-flow-expected.txt:
* fast/regions/layers/dynamic-layer-added-with-no-layout-expected.png: Removed.
* fast/regions/layers/dynamic-layer-added-with-no-layout-expected.txt: Removed.
* fast/regions/layers/dynamic-layer-added-with-no-layout.html: Removed.
* fast/regions/layers/dynamic-layer-removed-with-no-layout-expected.png: Removed.
* fast/regions/layers/dynamic-layer-removed-with-no-layout-expected.txt: Removed.
* fast/regions/layers/dynamic-layer-removed-with-no-layout.html: Removed.
* fast/regions/layers/regions-promoted-to-layers-expected.png: Removed.
* fast/regions/layers/regions-promoted-to-layers-expected.txt: Removed.
* fast/regions/layers/regions-promoted-to-layers-horizontal-bt-expected.png: Removed.
* fast/regions/layers/regions-promoted-to-layers-horizontal-bt-expected.txt: Removed.
* fast/regions/layers/regions-promoted-to-layers-horizontal-bt.html: Removed.
* fast/regions/layers/regions-promoted-to-layers-vertical-lr-expected.png: Removed.
* fast/regions/layers/regions-promoted-to-layers-vertical-lr-expected.txt: Removed.
* fast/regions/layers/regions-promoted-to-layers-vertical-lr.html: Removed.
* fast/regions/layers/regions-promoted-to-layers-vertical-rl-expected.png: Removed.
* fast/regions/layers/regions-promoted-to-layers-vertical-rl-expected.txt: Removed.
* fast/regions/layers/regions-promoted-to-layers-vertical-rl.html: Removed.
* fast/regions/layers/regions-promoted-to-layers.html: Removed.
* fast/regions/layers/stacking-context-paint-order-expected.html: Added.
* fast/regions/layers/stacking-context-paint-order.html: Added. While the existing region-sibling-paint-order.html
test verifies that regions paint correctly when the next sibling also creates a stacking context, this new test
verifies that regions paint correctly when the next sibling doesn't create a stacking context.
* fast/regions/region-sibling-paint-order-expected.html:
* fast/regions/region-sibling-paint-order.html:
* fast/repaint/overflow-flipped-writing-mode-block-in-regions-expected.txt:
* fast/repaint/region-painting-composited-element-expected.html:
* fast/repaint/region-painting-in-composited-view-expected.html:
* fast/repaint/region-painting-in-composited-view.html:
* fast/repaint/region-painting-via-layout-expected.txt:
* platform/efl-wk2/TestExpectations:
* platform/efl-wk2/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.png: Removed.
* platform/efl-wk2/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.txt: Removed.
* platform/efl/TestExpectations:
* platform/efl/fast/regions/autoheight-regions-mark-expected.png: Removed.
* platform/efl/fast/regions/autoheight-regions-mark-expected.txt: Removed.
* platform/efl/fast/regions/flow-content-basic-expected.png: Removed. The test is now a ref test.
* platform/efl/fast/regions/flow-content-basic-expected.txt: Removed.
* platform/efl/fast/regions/flow-content-basic-vertical-expected.png: Removed.
* platform/efl/fast/regions/flow-content-basic-vertical-expected.txt: Removed.
* platform/efl/fast/regions/flow-content-basic-vertical-rl-expected.png: Removed.
* platform/efl/fast/regions/flow-content-basic-vertical-rl-expected.txt: Removed.
* platform/efl/fast/regions/flows-dependency-dynamic-remove-expected.png: Removed.
* platform/efl/fast/regions/flows-dependency-dynamic-remove-expected.txt: Removed.
* platform/efl/fast/regions/multiple-directionality-changes-in-variable-width-regions-expected.png: Removed.
* platform/efl/fast/regions/multiple-directionality-changes-in-variable-width-regions-expected.txt: Removed.
* platform/efl/fast/regions/region-dynamic-after-before-expected.txt:
* platform/efl/fast/regions/region-generated-content-before-after-expected.txt:
* platform/efl/fast/regions/text-region-split-small-pagination-expected.png: Removed.
* platform/efl/fast/regions/text-region-split-small-pagination-expected.txt: Removed.
* platform/efl/fast/regions/top-overflow-out-of-second-region-expected.png: Removed.
* platform/efl/fast/regions/top-overflow-out-of-second-region-expected.txt: Removed.
* platform/efl/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.png: Removed.
* platform/efl/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.txt: Removed.
* platform/efl/fast/repaint/region-painting-invalidation-expected.png: Removed.
* platform/efl/fast/repaint/region-painting-invalidation-expected.txt: Removed.
* platform/efl/fast/repaint/region-painting-via-layout-expected.png: Removed.
* platform/efl/fast/repaint/region-painting-via-layout-expected.txt: Removed.
* platform/gtk/TestExpectations:
* platform/gtk/fast/regions/autoheight-regions-mark-expected.png: Removed.
* platform/gtk/fast/regions/autoheight-regions-mark-expected.txt: Removed.
* platform/gtk/fast/regions/flow-content-basic-expected.png: Removed.
* platform/gtk/fast/regions/flow-content-basic-expected.txt: Removed.
* platform/gtk/fast/regions/flow-content-basic-vertical-expected.png: Removed.
* platform/gtk/fast/regions/flow-content-basic-vertical-expected.txt: Removed.
* platform/gtk/fast/regions/flow-content-basic-vertical-rl-expected.png: Removed.
* platform/gtk/fast/regions/flow-content-basic-vertical-rl-expected.txt: Removed.
* platform/gtk/fast/regions/flows-dependency-dynamic-remove-expected.png: Removed.
* platform/gtk/fast/regions/flows-dependency-dynamic-remove-expected.txt: Removed.
* platform/gtk/fast/regions/multiple-directionality-changes-in-variable-width-regions-expected.png: Removed.
* platform/gtk/fast/regions/multiple-directionality-changes-in-variable-width-regions-expected.txt: Removed.
* platform/gtk/fast/regions/region-dynamic-after-before-expected.txt:
* platform/gtk/fast/regions/region-generated-content-before-after-expected.txt:
* platform/gtk/fast/regions/text-region-split-small-pagination-expected.png: Removed.
* platform/gtk/fast/regions/text-region-split-small-pagination-expected.txt: Removed.
* platform/gtk/fast/regions/top-overflow-out-of-second-region-expected.png: Removed.
* platform/gtk/fast/regions/top-overflow-out-of-second-region-expected.txt: Removed.
* platform/gtk/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.png: Removed.
* platform/gtk/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.txt: Removed.
* platform/gtk/fast/repaint/line-flow-with-floats-in-regions-expected.txt:
* platform/gtk/fast/repaint/overflow-flipped-writing-mode-block-in-regions-expected.txt:
* platform/gtk/fast/repaint/region-painting-invalidation-expected.png: Removed.
* platform/gtk/fast/repaint/region-painting-invalidation-expected.txt: Removed.
* platform/gtk/fast/repaint/region-painting-via-layout-expected.png: Removed.
* platform/gtk/fast/repaint/region-painting-via-layout-expected.txt: Removed.
* platform/mac-lion/TestExpectations:
* platform/mac-lion/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.png: Removed.
* platform/mac-lion/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.txt: Removed.
* platform/mac-wk2/TestExpectations:
* platform/mac/fast/regions/flow-content-basic-expected.png: Removed.
* platform/mac/fast/regions/flow-content-basic-expected.txt: Removed.
* platform/mac/fast/regions/flow-content-basic-vertical-expected.png: Removed.
* platform/mac/fast/regions/flow-content-basic-vertical-expected.txt: Removed.
* platform/mac/fast/regions/flow-content-basic-vertical-rl-expected.png: Removed.
* platform/mac/fast/regions/flow-content-basic-vertical-rl-expected.txt: Removed.
* platform/mac/fast/regions/multiple-directionality-changes-in-variable-width-regions-expected.txt:
* platform/mac/fast/regions/region-dynamic-after-before-expected.txt:
* platform/mac/fast/regions/region-generated-content-before-after-expected.txt:
* platform/mac/fast/regions/text-region-split-small-pagination-expected.txt:
* platform/mac/fast/regions/top-overflow-out-of-second-region-expected.txt:
* platform/mac/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.png: Removed.
* platform/mac/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.txt:
* platform/mac/fast/repaint/line-flow-with-floats-in-regions-expected.txt:
* platform/mac/fast/repaint/region-painting-invalidation-expected.txt:
* platform/qt-wk2/TestExpectations:
* platform/qt-wk2/fast/regions/flow-content-basic-expected.png: Removed.
* platform/qt-wk2/fast/regions/flow-content-basic-vertical-expected.png: Removed.
* platform/qt-wk2/fast/regions/flow-content-basic-vertical-rl-expected.png: Removed.
* platform/qt-wk2/fast/regions/multiple-directionality-changes-in-variable-width-regions-expected.png: Removed.
* platform/qt-wk2/fast/regions/text-region-split-small-pagination-expected.png: Removed.
* platform/qt-wk2/fast/regions/top-overflow-out-of-second-region-expected.png: Removed.
* platform/qt-wk2/fast/repaint/region-painting-invalidation-expected.png: Removed.
* platform/qt-wk2/fast/repaint/region-painting-invalidation-expected.txt: Removed.
* platform/qt-wk2/fast/repaint/region-painting-via-layout-expected.png: Removed.
* platform/qt/TestExpectations:
* platform/qt/fast/regions/autoheight-regions-mark-expected.png: Removed.
* platform/qt/fast/regions/autoheight-regions-mark-expected.txt: Removed.
* platform/qt/fast/regions/flow-content-basic-expected.png: Removed.
* platform/qt/fast/regions/flow-content-basic-expected.txt: Removed.
* platform/qt/fast/regions/flow-content-basic-vertical-expected.png: Removed.
* platform/qt/fast/regions/flow-content-basic-vertical-expected.txt: Removed.
* platform/qt/fast/regions/flow-content-basic-vertical-rl-expected.png: Removed.
* platform/qt/fast/regions/flow-content-basic-vertical-rl-expected.txt: Removed.
* platform/qt/fast/regions/flows-dependency-dynamic-remove-expected.png: Removed.
* platform/qt/fast/regions/flows-dependency-dynamic-remove-expected.txt: Removed.
* platform/qt/fast/regions/multiple-directionality-changes-in-variable-width-regions-expected.png: Removed.
* platform/qt/fast/regions/multiple-directionality-changes-in-variable-width-regions-expected.txt: Removed.
* platform/qt/fast/regions/text-region-split-small-pagination-expected.png: Removed.
* platform/qt/fast/regions/text-region-split-small-pagination-expected.txt: Removed.
* platform/qt/fast/regions/top-overflow-out-of-second-region-expected.png: Removed.
* platform/qt/fast/regions/top-overflow-out-of-second-region-expected.txt: Removed.
* platform/qt/fast/repaint/line-flow-with-floats-in-regions-expected.txt:
* platform/qt/fast/repaint/overflow-flipped-writing-mode-block-in-regions-expected.txt:
* platform/qt/fast/repaint/region-painting-invalidation-expected.png: Removed.
* platform/qt/fast/repaint/region-painting-invalidation-expected.txt: Removed.
* platform/qt/fast/repaint/region-painting-via-layout-expected.png: Removed.
* platform/qt/fast/repaint/region-painting-via-layout-expected.txt: Removed.
* platform/win/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.png: Removed.
* platform/win/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.txt: Removed.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156767 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent e0782495
2013-10-02 Mihai Maerean <mmaerean@adobe.com>
[CSS Regions] Activate all regions to have layers, as CSS Regions create a new stacking context
https://bugs.webkit.org/show_bug.cgi?id=121828
Reviewed by Darin Adler.
For the ref tests, the divs in the expected results coresponding to the regions now have a CSS style causing
them to also create Stacking Contexts.
Most of the tests in fast/regions/layers/ have been deleted because they aren't relevant anymore.
The change in most of the *-expected.txt files is that the " hasLayer" part has been removed (since all regions
now have layers).
Platform (efl, efl-wk2, gtk, mac-lion, mac-wk2, qt, qt-wk2) specific expectated results need to be generated again.
* fast/regions/autoheight-regions-mark-expected.txt:
* fast/regions/flow-content-basic-expected.html: Added. The test is now a ref test.
* fast/regions/flow-content-basic-vertical-expected.html: Added. The test is now a ref test.
* fast/regions/flow-content-basic-vertical-rl-expected.html: Added.The test is now a ref test.
* fast/regions/flow-content-basic-vertical-rl.html:
* fast/regions/flow-content-basic-vertical.html:
* fast/regions/flow-content-basic.html:
* fast/regions/flows-dependency-dynamic-remove-expected.txt:
* fast/regions/flows-dependency-same-flow-expected.txt:
* fast/regions/layers/dynamic-layer-added-with-no-layout-expected.png: Removed.
* fast/regions/layers/dynamic-layer-added-with-no-layout-expected.txt: Removed.
* fast/regions/layers/dynamic-layer-added-with-no-layout.html: Removed.
* fast/regions/layers/dynamic-layer-removed-with-no-layout-expected.png: Removed.
* fast/regions/layers/dynamic-layer-removed-with-no-layout-expected.txt: Removed.
* fast/regions/layers/dynamic-layer-removed-with-no-layout.html: Removed.
* fast/regions/layers/regions-promoted-to-layers-expected.png: Removed.
* fast/regions/layers/regions-promoted-to-layers-expected.txt: Removed.
* fast/regions/layers/regions-promoted-to-layers-horizontal-bt-expected.png: Removed.
* fast/regions/layers/regions-promoted-to-layers-horizontal-bt-expected.txt: Removed.
* fast/regions/layers/regions-promoted-to-layers-horizontal-bt.html: Removed.
* fast/regions/layers/regions-promoted-to-layers-vertical-lr-expected.png: Removed.
* fast/regions/layers/regions-promoted-to-layers-vertical-lr-expected.txt: Removed.
* fast/regions/layers/regions-promoted-to-layers-vertical-lr.html: Removed.
* fast/regions/layers/regions-promoted-to-layers-vertical-rl-expected.png: Removed.
* fast/regions/layers/regions-promoted-to-layers-vertical-rl-expected.txt: Removed.
* fast/regions/layers/regions-promoted-to-layers-vertical-rl.html: Removed.
* fast/regions/layers/regions-promoted-to-layers.html: Removed.
* fast/regions/layers/stacking-context-paint-order-expected.html: Added.
* fast/regions/layers/stacking-context-paint-order.html: Added. While the existing region-sibling-paint-order.html
test verifies that regions paint correctly when the next sibling also creates a stacking context, this new test
verifies that regions paint correctly when the next sibling doesn't create a stacking context.
* fast/regions/region-sibling-paint-order-expected.html:
* fast/regions/region-sibling-paint-order.html:
* fast/repaint/overflow-flipped-writing-mode-block-in-regions-expected.txt:
* fast/repaint/region-painting-composited-element-expected.html:
* fast/repaint/region-painting-in-composited-view-expected.html:
* fast/repaint/region-painting-in-composited-view.html:
* fast/repaint/region-painting-via-layout-expected.txt:
* platform/efl-wk2/TestExpectations:
* platform/efl-wk2/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.png: Removed.
* platform/efl-wk2/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.txt: Removed.
* platform/efl/TestExpectations:
* platform/efl/fast/regions/autoheight-regions-mark-expected.png: Removed.
* platform/efl/fast/regions/autoheight-regions-mark-expected.txt: Removed.
* platform/efl/fast/regions/flow-content-basic-expected.png: Removed. The test is now a ref test.
* platform/efl/fast/regions/flow-content-basic-expected.txt: Removed.
* platform/efl/fast/regions/flow-content-basic-vertical-expected.png: Removed.
* platform/efl/fast/regions/flow-content-basic-vertical-expected.txt: Removed.
* platform/efl/fast/regions/flow-content-basic-vertical-rl-expected.png: Removed.
* platform/efl/fast/regions/flow-content-basic-vertical-rl-expected.txt: Removed.
* platform/efl/fast/regions/flows-dependency-dynamic-remove-expected.png: Removed.
* platform/efl/fast/regions/flows-dependency-dynamic-remove-expected.txt: Removed.
* platform/efl/fast/regions/multiple-directionality-changes-in-variable-width-regions-expected.png: Removed.
* platform/efl/fast/regions/multiple-directionality-changes-in-variable-width-regions-expected.txt: Removed.
* platform/efl/fast/regions/region-dynamic-after-before-expected.txt:
* platform/efl/fast/regions/region-generated-content-before-after-expected.txt:
* platform/efl/fast/regions/text-region-split-small-pagination-expected.png: Removed.
* platform/efl/fast/regions/text-region-split-small-pagination-expected.txt: Removed.
* platform/efl/fast/regions/top-overflow-out-of-second-region-expected.png: Removed.
* platform/efl/fast/regions/top-overflow-out-of-second-region-expected.txt: Removed.
* platform/efl/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.png: Removed.
* platform/efl/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.txt: Removed.
* platform/efl/fast/repaint/region-painting-invalidation-expected.png: Removed.
* platform/efl/fast/repaint/region-painting-invalidation-expected.txt: Removed.
* platform/efl/fast/repaint/region-painting-via-layout-expected.png: Removed.
* platform/efl/fast/repaint/region-painting-via-layout-expected.txt: Removed.
* platform/gtk/TestExpectations:
* platform/gtk/fast/regions/autoheight-regions-mark-expected.png: Removed.
* platform/gtk/fast/regions/autoheight-regions-mark-expected.txt: Removed.
* platform/gtk/fast/regions/flow-content-basic-expected.png: Removed.
* platform/gtk/fast/regions/flow-content-basic-expected.txt: Removed.
* platform/gtk/fast/regions/flow-content-basic-vertical-expected.png: Removed.
* platform/gtk/fast/regions/flow-content-basic-vertical-expected.txt: Removed.
* platform/gtk/fast/regions/flow-content-basic-vertical-rl-expected.png: Removed.
* platform/gtk/fast/regions/flow-content-basic-vertical-rl-expected.txt: Removed.
* platform/gtk/fast/regions/flows-dependency-dynamic-remove-expected.png: Removed.
* platform/gtk/fast/regions/flows-dependency-dynamic-remove-expected.txt: Removed.
* platform/gtk/fast/regions/multiple-directionality-changes-in-variable-width-regions-expected.png: Removed.
* platform/gtk/fast/regions/multiple-directionality-changes-in-variable-width-regions-expected.txt: Removed.
* platform/gtk/fast/regions/region-dynamic-after-before-expected.txt:
* platform/gtk/fast/regions/region-generated-content-before-after-expected.txt:
* platform/gtk/fast/regions/text-region-split-small-pagination-expected.png: Removed.
* platform/gtk/fast/regions/text-region-split-small-pagination-expected.txt: Removed.
* platform/gtk/fast/regions/top-overflow-out-of-second-region-expected.png: Removed.
* platform/gtk/fast/regions/top-overflow-out-of-second-region-expected.txt: Removed.
* platform/gtk/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.png: Removed.
* platform/gtk/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.txt: Removed.
* platform/gtk/fast/repaint/line-flow-with-floats-in-regions-expected.txt:
* platform/gtk/fast/repaint/overflow-flipped-writing-mode-block-in-regions-expected.txt:
* platform/gtk/fast/repaint/region-painting-invalidation-expected.png: Removed.
* platform/gtk/fast/repaint/region-painting-invalidation-expected.txt: Removed.
* platform/gtk/fast/repaint/region-painting-via-layout-expected.png: Removed.
* platform/gtk/fast/repaint/region-painting-via-layout-expected.txt: Removed.
* platform/mac-lion/TestExpectations:
* platform/mac-lion/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.png: Removed.
* platform/mac-lion/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.txt: Removed.
* platform/mac-wk2/TestExpectations:
* platform/mac/fast/regions/flow-content-basic-expected.png: Removed.
* platform/mac/fast/regions/flow-content-basic-expected.txt: Removed.
* platform/mac/fast/regions/flow-content-basic-vertical-expected.png: Removed.
* platform/mac/fast/regions/flow-content-basic-vertical-expected.txt: Removed.
* platform/mac/fast/regions/flow-content-basic-vertical-rl-expected.png: Removed.
* platform/mac/fast/regions/flow-content-basic-vertical-rl-expected.txt: Removed.
* platform/mac/fast/regions/multiple-directionality-changes-in-variable-width-regions-expected.txt:
* platform/mac/fast/regions/region-dynamic-after-before-expected.txt:
* platform/mac/fast/regions/region-generated-content-before-after-expected.txt:
* platform/mac/fast/regions/text-region-split-small-pagination-expected.txt:
* platform/mac/fast/regions/top-overflow-out-of-second-region-expected.txt:
* platform/mac/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.png: Removed.
* platform/mac/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.txt:
* platform/mac/fast/repaint/line-flow-with-floats-in-regions-expected.txt:
* platform/mac/fast/repaint/region-painting-invalidation-expected.txt:
* platform/qt-wk2/TestExpectations:
* platform/qt-wk2/fast/regions/flow-content-basic-expected.png: Removed.
* platform/qt-wk2/fast/regions/flow-content-basic-vertical-expected.png: Removed.
* platform/qt-wk2/fast/regions/flow-content-basic-vertical-rl-expected.png: Removed.
* platform/qt-wk2/fast/regions/multiple-directionality-changes-in-variable-width-regions-expected.png: Removed.
* platform/qt-wk2/fast/regions/text-region-split-small-pagination-expected.png: Removed.
* platform/qt-wk2/fast/regions/top-overflow-out-of-second-region-expected.png: Removed.
* platform/qt-wk2/fast/repaint/region-painting-invalidation-expected.png: Removed.
* platform/qt-wk2/fast/repaint/region-painting-invalidation-expected.txt: Removed.
* platform/qt-wk2/fast/repaint/region-painting-via-layout-expected.png: Removed.
* platform/qt/TestExpectations:
* platform/qt/fast/regions/autoheight-regions-mark-expected.png: Removed.
* platform/qt/fast/regions/autoheight-regions-mark-expected.txt: Removed.
* platform/qt/fast/regions/flow-content-basic-expected.png: Removed.
* platform/qt/fast/regions/flow-content-basic-expected.txt: Removed.
* platform/qt/fast/regions/flow-content-basic-vertical-expected.png: Removed.
* platform/qt/fast/regions/flow-content-basic-vertical-expected.txt: Removed.
* platform/qt/fast/regions/flow-content-basic-vertical-rl-expected.png: Removed.
* platform/qt/fast/regions/flow-content-basic-vertical-rl-expected.txt: Removed.
* platform/qt/fast/regions/flows-dependency-dynamic-remove-expected.png: Removed.
* platform/qt/fast/regions/flows-dependency-dynamic-remove-expected.txt: Removed.
* platform/qt/fast/regions/multiple-directionality-changes-in-variable-width-regions-expected.png: Removed.
* platform/qt/fast/regions/multiple-directionality-changes-in-variable-width-regions-expected.txt: Removed.
* platform/qt/fast/regions/text-region-split-small-pagination-expected.png: Removed.
* platform/qt/fast/regions/text-region-split-small-pagination-expected.txt: Removed.
* platform/qt/fast/regions/top-overflow-out-of-second-region-expected.png: Removed.
* platform/qt/fast/regions/top-overflow-out-of-second-region-expected.txt: Removed.
* platform/qt/fast/repaint/line-flow-with-floats-in-regions-expected.txt:
* platform/qt/fast/repaint/overflow-flipped-writing-mode-block-in-regions-expected.txt:
* platform/qt/fast/repaint/region-painting-invalidation-expected.png: Removed.
* platform/qt/fast/repaint/region-painting-invalidation-expected.txt: Removed.
* platform/qt/fast/repaint/region-painting-via-layout-expected.png: Removed.
* platform/qt/fast/repaint/region-painting-via-layout-expected.txt: Removed.
* platform/win/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.png: Removed.
* platform/win/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.txt: Removed.
2013-10-02 Renata Hodovan <reni@webkit.org>
HTML listbox is not resized horizontally when zooming
......@@ -3,10 +3,10 @@ layer at (0,0) size 800x600
layer at (0,0) size 800x116
RenderBlock {HTML} at (0,0) size 800x116
RenderBody {BODY} at (8,8) size 784x100
RenderRegion {DIV} at (0,0) size 50x50
RenderRegion {DIV} at (0,50) size 50x0
RenderRegion {DIV} at (0,50) size 50x0
RenderRegion {DIV} at (0,50) size 50x50
layer at (8,8) size 50x50
RenderRegion {DIV} at (0,0) size 50x50
layer at (8,58) size 50x50
RenderRegion {DIV} at (0,50) size 50x50
layer at (8,50) size 50x450
RenderRegion {DIV} at (8,50) size 50x450
layer at (50,8) size 650x50
......@@ -24,12 +24,12 @@ Flow Threads
layer at (0,0) size 50x450
RenderNamedFlowThread at (0,0) size 50x450
Regions for flow 'flow3'
RenderRegion {DIV} #region3 hasLayer
RenderRegion {DIV} #region3
Thread with flow-name 'flow4'
layer at (0,0) size 650x50
RenderNamedFlowThread at (0,0) size 650x50
Regions for flow 'flow4'
RenderRegion {DIV} #region4 hasLayer
RenderRegion {DIV} #region4
Thread with flow-name 'flow5'
Regions for flow 'flow5'
RenderRegion {DIV} #region5 hasAutoLogicalHeight
......
<!DOCTYPE HTML>
<html>
<head>
<!-- This test checks that content can be redirected to a region. It also
tries out a validation strategy that recreates the intended display
using non-region markup. If top does not match the bottom then the
result should be rejected. -->
<style type="text/css">
html {
-webkit-font-smoothing: none;
}
.region{
position: relative; z-index: 1; /* regions create Stacking Contexts */
height:100px;
width:300px;
border: solid 1px #888; /* to stop the margin collapsing */
}
.pass{
color: green;
}
</style>
</head>
<body>
<div>
The words "flow content" in green should display after this div,
and there should be two copies of this content that match.
</div>
<div id="region1" class="region">
<div id="source" class="pass">
<p>flow content</p>
</div>
</div>
<div>
The words "flow content" in green should display after this div,
and there should be two copies of this content that match.
</div>
<div class="pass">
<p>flow content</p>
</div>
</body>
</html>
<!DOCTYPE HTML>
<html>
<head>
<!-- This test checks that content can be redirected to a region. It also
tries out a validation strategy that recreates the intended display
using non-region markup. If top does not match the bottom then the
result should be rejected. -->
<style type="text/css">
html {
-webkit-writing-mode: vertical-lr;
-webkit-font-smoothing: none;
}
.region{
position: relative; z-index: 1; /* regions create Stacking Contexts */
width: 100px;
height: 300px;
border: solid 1px #888; /* to stop the margin collapsing */
}
.pass{
color: green;
}
</style>
</head>
<body>
<div>
The words "flow content" in green should display after this div,
and there should be two copies of this content that match.
</div>
<div id="region1" class="region">
<div id="source" class="pass">
<p>flow content</p>
</div>
</div>
<div>
The words "flow content" in green should display after this div,
and there should be two copies of this content that match.
</div>
<div class="pass">
<p>flow content</p>
</div>
</body>
</html>
<!DOCTYPE HTML>
<html>
<head>
<!-- This test checks that content can be redirected to a region. It also
tries out a validation strategy that recreates the intended display
using non-region markup. If top does not match the bottom then the
result should be rejected. -->
<style type="text/css">
html {
-webkit-writing-mode: vertical-rl;
-webkit-font-smoothing: none;
}
.region{
position: relative; z-index: 1; /* regions create Stacking Contexts */
width: 100px;
height: 300px;
border: 1px solid black; /* to stop the margin collapsing */
padding: 5px;
}
.pass{
color: green;
}
</style>
</head>
<body>
<div>
The words "flow content" in green should display twice after this div,
and there should be two copies of this content that match.
</div>
<div id="region1" class="region">
<div id="source" class="pass">
<div style="width:100px;">first flow content</div>
</div>
</div>
<div id="region2" class="region">
<div id="source" class="pass">
<div style="width:100px;">second flow content</div>
</div>
</div>
<div>
The words "flow content" in green should display after this div,
and there should be two copies of this content that match.
</div>
<div class="pass">
<p>flow content</p>
</div>
</body>
</html>
......@@ -9,13 +9,22 @@
result should be rejected. -->
<style type="text/css">
html { -webkit-writing-mode: vertical-rl }
html {
-webkit-writing-mode: vertical-rl;
-webkit-font-smoothing: none;
}
#source{
-webkit-flow-into: main-thread;
}
.region { width: 100px; height:300px; -webkit-flow-from: main-thread; border:1px solid black; padding:5px }
.region {
-webkit-flow-from: main-thread;
width: 100px;
height:300px;
border:1px solid black;
padding:5px;
}
.pass{
color: green;
......
......@@ -9,7 +9,10 @@
result should be rejected. -->
<style type="text/css">
html { -webkit-writing-mode: vertical-lr }
html {
-webkit-writing-mode: vertical-lr;
-webkit-font-smoothing: none;
}
#source{
-webkit-flow-into: main-thread;
......@@ -17,8 +20,9 @@
.region{
-webkit-flow-from: main-thread;
width:100px;
height:300px;
width: 100px;
height: 300px;
border: solid 1px #888;
}
.pass{
......
......@@ -9,6 +9,10 @@
result should be rejected. -->
<style type="text/css">
html {
-webkit-font-smoothing: none;
}
#source{
-webkit-flow-into: main-thread;
}
......@@ -17,6 +21,7 @@
-webkit-flow-from: main-thread;
height:100px;
width:300px;
border: solid 1px #888;
}
.pass{
......
......@@ -3,7 +3,6 @@ layer at (0,0) size 800x600
layer at (0,0) size 800x16
RenderBlock {HTML} at (0,0) size 800x16
RenderBody {BODY} at (8,8) size 784x0
RenderRegion {DIV} at (0,0) size 0x0
Flow Threads
Thread with flow-name 'flowC'
Thread with flow-name 'flowA'
......
......@@ -3,9 +3,6 @@ layer at (0,0) size 800x600
layer at (0,0) size 800x16
RenderBlock {HTML} at (0,0) size 800x16
RenderBody {BODY} at (8,8) size 784x0
RenderRegion {DIV} at (0,0) size 0x0
RenderRegion {DIV} at (0,0) size 0x0
RenderRegion {DIV} at (0,0) size 0x0
Flow Threads
Thread with flow-name 'flowB'
Regions for flow 'flowB'
......
layer at (0,0) size 800x600
RenderView at (0,0) size 800x600
layer at (0,0) size 800x60
RenderBlock {HTML} at (0,0) size 800x60
RenderBody {BODY} at (8,8) size 784x0
RenderRegion {DIV} at (0,0) size 52x52 [border: (1px solid #000000)]
RenderRegion {DIV} at (104,0) size 52x52 [border: (1px solid #000000)]
layer at (60,8) size 52x52
RenderRegion {DIV} at (52,0) size 52x52 [border: (1px solid #000000)]
Flow Threads
Thread with flow-name 'article'
layer at (0,0) size 50x150
RenderNamedFlowThread at (0,0) size 50x150
RenderBlock {DIV} at (0,0) size 50x150
RenderBlock {DIV} at (0,0) size 50x50 [bgcolor=#008000]
RenderBlock {DIV} at (0,100) size 50x50 [bgcolor=#FFA500]
layer at (0,50) size 50x50
RenderBlock {DIV} at (0,50) size 50x50 [bgcolor=#0000FF]
Regions for flow 'article'
RenderRegion {DIV}
RenderRegion {DIV} #should-have-layer hasLayer
RenderRegion {DIV}
<!doctype html>
<html>
<!--
Testing that regions become layers as required by the content that display in those regions.
There should be three boxes (green, blue, orange) with black borders.
The test passes if the second region becomes a RenderLayer.
-->
<head>
<link rel="stylesheet" href="../resources/region-style.css">
<style>
.layer
{
-webkit-transform: translateZ(0px);
}
</style>
</head>
<body>
<div class="flowArticle">
<div class="greenBox"></div>
<div id="test-box" class="blueBox"></div>
<div class="orangeBox"></div>
</div>
<div class="regionArticle borderBox"></div>
<div id="should-have-layer" class="regionArticle borderBox"></div>
<div class="regionArticle borderBox"></div>
<script>
// Force a layout
document.body.offsetTop;
// The following line will make a layer for the test-box, but will not trigger a new layout.
document.getElementById("test-box").classList.add("layer");
</script>
</body>
</html>
layer at (0,0) size 800x600
RenderView at (0,0) size 800x600
layer at (0,0) size 800x60
RenderBlock {HTML} at (0,0) size 800x60
RenderBody {BODY} at (8,8) size 784x0
RenderRegion {DIV} at (52,0) size 52x52 [border: (1px solid #000000)]
RenderRegion {DIV} at (104,0) size 52x52 [border: (1px solid #000000)]
layer at (8,8) size 52x52
RenderRegion {DIV} at (0,0) size 52x52 [border: (1px solid #000000)]
Flow Threads
Thread with flow-name 'article'
layer at (0,0) size 50x150
RenderNamedFlowThread at (0,0) size 50x150
RenderBlock {DIV} at (0,0) size 50x150
RenderBlock {DIV} at (0,50) size 50x50 [bgcolor=#0000FF]
RenderBlock {DIV} at (0,100) size 50x50 [bgcolor=#FFA500]
layer at (0,0) size 50x50
RenderBlock {DIV} at (0,0) size 50x50 [bgcolor=#008000]
Regions for flow 'article'
RenderRegion {DIV} #should-have-layer hasLayer
RenderRegion {DIV}
RenderRegion {DIV}
<!doctype html>
<html>
<!--
Testing that regions become layers as required by the content that display in those regions.
There should be three boxes (green, blue, orange) with black borders.
The test passes if only the first region becomes a RenderLayer.
-->
<head>
<link rel="stylesheet" href="../resources/region-style.css">
<style>
.layer
{
-webkit-transform: translateZ(0px);
}
</style>
</head>
<body>
<div class="flowArticle">
<div class="greenBox layer"></div>
<div id="test-box" class="blueBox layer"></div>
<div class="orangeBox"></div>
</div>
<div id="should-have-layer" class="regionArticle borderBox"></div>
<div class="regionArticle borderBox"></div>
<div class="regionArticle borderBox"></div>
<script>
// Force a layout
document.body.offsetTop;
// The following line will remove the layer for the test-box, but will not trigger a new layout.
document.getElementById("test-box").classList.remove("layer");
</script>