зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1090614 follow-up to add back the Clip() change. r=mattwoodrow
This commit is contained in:
Родитель
30f03ce29a
Коммит
cdfbe38796
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче