Bug 1123486 - Remove gfxContext::ResetClip and gfxContext::UpdateSurfaceClip. r=Bas

This commit is contained in:
Jonathan Watt 2015-01-14 20:30:27 +00:00
Родитель 481714c6f0
Коммит dacfb58c19
2 изменённых файлов: 0 добавлений и 33 удалений

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

@ -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.