Bug 930050 - Remove some dead graphics code. r=Bas
authorJonathan Watt <jwatt@jwatt.org>
Thu, 24 Oct 2013 14:46:37 +0200
changeset 151960 d15e9fb2b5a86a910733f1e3661a4a69325bf741
parent 151959 41496e6e589d8501b045a521ed759341c6862f1a
child 151961 36f6d6b62494e2d391ae7a348f71c64d44886f93
push id25514
push usercbook@mozilla.com
push dateFri, 25 Oct 2013 08:12:42 +0000
treeherdermozilla-central@186e834d87dc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersBas
bugs930050
milestone27.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 930050 - Remove some dead graphics code. r=Bas
gfx/thebes/gfxContext.cpp
--- a/gfx/thebes/gfxContext.cpp
+++ b/gfx/thebes/gfxContext.cpp
@@ -646,18 +646,16 @@ gfxContext::MultiplyAndNudgeToIntegers(c
 
 void
 gfxContext::SetMatrix(const gfxMatrix& matrix)
 {
   if (mCairo) {
     const cairo_matrix_t& mat = reinterpret_cast<const cairo_matrix_t&>(matrix);
     cairo_set_matrix(mCairo, &mat);
   } else {
-    Matrix mat;
-    mat.Translate(-CurrentState().deviceOffset.x, -CurrentState().deviceOffset.y);
     ChangeTransform(ToMatrix(matrix));
   }
 }
 
 void
 gfxContext::IdentityMatrix()
 {
   if (mCairo) {