bool LayoutSVGShape::fillContains(const FloatPoint& point, bool requiresFill, const WindRule fillRule) { if (!m_fillBoundingBox.contains(point)) return false; if (requiresFill && !SVGPaintServer::existsForLayoutObject(*this, styleRef(), ApplyToFillMode)) return false; return shapeDependentFillContains(point, fillRule); }
bool RenderSVGShape::fillContains(const FloatPoint& point, bool requiresFill, const WindRule fillRule) { if (!m_fillBoundingBox.contains(point)) return false; Color fallbackColor; if (requiresFill && !RenderSVGResource::fillPaintingResource(*this, style(), fallbackColor)) return false; return shapeDependentFillContains(point, fillRule); }