Style not propagated to anonymous boxes and anonymous
authorAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Tue, 6 Sep 2011 16:57:40 +0000 (13:57 -0300)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Tue, 6 Sep 2011 16:57:40 +0000 (13:57 -0300)
commitbf2093938294ca2381feef3863e96c2e9a7f04aa
tree7b16aa85674928cfb7e665460e7d878afc4be127
parent8f786a9e023aa21e6a7a17aba7fde33f4ca60a52
Style not propagated to anonymous boxes and anonymous
inline-blocks.
https://bugs.webkit.org/show_bug.cgi?id=67364

Author: Abhishek Arya <inferno@chromium.org>
Reviewed by James Robinson.

Source/WebCore:

Tests: fast/ruby/ruby-block-style-not-updated-with-before-after-content.html
       fast/ruby/ruby-block-style-not-updated.html
       fast/ruby/ruby-inline-style-not-updated-with-before-after-content.html
       fast/ruby/ruby-inline-style-not-updated.html
       fast/table/table-row-style-not-updated-with-after-content.html
       fast/table/table-row-style-not-updated-with-before-content.html
       fast/table/table-row-style-not-updated.html
       fast/table/table-style-not-updated.html

* rendering/RenderObject.cpp:
(WebCore::RenderObject::propagateStyleToAnonymousChildren):
* rendering/RenderObject.h:
(WebCore::RenderObject::isBeforeAfterContent):
* rendering/RenderRuby.cpp:
(WebCore::RenderRubyAsInline::styleDidChange):
(WebCore::RenderRubyAsBlock::styleDidChange):
* rendering/RenderRuby.h:
* rendering/RenderTable.cpp:
(WebCore::RenderTable::styleDidChange):
* rendering/RenderTableRow.cpp:
(WebCore::RenderTableRow::styleDidChange):
(WebCore::RenderTableRow::addChild):
* rendering/RenderTableSection.cpp:
(WebCore::RenderTableSection::styleDidChange):
(WebCore::RenderTableSection::addChild):
* rendering/RenderTableSection.h:

LayoutTests:

None of the different color boxes should overlap. If they overlap, test fails.

* fast/ruby/ruby-block-style-not-updated-expected.png: Added.
* fast/ruby/ruby-block-style-not-updated-expected.txt: Added.
* fast/ruby/ruby-block-style-not-updated-with-before-after-content-expected.png: Added.
* fast/ruby/ruby-block-style-not-updated-with-before-after-content-expected.txt: Added.
* fast/ruby/ruby-block-style-not-updated-with-before-after-content.html: Added.
* fast/ruby/ruby-block-style-not-updated.html: Added.
* fast/ruby/ruby-inline-style-not-updated-expected.png: Added.
* fast/ruby/ruby-inline-style-not-updated-expected.txt: Added.
* fast/ruby/ruby-inline-style-not-updated-with-before-after-content-expected.png: Added.
* fast/ruby/ruby-inline-style-not-updated-with-before-after-content-expected.txt: Added.
* fast/ruby/ruby-inline-style-not-updated-with-before-after-content.html: Added.
* fast/ruby/ruby-inline-style-not-updated.html: Added.
* fast/table/table-row-style-not-updated-expected.png: Added.
* fast/table/table-row-style-not-updated-expected.txt: Added.
* fast/table/table-row-style-not-updated-with-after-content-expected.png: Added.
* fast/table/table-row-style-not-updated-with-after-content-expected.txt: Added.
* fast/table/table-row-style-not-updated-with-after-content.html: Added.
* fast/table/table-row-style-not-updated-with-before-content-expected.png: Added.
* fast/table/table-row-style-not-updated-with-before-content-expected.txt: Added.
* fast/table/table-row-style-not-updated-with-before-content.html: Added.
* fast/table/table-row-style-not-updated.html: Added.
* fast/table/table-style-not-updated-expected.png: Added.
* fast/table/table-style-not-updated-expected.txt: Added.
* fast/table/table-style-not-updated.html: Added.
* platform/mac/fast/css-generated-content/table-before-after-child-add-expected.txt:
* platform/mac/fast/css-generated-content/table-cell-before-after-child-add-expected.txt:
* platform/mac/fast/css-generated-content/table-row-before-after-child-add-expected.txt:
* platform/mac/fast/css-generated-content/table-table-before-after-child-add-expected.txt:
* platform/mac/fast/table/table-after-child-in-table-expected.txt:
* platform/mac/fast/table/table-before-child-in-table-expected.txt:
* platform/mac/fast/table/table-cell-after-child-in-table-expected.txt:
* platform/mac/fast/table/table-cell-before-child-in-table-expected.txt:
* platform/mac/fast/table/table-row-after-child-in-table-expected.txt:
* platform/mac/fast/table/table-row-before-child-in-table-expected.txt:

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

Conflicts:

Source/WebCore/rendering/RenderTableSection.cpp
44 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/ruby/ruby-block-style-not-updated-expected.png [new file with mode: 0644]
LayoutTests/fast/ruby/ruby-block-style-not-updated-expected.txt [new file with mode: 0644]
LayoutTests/fast/ruby/ruby-block-style-not-updated-with-before-after-content-expected.png [new file with mode: 0644]
LayoutTests/fast/ruby/ruby-block-style-not-updated-with-before-after-content-expected.txt [new file with mode: 0644]
LayoutTests/fast/ruby/ruby-block-style-not-updated-with-before-after-content.html [new file with mode: 0644]
LayoutTests/fast/ruby/ruby-block-style-not-updated.html [new file with mode: 0644]
LayoutTests/fast/ruby/ruby-inline-style-not-updated-expected.png [new file with mode: 0644]
LayoutTests/fast/ruby/ruby-inline-style-not-updated-expected.txt [new file with mode: 0644]
LayoutTests/fast/ruby/ruby-inline-style-not-updated-with-before-after-content-expected.png [new file with mode: 0644]
LayoutTests/fast/ruby/ruby-inline-style-not-updated-with-before-after-content-expected.txt [new file with mode: 0644]
LayoutTests/fast/ruby/ruby-inline-style-not-updated-with-before-after-content.html [new file with mode: 0644]
LayoutTests/fast/ruby/ruby-inline-style-not-updated.html [new file with mode: 0644]
LayoutTests/fast/table/table-row-style-not-updated-expected.png [new file with mode: 0644]
LayoutTests/fast/table/table-row-style-not-updated-expected.txt [new file with mode: 0644]
LayoutTests/fast/table/table-row-style-not-updated-with-after-content-expected.png [new file with mode: 0644]
LayoutTests/fast/table/table-row-style-not-updated-with-after-content-expected.txt [new file with mode: 0644]
LayoutTests/fast/table/table-row-style-not-updated-with-after-content.html [new file with mode: 0644]
LayoutTests/fast/table/table-row-style-not-updated-with-before-content-expected.png [new file with mode: 0644]
LayoutTests/fast/table/table-row-style-not-updated-with-before-content-expected.txt [new file with mode: 0644]
LayoutTests/fast/table/table-row-style-not-updated-with-before-content.html [new file with mode: 0644]
LayoutTests/fast/table/table-row-style-not-updated.html [new file with mode: 0644]
LayoutTests/fast/table/table-style-not-updated-expected.png [new file with mode: 0644]
LayoutTests/fast/table/table-style-not-updated-expected.txt [new file with mode: 0644]
LayoutTests/fast/table/table-style-not-updated.html [new file with mode: 0644]
LayoutTests/platform/mac/fast/css-generated-content/table-before-after-child-add-expected.txt
LayoutTests/platform/mac/fast/css-generated-content/table-cell-before-after-child-add-expected.txt
LayoutTests/platform/mac/fast/css-generated-content/table-row-before-after-child-add-expected.txt
LayoutTests/platform/mac/fast/css-generated-content/table-table-before-after-child-add-expected.txt
LayoutTests/platform/mac/fast/table/table-after-child-in-table-expected.txt
LayoutTests/platform/mac/fast/table/table-before-child-in-table-expected.txt
LayoutTests/platform/mac/fast/table/table-cell-after-child-in-table-expected.txt
LayoutTests/platform/mac/fast/table/table-cell-before-child-in-table-expected.txt
LayoutTests/platform/mac/fast/table/table-row-after-child-in-table-expected.txt
LayoutTests/platform/mac/fast/table/table-row-before-child-in-table-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderObject.cpp
Source/WebCore/rendering/RenderObject.h
Source/WebCore/rendering/RenderRuby.cpp
Source/WebCore/rendering/RenderRuby.h
Source/WebCore/rendering/RenderTable.cpp
Source/WebCore/rendering/RenderTableRow.cpp
Source/WebCore/rendering/RenderTableSection.cpp
Source/WebCore/rendering/RenderTableSection.h