Style not propagated to anonymous boxes and anonymous
authorAbhishek Arya <inferno@chromium.org>
Tue, 6 Sep 2011 18:19:55 +0000 (18:19 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Thu, 8 Sep 2011 17:25:52 +0000 (14:25 -0300)
commitfbbf7fb5b16aa6f5f266c5fcc02c1ec20cf8d096
tree0d3f03936306a29220cec487a32018b5967de443
parent7692afdea8e3c5653e31ac7387769f386d5b508a
Style not propagated to anonymous boxes and anonymous
inline-blocks.
https://bugs.webkit.org/show_bug.cgi?id=67364

Source/WebCore:

Reviewed by James Robinson.

Share propagateStyleToAnonymousChildren with RenderBlock::styleDidChange.

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::styleDidChange):
* rendering/RenderObject.cpp:
(WebCore::RenderObject::propagateStyleToAnonymousChildren):
* rendering/RenderObject.h:

LayoutTests:

Add comments explaining what the test does.

Reviewed by James Robinson.

* 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-before-child-style-update.html:
* fast/table/table-row-before-child-style-update.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-style-not-updated.html:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94582 268f45cc-cd09-0410-ab3c-d52691b4dbfc
14 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/ruby/ruby-block-style-not-updated-with-before-after-content.html
LayoutTests/fast/ruby/ruby-block-style-not-updated.html
LayoutTests/fast/ruby/ruby-inline-style-not-updated-with-before-after-content.html
LayoutTests/fast/ruby/ruby-inline-style-not-updated.html
LayoutTests/fast/table/table-before-child-style-update.html
LayoutTests/fast/table/table-row-before-child-style-update.html
LayoutTests/fast/table/table-row-style-not-updated-with-after-content.html
LayoutTests/fast/table/table-row-style-not-updated-with-before-content.html
LayoutTests/fast/table/table-style-not-updated.html
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderBlock.cpp
Source/WebCore/rendering/RenderObject.cpp
Source/WebCore/rendering/RenderObject.h