Index: third_party/WebKit/Source/core/paint/DisplayItemListPaintTest.h |
diff --git a/third_party/WebKit/Source/core/paint/DisplayItemListPaintTest.h b/third_party/WebKit/Source/core/paint/DisplayItemListPaintTest.h |
index 813fd6e3a98e4d28129a36bdbab4d90c949f2fd2..28d3e76ded29bbb42967c89bcc31b24be18ed883 100644 |
--- a/third_party/WebKit/Source/core/paint/DisplayItemListPaintTest.h |
+++ b/third_party/WebKit/Source/core/paint/DisplayItemListPaintTest.h |
@@ -117,6 +117,15 @@ public: |
} \ |
} while (false); |
+// Shorter names for frequently used display item types in tests. |
+const DisplayItem::Type backgroundType = DisplayItem::BoxDecorationBackground; |
+const DisplayItem::Type cachedBackgroundType = DisplayItem::drawingTypeToCachedDrawingType(backgroundType); |
+const DisplayItem::Type foregroundType = DisplayItem::paintPhaseToDrawingType(PaintPhaseForeground); |
+const DisplayItem::Type cachedForegroundType = DisplayItem::drawingTypeToCachedDrawingType(foregroundType); |
+const DisplayItem::Type subsequenceType = DisplayItem::SubsequenceNormalFlowAndPositiveZOrder; |
+const DisplayItem::Type endSubsequenceType = DisplayItem::subsequenceTypeToEndSubsequenceType(subsequenceType); |
+const DisplayItem::Type cachedSubsequenceType = DisplayItem::subsequenceTypeToCachedSubsequenceType(subsequenceType); |
+ |
} // namespace blink |
#endif // DisplayItemListPaintTest_h |