Bug 1077805 - Remove the gfxContext methods PointInFill and PointInStroke. r=Bas
--- a/gfx/thebes/gfxContext.cpp
+++ b/gfx/thebes/gfxContext.cpp
@@ -1138,32 +1138,16 @@ gfxContext::PopGroupToSource()
Matrix mat = mTransform;
mat.Invert();
mat.PreTranslate(deviceOffset.x, deviceOffset.y); // device offset translation
CurrentState().surfTransform = mat;
}
-bool
-gfxContext::PointInFill(const gfxPoint& pt)
-{
- EnsurePath();
- return mPath->ContainsPoint(ToPoint(pt), Matrix());
-}
-
-bool
-gfxContext::PointInStroke(const gfxPoint& pt)
-{
- EnsurePath();
- return mPath->StrokeContainsPoint(CurrentState().strokeOptions,
- ToPoint(pt),
- Matrix());
-}
-
void
gfxContext::RoundedRectangle(const gfxRect& rect,
const gfxCornerSizes& corners,
bool draw_clockwise)
{
//
// For CW drawing, this looks like:
//
--- a/gfx/thebes/gfxContext.h
+++ b/gfx/thebes/gfxContext.h
@@ -586,22 +586,16 @@ public:
*/
void PushGroupAndCopyBackground(gfxContentType content = gfxContentType::COLOR);
already_AddRefed<gfxPattern> PopGroup();
void PopGroupToSource();
mozilla::TemporaryRef<mozilla::gfx::SourceSurface>
PopGroupToSurface(mozilla::gfx::Matrix* aMatrix);
- /**
- ** Hit Testing - check if given point is in the current path
- **/
- bool PointInFill(const gfxPoint& pt);
- bool PointInStroke(const gfxPoint& pt);
-
mozilla::gfx::Point GetDeviceOffset() const;
/**
** Flags
**/
enum {
/* If this flag is set, operators other than CLEAR, SOURCE, or