Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2311)

Unified Diff: Source/platform/graphics/paint/DisplayItemTest.cpp

Issue 1306433002: Let collapsed border drawings be cacheable (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/platform/graphics/paint/DisplayItemTest.cpp
diff --git a/Source/platform/graphics/paint/DisplayItemTest.cpp b/Source/platform/graphics/paint/DisplayItemTest.cpp
index 5a6b51298fdba765488870fb75e06847ad355bcf..98b23b556d74379ab703f3392283ab976a9616ce 100644
--- a/Source/platform/graphics/paint/DisplayItemTest.cpp
+++ b/Source/platform/graphics/paint/DisplayItemTest.cpp
@@ -14,6 +14,10 @@ namespace {
TEST(DisplayItemTest, DebugStringsExist)
{
for (int type = 0; type <= DisplayItem::TypeLast; type++) {
+ DisplayItem::Type nonCachedType = DisplayItem::nonCachedType(static_cast<DisplayItem::Type>(type));
pdr. 2015/08/21 00:08:22 Can we remove the special case for collapsed borde
Xianzhu 2015/08/21 17:11:52 Done.
+ if (nonCachedType >= DisplayItem::TableCollapsedBorderUnalignedBase && nonCachedType <= DisplayItem::TableCollapsedBorderBase)
+ continue;
+
String debugString = DisplayItem::typeAsDebugString(static_cast<DisplayItem::Type>(type));
EXPECT_FALSE(debugString.isEmpty());
EXPECT_NE("Unknown", debugString);

Powered by Google App Engine
This is Rietveld 408576698