2007-04-17 00:18:32 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
2012-05-21 15:12:37 +04: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-17 00:18:32 +04:00
|
|
|
|
|
|
|
#include "gfxPath.h"
|
2013-10-15 07:23:21 +04:00
|
|
|
#include "mozilla/gfx/2D.h"
|
2007-04-17 00:18:32 +04:00
|
|
|
|
|
|
|
#include "cairo.h"
|
|
|
|
|
2013-10-15 07:23:21 +04:00
|
|
|
using namespace mozilla::gfx;
|
|
|
|
|
2013-10-15 07:23:21 +04:00
|
|
|
gfxPath::gfxPath(cairo_path_t* aPath)
|
|
|
|
: mPath(aPath)
|
2007-04-17 00:18:32 +04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2013-10-15 07:23:21 +04:00
|
|
|
gfxPath::gfxPath(Path* aPath)
|
|
|
|
: mPath(nullptr)
|
|
|
|
, mMoz2DPath(aPath)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2008-07-18 22:26:02 +04:00
|
|
|
gfxPath::~gfxPath()
|
2007-04-17 00:18:32 +04:00
|
|
|
{
|
|
|
|
cairo_path_destroy(mPath);
|
|
|
|
}
|