Bug 958025 - Disable the scissor test in nsChildView::DrawWindowOverlay so that window controls are visible again. r=bjacob
authorMarkus Stange <mstange@themasta.com>
Thu, 09 Jan 2014 17:59:24 +0100
changeset 178695 effa95701c83c34e246f8abd75125b4d05a7b1e4
parent 178694 124d80d7556d26d24167aeac49bd4493c781b975
child 178748 653ba6ed853b0e688c39a0e3255f69426adb452b
push id3343
push userffxbld
push dateMon, 17 Mar 2014 21:55:32 +0000
treeherdermozilla-beta@2f7d3415f79f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbjacob
bugs958025
milestone29.0a1
first release with
nightly mac
effa95701c83 / 29.0a1 / 20140109094902 / files
nightly linux32
nightly linux64
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly mac
Bug 958025 - Disable the scissor test in nsChildView::DrawWindowOverlay so that window controls are visible again. r=bjacob
widget/cocoa/nsChildView.mm
--- a/widget/cocoa/nsChildView.mm
+++ b/widget/cocoa/nsChildView.mm
@@ -2115,18 +2115,17 @@ nsChildView::DrawWindowOverlay(LayerMana
     DrawWindowOverlay(manager, aRect);
   }
 }
 
 void
 nsChildView::DrawWindowOverlay(GLManager* aManager, nsIntRect aRect)
 {
   GLContext* gl = aManager->gl();
-  ScopedGLState scopedScissorTestState(gl, LOCAL_GL_SCISSOR_TEST);
-  ScopedScissorRect scopedScissorRectState(gl);
+  ScopedGLState scopedScissorTestState(gl, LOCAL_GL_SCISSOR_TEST, false);
 
   MaybeDrawTitlebar(aManager, aRect);
   MaybeDrawResizeIndicator(aManager, aRect);
   MaybeDrawRoundedCorners(aManager, aRect);
 }
 
 static void
 ClearRegion(gfx::DrawTarget *aDT, nsIntRegion aRegion)