Skip to content
  • darin@apple.com's avatar
    Eliminate awkward virtualComputedStyle construction · d8ecd202
    darin@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=125681
    
    Reviewed by Andreas Kling.
    
    * dom/Element.cpp:
    (WebCore::Element::computedStyle): Tweak coding style a bit.
    
    * dom/Element.h: Marked computedStyle virtual and got rid of virtualComputedStyle.
    This fixes a bug that we would not call SVGElement::computedStyle if we called
    it through an Element pointer or reference. Not sure how to get test coverage for this.
    
    * dom/Node.cpp:
    (WebCore::Node::computedStyle): Use a loop instead of recursive virtual calls.
    
    * dom/Node.h: Made computedStyle virtual and got rid of virtualComputedStyle.
    
    * svg/SVGElement.cpp:
    (WebCore::SVGElement::computedStyle): Tweak coding style a bit.
    
    * svg/SVGElement.h: Made computedStyle virtual (and FINAL) and got rid fo
    virtualComputedStyle.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160536 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    d8ecd202