// Inflate the bounding box from all sides with half of the stroke 
        // weight - pathBBox.inflate(weight/2, weight/2).
        Rect strokeExtents = getStrokeExtents(strokeNode, ls);
        newRect = new Rect(newRect.xMin() - strokeExtents.xMax(), newRect.xMax() + strokeExtents.xMax(), 
                newRect.yMin() - strokeExtents.yMax(), newRect.yMax() + strokeExtents.yMax());
        
        
        // If there are less than two segments, then or joint style is not 
        //"miterLimit" finish - return pathBBox.
        if (ls instanceof LineStyle2)