Add guard around paintForFixedRootBackground
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 May 2013 21:11:58 +0000 (21:11 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 May 2013 21:11:58 +0000 (21:11 +0000)
https://bugs.webkit.org/show_bug.cgi?id=116754

Patch by Seokju Kwon <seokju.kwon@gmail.com> on 2013-05-27
Reviewed by Simon Fraser.

paintForFixedRootBackground is only used when ACCELERATED_COMPOSITING is enabled.

No new tests, no behavior change.

* rendering/RenderLayer.cpp:
(WebCore):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@150778 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderLayer.cpp

index 32960894e17a4929ff597c2d333d8631283d6fcb..5aad774fbd6d16d9fdd4a66bcf1242818253fdd1 100644 (file)
@@ -1,3 +1,17 @@
+2013-05-27  Seokju Kwon  <seokju.kwon@gmail.com>
+
+        Add guard around paintForFixedRootBackground
+        https://bugs.webkit.org/show_bug.cgi?id=116754
+
+        Reviewed by Simon Fraser.
+
+        paintForFixedRootBackground is only used when ACCELERATED_COMPOSITING is enabled.
+
+        No new tests, no behavior change.
+
+        * rendering/RenderLayer.cpp:
+        (WebCore):
+
 2013-05-27  Seokju Kwon  <seokju.kwon@gmail.com>
 
         Remove a leftover Pagepoup from PickerIndicatorElement.h
index f68432a8b7788310ed3470145686ad5a58494025..700acef80aa37c6d202ccc3f6bcf5aaa48bee9de 100644 (file)
@@ -3596,10 +3596,12 @@ static inline bool shouldSuppressPaintingLayer(RenderLayer* layer)
     return false;
 }
 
+#if USE(ACCELERATED_COMPOSITING)
 static bool paintForFixedRootBackground(const RenderLayer* layer, RenderLayer::PaintLayerFlags paintFlags)
 {
     return layer->renderer()->isRoot() && (paintFlags & RenderLayer::PaintLayerPaintingRootBackgroundOnly);
 }
+#endif
 
 void RenderLayer::paintLayer(GraphicsContext* context, const LayerPaintingInfo& paintingInfo, PaintLayerFlags paintFlags)
 {