Bug 1462477 - Use NS_STYLE_IMAGELAYER_ATTACHMENT_FIXED for Fx61. a=bustage
authorRyan VanderMeulen <ryanvm@gmail.com>
Thu, 24 May 2018 11:55:48 -0400
changeset 470901 ee7c06a83c6b362030fc8e471703e891d843f760
parent 470900 5277d1553fd2dd78e315ae2a3e278c436308756c
child 470902 100647b2c9dc36fc3f7de101c9113c3487cf7ef9
push id9258
push userryanvm@gmail.com
push dateThu, 24 May 2018 15:56:21 +0000
treeherdermozilla-beta@ee7c06a83c6b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs1462477
milestone61.0
Bug 1462477 - Use NS_STYLE_IMAGELAYER_ATTACHMENT_FIXED for Fx61. a=bustage
layout/painting/nsCSSRendering.cpp
--- a/layout/painting/nsCSSRendering.cpp
+++ b/layout/painting/nsCSSRendering.cpp
@@ -3259,17 +3259,17 @@ nsCSSRendering::PrepareImageLayer(nsPres
   if (aFlags & nsCSSRendering::PAINTBG_TO_WINDOW) {
     irFlags |= nsImageRenderer::FLAG_PAINTING_TO_WINDOW;
   }
 
   nsBackgroundLayerState state(aForFrame, &aLayer.mImage, irFlags);
   if (!state.mImageRenderer.PrepareImage()) {
     // There's no image or it's not ready to be painted.
     if (aOutIsTransformedFixed &&
-        StyleImageLayerAttachment::Fixed == aLayer.mAttachment) {
+        NS_STYLE_IMAGELAYER_ATTACHMENT_FIXED == aLayer.mAttachment) {
 
       nsIFrame* attachedToFrame = aPresContext->PresShell()->GetRootFrame();
       NS_ASSERTION(attachedToFrame, "no root frame");
       nsIFrame* pageContentFrame = nullptr;
       if (aPresContext->IsPaginated()) {
         pageContentFrame = nsLayoutUtils::GetClosestFrameOfType(
           aForFrame, LayoutFrameType::PageContent);
         if (pageContentFrame) {