Centering text inside a button set to display flex and justify-content: center is...
authorhyatt@apple.com <hyatt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Feb 2017 21:47:38 +0000 (21:47 +0000)
committerhyatt@apple.com <hyatt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Feb 2017 21:47:38 +0000 (21:47 +0000)
commitef0fa2a24c499ae84ad830edf43d6e8e56d09d8a
treee729f04be2b417c799d6b9bb620bceb7369a249e
parent427638011ded6ef2e8fbf51ee36b22b3fb5a07cb
Centering text inside a button set to display flex and justify-content: center is impossible
https://bugs.webkit.org/show_bug.cgi?id=148872
<rdar://problem/22590086>

Reviewed by Simon Fraser.

Source/WebCore:

Added new test in fast/forms.

* rendering/RenderButton.cpp:
(WebCore::RenderButton::addChild):
(WebCore::RenderButton::updateAnonymousChildStyle):
(WebCore::RenderButton::styleDidChange):
(WebCore::RenderButton::styleWillChange): Deleted.
(WebCore::RenderButton::setupInnerStyle): Deleted.
* rendering/RenderButton.h:
* rendering/RenderElement.cpp:
(WebCore::RenderElement::propagateStyleToAnonymousChildren):
* rendering/RenderElement.h:
(WebCore::RenderElement::updateAnonymousChildStyle):

LayoutTests:

* fast/forms/button-set-display-flex-justifyContent-center-expected.html: Added.
* fast/forms/button-set-display-flex-justifyContent-center.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213173 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/forms/button-set-display-flex-justifyContent-center-expected.html [new file with mode: 0644]
LayoutTests/fast/forms/button-set-display-flex-justifyContent-center.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderButton.cpp
Source/WebCore/rendering/RenderButton.h
Source/WebCore/rendering/RenderElement.cpp
Source/WebCore/rendering/RenderElement.h