From dacfb58c1997e27e40c85af17856ed2ed3b3be28 Mon Sep 17 00:00:00 2001 From: Jonathan Watt Date: Wed, 14 Jan 2015 20:30:27 +0000 Subject: [PATCH] Bug 1123486 - Remove gfxContext::ResetClip and gfxContext::UpdateSurfaceClip. r=Bas --- gfx/thebes/gfxContext.cpp | 21 --------------------- gfx/thebes/gfxContext.h | 12 ------------ 2 files changed, 33 deletions(-) diff --git a/gfx/thebes/gfxContext.cpp b/gfx/thebes/gfxContext.cpp index 4094496deab5..4c29b14b3c43 100644 --- a/gfx/thebes/gfxContext.cpp +++ b/gfx/thebes/gfxContext.cpp @@ -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() { diff --git a/gfx/thebes/gfxContext.h b/gfx/thebes/gfxContext.h index 1a27bb8a3cb7..4988999ac11f 100644 --- a/gfx/thebes/gfxContext.h +++ b/gfx/thebes/gfxContext.h @@ -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.