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 473433 ee7c06a83c6b362030fc8e471703e891d843f760
parent 473432 5277d1553fd2dd78e315ae2a3e278c436308756c
child 473434 100647b2c9dc36fc3f7de101c9113c3487cf7ef9
push id1728
push userjlund@mozilla.com
push dateMon, 18 Jun 2018 21:12:27 +0000
treeherdermozilla-release@c296fde26f5f [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) {