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

Side by Side Diff: Source/platform/graphics/paint/DisplayItem.cpp

Issue 1284203004: Generate scroll/clip display item hierarchy for SPv2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix failing test. Update test expectation. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "platform/graphics/paint/DisplayItem.h" 6 #include "platform/graphics/paint/DisplayItem.h"
7 7
8 namespace blink { 8 namespace blink {
9 9
10 struct SameSizeAsDisplayItem { 10 struct SameSizeAsDisplayItem {
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 return "Drawing" + specialDrawingTypeAsDebugString(type); 120 return "Drawing" + specialDrawingTypeAsDebugString(type);
121 } 121 }
122 122
123 static WTF::String clipTypeAsDebugString(DisplayItem::Type type) 123 static WTF::String clipTypeAsDebugString(DisplayItem::Type type)
124 { 124 {
125 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipBox); 125 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipBox);
126 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipColumnBounds); 126 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipColumnBounds);
127 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipLayerFragment); 127 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipLayerFragment);
128 128
129 switch (type) { 129 switch (type) {
130 DEBUG_STRING_CASE(ClipDescendantStackingContext);
130 DEBUG_STRING_CASE(ClipFileUploadControlRect); 131 DEBUG_STRING_CASE(ClipFileUploadControlRect);
131 DEBUG_STRING_CASE(ClipFrameToVisibleContentRect); 132 DEBUG_STRING_CASE(ClipFrameToVisibleContentRect);
132 DEBUG_STRING_CASE(ClipFrameScrollbars); 133 DEBUG_STRING_CASE(ClipFrameScrollbars);
133 DEBUG_STRING_CASE(ClipLayerBackground); 134 DEBUG_STRING_CASE(ClipLayerBackground);
134 DEBUG_STRING_CASE(ClipLayerColumnBounds); 135 DEBUG_STRING_CASE(ClipLayerColumnBounds);
135 DEBUG_STRING_CASE(ClipLayerFilter); 136 DEBUG_STRING_CASE(ClipLayerFilter);
136 DEBUG_STRING_CASE(ClipLayerForeground); 137 DEBUG_STRING_CASE(ClipLayerForeground);
137 DEBUG_STRING_CASE(ClipLayerParent); 138 DEBUG_STRING_CASE(ClipLayerParent);
138 DEBUG_STRING_CASE(ClipLayerOverflowControls); 139 DEBUG_STRING_CASE(ClipLayerOverflowControls);
139 DEBUG_STRING_CASE(ClipNodeImage); 140 DEBUG_STRING_CASE(ClipNodeImage);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 DEBUG_STRING_CASE(BeginFilter); 185 DEBUG_STRING_CASE(BeginFilter);
185 DEBUG_STRING_CASE(EndFilter); 186 DEBUG_STRING_CASE(EndFilter);
186 DEBUG_STRING_CASE(BeginCompositing); 187 DEBUG_STRING_CASE(BeginCompositing);
187 DEBUG_STRING_CASE(EndCompositing); 188 DEBUG_STRING_CASE(EndCompositing);
188 DEBUG_STRING_CASE(BeginTransform); 189 DEBUG_STRING_CASE(BeginTransform);
189 DEBUG_STRING_CASE(EndTransform); 190 DEBUG_STRING_CASE(EndTransform);
190 DEBUG_STRING_CASE(BeginClipPath); 191 DEBUG_STRING_CASE(BeginClipPath);
191 DEBUG_STRING_CASE(EndClipPath); 192 DEBUG_STRING_CASE(EndClipPath);
192 DEBUG_STRING_CASE(BeginFixedPosition); 193 DEBUG_STRING_CASE(BeginFixedPosition);
193 DEBUG_STRING_CASE(EndFixedPosition); 194 DEBUG_STRING_CASE(EndFixedPosition);
194 DEBUG_STRING_CASE(BeginFixedPositionContainer); 195 DEBUG_STRING_CASE(FixedPositionContainer);
195 DEBUG_STRING_CASE(EndFixedPositionContainer);
196 DEBUG_STRING_CASE(BeginSubsequence); 196 DEBUG_STRING_CASE(BeginSubsequence);
197 DEBUG_STRING_CASE(EndSubsequence); 197 DEBUG_STRING_CASE(EndSubsequence);
198 DEBUG_STRING_CASE(CachedSubsequence); 198 DEBUG_STRING_CASE(CachedSubsequence);
199 DEBUG_STRING_CASE(UninitializedType); 199 DEBUG_STRING_CASE(UninitializedType);
200 DEFAULT_CASE; 200 DEFAULT_CASE;
201 } 201 }
202 } 202 }
203 203
204 WTF::String DisplayItem::asDebugString() const 204 WTF::String DisplayItem::asDebugString() const
205 { 205 {
(...skipping 19 matching lines...) Expand all
225 stringBuilder.append('"'); 225 stringBuilder.append('"');
226 if (m_skippedCache) 226 if (m_skippedCache)
227 stringBuilder.append(", skippedCache: true"); 227 stringBuilder.append(", skippedCache: true");
228 if (m_scope) 228 if (m_scope)
229 stringBuilder.append(String::format(", scope: %d", m_scope)); 229 stringBuilder.append(String::format(", scope: %d", m_scope));
230 } 230 }
231 231
232 #endif 232 #endif
233 233
234 } // namespace blink 234 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698