Bug 380071 - add cairo_clip_extents() functionality to thebes. r=vlad
This commit is contained in:
Родитель
43da8a6941
Коммит
dc527fe97c
|
@ -503,7 +503,12 @@ public:
|
|||
* Useful if you are doing native drawing.
|
||||
*/
|
||||
void UpdateSurfaceClip();
|
||||
|
||||
|
||||
/**
|
||||
* This will return the current bounds of the clip region.
|
||||
*/
|
||||
gfxRect GetClipExtents();
|
||||
|
||||
/**
|
||||
* Groups
|
||||
*/
|
||||
|
|
|
@ -593,6 +593,14 @@ gfxContext::UpdateSurfaceClip()
|
|||
Fill();
|
||||
}
|
||||
|
||||
gfxRect
|
||||
gfxContext::GetClipExtents()
|
||||
{
|
||||
double xmin, ymin, xmax, ymax;
|
||||
cairo_clip_extents(mCairo, &xmin, &ymin, &xmax, &ymax);
|
||||
return gfxRect(xmin, ymin, xmax - xmin, ymax - ymin);
|
||||
}
|
||||
|
||||
// rendering sources
|
||||
|
||||
void
|
||||
|
|
Загрузка…
Ссылка в новой задаче