зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1123486 - Remove gfxContext::ResetClip and gfxContext::UpdateSurfaceClip. r=Bas
This commit is contained in:
Родитель
481714c6f0
Коммит
dacfb58c19
|
@ -593,27 +593,6 @@ gfxContext::Clip()
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
gfxContext::ResetClip()
|
||||
{
|
||||
for (int i = mStateStack.Length() - 1; i >= 0; i--) {
|
||||
for (unsigned int c = 0; c < mStateStack[i].pushedClips.Length(); c++) {
|
||||
mDT->PopClip();
|
||||
}
|
||||
|
||||
if (mStateStack[i].clipWasReset) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
CurrentState().pushedClips.Clear();
|
||||
CurrentState().clipWasReset = true;
|
||||
}
|
||||
|
||||
void
|
||||
gfxContext::UpdateSurfaceClip()
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
gfxContext::PopClip()
|
||||
{
|
||||
|
|
|
@ -429,12 +429,6 @@ public:
|
|||
*/
|
||||
void Clip();
|
||||
|
||||
/**
|
||||
* Undoes any clipping. Further drawings will only be restricted by the
|
||||
* surface dimensions.
|
||||
*/
|
||||
void ResetClip();
|
||||
|
||||
/**
|
||||
* Helper functions that will create a rect path and call Clip().
|
||||
* Any current path will be destroyed by these functions!
|
||||
|
@ -445,12 +439,6 @@ public:
|
|||
|
||||
void PopClip();
|
||||
|
||||
/**
|
||||
* This will ensure that the surface actually has its clip set.
|
||||
* Useful if you are doing native drawing.
|
||||
*/
|
||||
void UpdateSurfaceClip();
|
||||
|
||||
/**
|
||||
* This will return the current bounds of the clip region in user
|
||||
* space.
|
||||
|
|
Загрузка…
Ссылка в новой задаче