Bug 1471766 - Ensure scrollcorner is handled for webrender. r=kats
authorXidorn Quan <me@upsuper.org>
Thu, 28 Jun 2018 21:28:41 +1000
changeset 424338 cf28b5bf98ddfd2ceab2b29771d9f0b6d6b91e5b
parent 424337 95dd97df2d07a84bf1fb827d384bf2e2c80eddd9
child 424339 a57560dbc9acd4315bb929b65463fe6ba1ce53a0
push id104778
push usershindli@mozilla.com
push dateThu, 28 Jun 2018 23:25:48 +0000
treeherdermozilla-inbound@226fffcc9736 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats
bugs1471766
milestone63.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 1471766 - Ensure scrollcorner is handled for webrender. r=kats MozReview-Commit-ID: JIIuG46WF3f
widget/cocoa/nsNativeThemeCocoa.mm
--- a/widget/cocoa/nsNativeThemeCocoa.mm
+++ b/widget/cocoa/nsNativeThemeCocoa.mm
@@ -3877,16 +3877,17 @@ nsNativeThemeCocoa::CreateWebRenderComma
     case NS_THEME_TREEVIEW:
     case NS_THEME_SCALE_HORIZONTAL:
     case NS_THEME_SCALE_VERTICAL:
     case NS_THEME_RANGE:
     case NS_THEME_SCROLLBARTHUMB_VERTICAL:
     case NS_THEME_SCROLLBARTHUMB_HORIZONTAL:
       return false;
 
+    case NS_THEME_SCROLLCORNER:
     case NS_THEME_SCROLLBARTRACK_HORIZONTAL:
     case NS_THEME_SCROLLBARTRACK_VERTICAL: {
       BOOL isOverlay = nsLookAndFeel::UseOverlayScrollbars();
       if (isOverlay && !IsParentScrollbarRolledOver(aFrame)) {
         // There is no scrollbar track, draw nothing and return true.
         return true;
       }
       // There is a scrollbar track and it needs to be drawn using fallback.