зеркало из https://github.com/mozilla/gecko-dev.git
Bug 380071 - add cairo_clip_extents() functionality to thebes. r=vlad
This commit is contained in:
Родитель
f391a0c516
Коммит
559e07b259
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче