mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 1090614 follow-up to add back the Clip() change. r=mattwoodrow
This commit is contained in:
parent
30f03ce29a
commit
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.
|
||||
|
Loading…
Reference in New Issue
Block a user