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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/DisplayItem.cpp

Issue 1375393002: Output subsequence for children layers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix blink_platform_unittests and address pdr's comments Created 5 years, 3 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: third_party/WebKit/Source/platform/graphics/paint/DisplayItem.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.cpp b/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.cpp
index 59fd0fec4bc8a868591277e109e2bb0eac4c5448..8db534a74b288a0654ec1fc2231d78756545e3f9 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.cpp
@@ -154,6 +154,15 @@ static String transform3DTypeAsDebugString(DisplayItem::Type type)
}
}
+static String subsequenceTypeAsDebugString(DisplayItem::Type type)
+{
+ switch (type) {
+ DEBUG_STRING_CASE(SubsequenceNegativeZOrder);
+ DEBUG_STRING_CASE(SubsequenceNormalFlowAndPositiveZOrder);
+ DEFAULT_CASE;
+ }
+}
+
WTF::String DisplayItem::typeAsDebugString(Type type)
{
if (isDrawingType(type))
@@ -181,6 +190,13 @@ WTF::String DisplayItem::typeAsDebugString(Type type)
if (isEndTransform3DType(type))
return "End" + transform3DTypeAsDebugString(endTransform3DTypeToTransform3DType(type));
+ if (isSubsequenceType(type))
+ return subsequenceTypeAsDebugString(type);
+ if (isEndSubsequenceType(type))
+ return "End" + subsequenceTypeAsDebugString(endSubsequenceTypeToSubsequenceType(type));
+ if (isCachedSubsequenceType(type))
+ return "Cached" + subsequenceTypeAsDebugString(cachedSubsequenceTypeToSubsequenceType(type));
+
switch (type) {
DEBUG_STRING_CASE(BeginFilter);
DEBUG_STRING_CASE(EndFilter);
@@ -194,9 +210,6 @@ WTF::String DisplayItem::typeAsDebugString(Type type)
DEBUG_STRING_CASE(EndFixedPosition);
DEBUG_STRING_CASE(BeginFixedPositionContainer);
DEBUG_STRING_CASE(EndFixedPositionContainer);
- DEBUG_STRING_CASE(BeginSubsequence);
- DEBUG_STRING_CASE(EndSubsequence);
- DEBUG_STRING_CASE(CachedSubsequence);
DEBUG_STRING_CASE(UninitializedType);
DEFAULT_CASE;
}

Powered by Google App Engine
This is Rietveld 408576698