Skip to content
  • hyatt's avatar
    acf57b8e
    Rename drawArc to strokeArc and remove its strange behavior of trying... · acf57b8e
    hyatt authored
            Rename drawArc to strokeArc and remove its strange behavior of trying to "fill" by stroking using the passed in
            thickness.  Now the method is purely about stroking an arc and always uses the passed in thickness.   Fix the
            border-radius code that calls the method so that it makes more sense now.  If stroke thickness is converted
            to a float, then even the extra argument can go away, and this method can be a clean stroke of an arc.
    
            Make sure to get square list markers right by setting both stroke and fill color properly.
    
            Reviewed by mitz, olliej
    
            * platform/graphics/GraphicsContext.h:
            * platform/graphics/cg/GraphicsContextCG.cpp:
            (WebCore::GraphicsContext::strokeArc):
            * platform/graphics/qt/GraphicsContextQt.cpp:
            (WebCore::GraphicsContext::strokeArc):
            * rendering/RenderListMarker.cpp:
            (WebCore::RenderListMarker::paint):
            * rendering/RenderObject.cpp:
            (WebCore::RenderObject::drawBorderArc):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18305 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    acf57b8e
    Rename drawArc to strokeArc and remove its strange behavior of trying...
    hyatt authored
            Rename drawArc to strokeArc and remove its strange behavior of trying to "fill" by stroking using the passed in
            thickness.  Now the method is purely about stroking an arc and always uses the passed in thickness.   Fix the
            border-radius code that calls the method so that it makes more sense now.  If stroke thickness is converted
            to a float, then even the extra argument can go away, and this method can be a clean stroke of an arc.
    
            Make sure to get square list markers right by setting both stroke and fill color properly.
    
            Reviewed by mitz, olliej
    
            * platform/graphics/GraphicsContext.h:
            * platform/graphics/cg/GraphicsContextCG.cpp:
            (WebCore::GraphicsContext::strokeArc):
            * platform/graphics/qt/GraphicsContextQt.cpp:
            (WebCore::GraphicsContext::strokeArc):
            * rendering/RenderListMarker.cpp:
            (WebCore::RenderListMarker::paint):
            * rendering/RenderObject.cpp:
            (WebCore::RenderObject::drawBorderArc):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18305 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Loading