| Index: third_party/WebKit/Source/platform/graphics/Path.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/Path.cpp b/third_party/WebKit/Source/platform/graphics/Path.cpp
|
| index 8b852c76663b627ce5520333421a9df85f67dea8..ae8a6b4b2d9f0cfb9b662ce88b8cc94e504ec01b 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/Path.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/Path.cpp
|
| @@ -109,14 +109,9 @@ bool Path::strokeContains(const FloatPoint& point,
|
| namespace {
|
|
|
| FloatRect pathBounds(const SkPath& path, Path::BoundsType boundsType) {
|
| - SkRect bounds;
|
| - if (boundsType == Path::BoundsType::Conservative ||
|
| - !TightBounds(path, &bounds)) {
|
| - return path.getBounds();
|
| - }
|
| -
|
| - DCHECK_EQ(boundsType, Path::BoundsType::Exact);
|
| - return bounds;
|
| + return boundsType == Path::BoundsType::Conservative
|
| + ? path.getBounds()
|
| + : path.computeTightBounds();
|
| }
|
|
|
| } // anonymous ns
|
|
|