Assertion failure (m_text) in RenderText::RenderText() at icanhascheezburger.com
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 28 Oct 2011 01:11:49 +0000 (01:11 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 28 Oct 2011 01:11:49 +0000 (01:11 +0000)
commitbd5c46d007e1903e0a7ad075ba267a988fbad735
treec3da903812d64e3c043854b0dad3f80c7e386b0f
parent9cc49d579c09901b2e1882a3194c3f3c8fc6221c
Assertion failure (m_text) in RenderText::RenderText() at icanhascheezburger.com
https://bugs.webkit.org/show_bug.cgi?id=71085

Reviewed by Jon Honeycutt.

Source/WebCore:

Test: fast/css-generated-content/attr-missing.html

* css/CSSStyleSelector.cpp:
(WebCore::CSSStyleSelector::applyProperty): If the element does not have the attribute specified
in the attr() function in the content property, set the content to the empty string, per
<http://www.w3.org/TR/CSS21/generate.html#content>.

LayoutTests:

* fast/css-generated-content/attr-missing-expected.txt: Added.
* fast/css-generated-content/attr-missing.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@98675 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/css-generated-content/attr-missing-expected.txt [new file with mode: 0644]
LayoutTests/fast/css-generated-content/attr-missing.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/css/CSSStyleSelector.cpp