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

Unified Diff: Source/platform/graphics/paint/DisplayItem.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/DisplayItem.cpp
diff --git a/Source/platform/graphics/paint/DisplayItem.cpp b/Source/platform/graphics/paint/DisplayItem.cpp
index 315147e50412147b37c3d6cc029a6b04b2323b49..2b7fa97b72950a583f5e7bf6c0ac460196dbe2b7 100644
--- a/Source/platform/graphics/paint/DisplayItem.cpp
+++ b/Source/platform/graphics/paint/DisplayItem.cpp
@@ -53,6 +53,19 @@ static WTF::String paintPhaseAsDebugString(int paintPhase)
static WTF::String specialDrawingTypeAsDebugString(DisplayItem::Type type)
{
+ if (type > DisplayItem::TableCollapsedBorderBase && type <= DisplayItem::TableCollapsedBorderLast) {
+ StringBuilder sb;
+ sb.append("TableCollapsedBorder");
+ if (type & DisplayItem::TableCollapsedBorderTop)
+ sb.append("Top");
+ if (type & DisplayItem::TableCollapsedBorderRight)
+ sb.append("Right");
+ if (type & DisplayItem::TableCollapsedBorderBottom)
+ sb.append("Bottom");
+ if (type & DisplayItem::TableCollapsedBorderLeft)
+ sb.append("Left");
+ return sb.toString();
+ }
switch (type) {
DEBUG_STRING_CASE(BoxDecorationBackground);
DEBUG_STRING_CASE(Caret);

Powered by Google App Engine
This is Rietveld 408576698