• bdakin's avatar
    Reviewed by Maciej. · eb2c2042
    bdakin authored
            Fix for <rdar://problem/4610314> Support the CSS3 content property 
            for images
    
            This patch provides initial support for the CSS3 content property. 
            It lacks support for any content other than images, and only allows 
            content for elements that seemed safe for now.
    
            * css/cssstyleselector.cpp:
            (WebCore::CSSStyleSelector::applyProperty): Remove restrictions for 
            just :before and :after
            * html/HTMLBRElement.cpp:
            (WebCore::HTMLBRElement::createRenderer):
            * html/HTMLFrameSetElement.cpp:
            (WebCore::HTMLFrameSetElement::createRenderer):
            * html/HTMLImageElement.cpp:
            (WebCore::HTMLImageElement::createRenderer):
            * html/HTMLLegendElement.cpp:
            (WebCore::HTMLLegendElement::createRenderer):
            * rendering/RenderImage.cpp:
            (WebCore::RenderImage::RenderImage):
            (WebCore::RenderImage::setCachedImage): Don't allow the image to be 
            set this way ...
    eb2c2042