Skip to content
  • hyatt@apple.com's avatar
    2008-10-16 David Hyatt <hyatt@apple.com> · d4925584
    hyatt@apple.com authored
            Simplify styleForRenderer to avoid confusion.  Callers in the SVG filter code thought "forRenderer" meant
            they would be given a style that corresponded to the RenderObject* passed in.  This is not what the code
            did though.  This patch removes the renderer argument and the Element subclass shadow implementation
            so that confusion like this can't occur again.
    
            Reviewed by Oliver Hunt
    
            * dom/Element.cpp:
            * dom/Element.h:
            * dom/Node.cpp:
            (WebCore::Node::createRendererIfNeeded):
            (WebCore::Node::styleForRenderer):
            * dom/Node.h:
            * html/HTMLOptGroupElement.cpp:
            (WebCore::HTMLOptGroupElement::attach):
            * html/HTMLOptionElement.cpp:
            (WebCore::HTMLOptionElement::attach):
            * svg/SVGClipPathElement.cpp:
            (WebCore::SVGClipPathElement::canvasResource):
            * svg/SVGFEDiffuseLightingElement.cpp:
            (WebCore::SVGFEDiffuseLightingElement::build):
            * svg/SVGFEFloodElement.cpp:
            (WebCore::SVGFEFloodElement::build):
            * svg/SVGFESpecularLightingElement.cpp:
            (WebCore::SVGFESpecularLightingElement::build):
            * svg/SVGGradientElement.cpp:
            (WebCore::SVGGradientElement::buildStops):
            * svg/SVGUseElement.cpp:
            (WebCore::SVGUseElement::attachShadowTree):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@37644 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    d4925584