Skip to content

Commit

Permalink
minor fix in Bounding Box specifically only for skia port (#177)
Browse files Browse the repository at this point in the history
* minor fix in Bounding Box

* remove ununsed piece of code
  • Loading branch information
tjindal authored Jun 21, 2022
1 parent 8cd4289 commit d234cff
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions svgnative/src/ports/skia/SkiaSVGRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,6 @@ Rect SkiaSVGRenderer::GetBounds(const Path& path, const GraphicStyle& graphicSty
}
}

// the bounds should be transformed according to the current transformation matrix
SkMatrix matrix = mCanvas->getLocalToDeviceAs3x3();
bounds = matrix.mapRect(bounds);
// if there is clipping, take the clip bounds and intersect them with
// the bound calculated so far, then return that intersection
if (graphicStyle.clippingPath && graphicStyle.clippingPath->path)
Expand Down

0 comments on commit d234cff

Please sign in to comment.