2009-03-26 Simon Fraser <simon.fraser@apple.com>
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Mar 2009 01:27:16 +0000 (01:27 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Mar 2009 01:27:16 +0000 (01:27 +0000)
        Build fix when ACCELERATED_COMPOSITING is turned on.

        * rendering/RenderLayerBacking.cpp:
        (WebCore::RenderLayerBacking::canUseDirectCompositing):

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

WebCore/ChangeLog
WebCore/rendering/RenderLayerBacking.cpp

index 7fe6a9c..eb0d3be 100644 (file)
@@ -1,3 +1,10 @@
+2009-03-26  Simon Fraser  <simon.fraser@apple.com>
+
+        Build fix when ACCELERATED_COMPOSITING is turned on.
+
+        * rendering/RenderLayerBacking.cpp:
+        (WebCore::RenderLayerBacking::canUseDirectCompositing):
+
 2009-03-26  Eric Seidel  <eric@webkit.org>
 
         No additional review, committing previously reviewed files for build fix only.
index 742483d..40805b5 100644 (file)
@@ -562,8 +562,8 @@ bool RenderLayerBacking::canUseDirectCompositing() const
 {
     RenderObject* renderObject = renderer();
     
-    // Reject anything that isn't a RenderReplaced, and not an image or video
-    if (!renderObject->isReplaced() || (!renderObject->isImage() && !renderObject->isVideo()))
+    // Reject anything that isn't an image
+    if (!renderObject->isImage())
         return false;
     
     if (renderObject->hasMask() || renderObject->hasReflection())