2007-04-16 20:18:32 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
2012-05-21 11:12:37 +00:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2007-04-16 20:18:32 +00:00
|
|
|
|
|
|
|
#include "gfxPath.h"
|
2013-10-15 03:23:21 +00:00
|
|
|
#include "mozilla/gfx/2D.h"
|
2007-04-16 20:18:32 +00:00
|
|
|
|
|
|
|
#include "cairo.h"
|
|
|
|
|
2013-10-15 03:23:21 +00:00
|
|
|
using namespace mozilla::gfx;
|
|
|
|
|
2013-10-15 03:23:21 +00:00
|
|
|
gfxPath::gfxPath(cairo_path_t* aPath)
|
|
|
|
: mPath(aPath)
|
2007-04-16 20:18:32 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2013-10-15 03:23:21 +00:00
|
|
|
gfxPath::gfxPath(Path* aPath)
|
|
|
|
: mPath(nullptr)
|
|
|
|
, mMoz2DPath(aPath)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2008-07-18 18:26:02 +00:00
|
|
|
gfxPath::~gfxPath()
|
2007-04-16 20:18:32 +00:00
|
|
|
{
|
|
|
|
cairo_path_destroy(mPath);
|
|
|
|
}
|