Bug 1090614 follow-up to add back the Clip() change. r=mattwoodrow

This commit is contained in:
Jonathan Watt 2014-10-31 11:26:28 +00:00
Родитель 30f03ce29a
Коммит cdfbe38796
2 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -676,6 +676,14 @@ gfxContext::Clip(const gfxRect& rect)
Clip(ToRect(rect));
}
void
gfxContext::Clip(Path* aPath)
{
mDT->PushClip(aPath);
AzureState::PushedClip clip = { aPath, Rect(), mTransform };
CurrentState().pushedClips.AppendElement(clip);
}
void
gfxContext::Clip()
{

Просмотреть файл

@ -505,6 +505,7 @@ public:
*/
void Clip(const Rect& rect);
void Clip(const gfxRect& rect); // will clip to a rect
void Clip(Path* aPath);
/**
* This will ensure that the surface actually has its clip set.