Restore an assertion to the way it was before r191310, which was correct.
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 19 Oct 2015 22:20:45 +0000 (22:20 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 19 Oct 2015 22:20:45 +0000 (22:20 +0000)
* platform/graphics/GraphicsTypes.cpp:
(WebCore::compositeOperatorName):

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

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/GraphicsTypes.cpp

index ed7ff54..ba182bc 100644 (file)
@@ -1,3 +1,10 @@
+2015-10-19  Simon Fraser  <simon.fraser@apple.com>
+
+        Restore an assertion to the way it was before r191310, which was correct.
+
+        * platform/graphics/GraphicsTypes.cpp:
+        (WebCore::compositeOperatorName):
+
 2015-10-19  Beth Dakin  <bdakin@apple.com>
 
         Build fix.
index 2984df5..28e5cc6 100644 (file)
@@ -112,7 +112,7 @@ String compositeOperatorName(CompositeOperator op, BlendMode blendOp)
     ASSERT(op >= 0);
     ASSERT(op < numCompositeOperatorNames);
     ASSERT(blendOp >= BlendModeNormal);
-    ASSERT(blendOp < numBlendOperatorNames);
+    ASSERT(blendOp <= numBlendOperatorNames);
     if (blendOp > BlendModeNormal)
         return blendOperatorNames[blendOp - BlendModeNormal];
     return compositeOperatorNames[op];