REGRESSION: RenderStyle is leaked when not creating renderer for display:none
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Nov 2013 12:40:59 +0000 (12:40 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Nov 2013 12:40:59 +0000 (12:40 +0000)
commit13eac935720df8daeaed953517d4a37555e265ba
treea9dd7c42a70342ba04de8595a1175eacdc1c2706
parent1e8ed5aa1fdfdee3e83a4484803f4d8ef6db9202
REGRESSION: RenderStyle is leaked when not creating renderer for display:none
<https://webkit.org/b/123726>

Source/WebCore:

Explicitly drop the RenderStyle reference in RenderElement::createFor
if we decide to not create any renderer.

Reviewed by Antti Koivisto.

Test: fast/css/renderstyle-leak-with-display-none.html

* rendering/RenderElement.cpp:
(WebCore::RenderElement::createFor):

LayoutTests:

Reviewed by Antti Koivisto.

* fast/css/renderstyle-leak-with-display-none-expected.txt: Added.
* fast/css/renderstyle-leak-with-display-none.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@158570 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/css/renderstyle-leak-with-display-none-expected.txt [new file with mode: 0644]
LayoutTests/fast/css/renderstyle-leak-with-display-none.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderElement.cpp