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

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

Issue 2787173005: Some cleanup after https://codereview.chromium.org/2751433002 (Closed)
Patch Set: none Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "platform/graphics/paint/DisplayItem.h" 5 #include "platform/graphics/paint/DisplayItem.h"
6 6
7 namespace blink { 7 namespace blink {
8 8
9 struct SameSizeAsDisplayItem { 9 struct SameSizeAsDisplayItem {
10 virtual ~SameSizeAsDisplayItem() {} // Allocate vtable pointer. 10 virtual ~SameSizeAsDisplayItem() {} // Allocate vtable pointer.
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 DEBUG_STRING_CASE(DragImage); 94 DEBUG_STRING_CASE(DragImage);
95 DEBUG_STRING_CASE(DragCaret); 95 DEBUG_STRING_CASE(DragCaret);
96 DEBUG_STRING_CASE(SVGImage); 96 DEBUG_STRING_CASE(SVGImage);
97 DEBUG_STRING_CASE(LinkHighlight); 97 DEBUG_STRING_CASE(LinkHighlight);
98 DEBUG_STRING_CASE(ImageAreaFocusRing); 98 DEBUG_STRING_CASE(ImageAreaFocusRing);
99 DEBUG_STRING_CASE(PageOverlay); 99 DEBUG_STRING_CASE(PageOverlay);
100 DEBUG_STRING_CASE(PageWidgetDelegateBackgroundFallback); 100 DEBUG_STRING_CASE(PageWidgetDelegateBackgroundFallback);
101 DEBUG_STRING_CASE(PopupContainerBorder); 101 DEBUG_STRING_CASE(PopupContainerBorder);
102 DEBUG_STRING_CASE(PopupListBoxBackground); 102 DEBUG_STRING_CASE(PopupListBoxBackground);
103 DEBUG_STRING_CASE(PopupListBoxRow); 103 DEBUG_STRING_CASE(PopupListBoxRow);
104 DEBUG_STRING_CASE(PrintedContentBackground);
105 DEBUG_STRING_CASE(PrintedContentDestinationLocations); 104 DEBUG_STRING_CASE(PrintedContentDestinationLocations);
106 DEBUG_STRING_CASE(PrintedContentLineBoundary);
107 DEBUG_STRING_CASE(PrintedContentPDFURLRect); 105 DEBUG_STRING_CASE(PrintedContentPDFURLRect);
108 DEBUG_STRING_CASE(Resizer); 106 DEBUG_STRING_CASE(Resizer);
109 DEBUG_STRING_CASE(SVGClip); 107 DEBUG_STRING_CASE(SVGClip);
110 DEBUG_STRING_CASE(SVGFilter); 108 DEBUG_STRING_CASE(SVGFilter);
111 DEBUG_STRING_CASE(SVGMask); 109 DEBUG_STRING_CASE(SVGMask);
112 DEBUG_STRING_CASE(ScrollbarBackButtonEnd); 110 DEBUG_STRING_CASE(ScrollbarBackButtonEnd);
113 DEBUG_STRING_CASE(ScrollbarBackButtonStart); 111 DEBUG_STRING_CASE(ScrollbarBackButtonStart);
114 DEBUG_STRING_CASE(ScrollbarBackground); 112 DEBUG_STRING_CASE(ScrollbarBackground);
115 DEBUG_STRING_CASE(ScrollbarBackTrack); 113 DEBUG_STRING_CASE(ScrollbarBackTrack);
116 DEBUG_STRING_CASE(ScrollbarCorner); 114 DEBUG_STRING_CASE(ScrollbarCorner);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 switch (type) { 159 switch (type) {
162 DEBUG_STRING_CASE(ClipFileUploadControlRect); 160 DEBUG_STRING_CASE(ClipFileUploadControlRect);
163 DEBUG_STRING_CASE(ClipFrameToVisibleContentRect); 161 DEBUG_STRING_CASE(ClipFrameToVisibleContentRect);
164 DEBUG_STRING_CASE(ClipFrameScrollbars); 162 DEBUG_STRING_CASE(ClipFrameScrollbars);
165 DEBUG_STRING_CASE(ClipLayerBackground); 163 DEBUG_STRING_CASE(ClipLayerBackground);
166 DEBUG_STRING_CASE(ClipLayerColumnBounds); 164 DEBUG_STRING_CASE(ClipLayerColumnBounds);
167 DEBUG_STRING_CASE(ClipLayerFilter); 165 DEBUG_STRING_CASE(ClipLayerFilter);
168 DEBUG_STRING_CASE(ClipLayerForeground); 166 DEBUG_STRING_CASE(ClipLayerForeground);
169 DEBUG_STRING_CASE(ClipLayerParent); 167 DEBUG_STRING_CASE(ClipLayerParent);
170 DEBUG_STRING_CASE(ClipLayerOverflowControls); 168 DEBUG_STRING_CASE(ClipLayerOverflowControls);
171 DEBUG_STRING_CASE(ClipNodeImage);
172 DEBUG_STRING_CASE(ClipPopupListBoxFrame); 169 DEBUG_STRING_CASE(ClipPopupListBoxFrame);
173 DEBUG_STRING_CASE(ClipScrollbarsToBoxBounds); 170 DEBUG_STRING_CASE(ClipScrollbarsToBoxBounds);
174 DEBUG_STRING_CASE(ClipSelectionImage); 171 DEBUG_STRING_CASE(ClipSelectionImage);
175 DEBUG_STRING_CASE(PageWidgetDelegateClip); 172 DEBUG_STRING_CASE(PageWidgetDelegateClip);
176 DEBUG_STRING_CASE(ClipPrintedPage);
177 DEFAULT_CASE; 173 DEFAULT_CASE;
178 } 174 }
179 } 175 }
180 176
181 static String scrollTypeAsDebugString(DisplayItem::Type type) { 177 static String scrollTypeAsDebugString(DisplayItem::Type type) {
182 PAINT_PHASE_BASED_DEBUG_STRINGS(Scroll); 178 PAINT_PHASE_BASED_DEBUG_STRINGS(Scroll);
183 switch (type) { 179 switch (type) {
184 DEBUG_STRING_CASE(ScrollOverflowControls); 180 DEBUG_STRING_CASE(ScrollOverflowControls);
185 DEFAULT_CASE; 181 DEFAULT_CASE;
186 } 182 }
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 stringBuilder.append("\", type: \""); 257 stringBuilder.append("\", type: \"");
262 stringBuilder.append(typeAsDebugString(getType())); 258 stringBuilder.append(typeAsDebugString(getType()));
263 stringBuilder.append('"'); 259 stringBuilder.append('"');
264 if (m_skippedCache) 260 if (m_skippedCache)
265 stringBuilder.append(", skippedCache: true"); 261 stringBuilder.append(", skippedCache: true");
266 } 262 }
267 263
268 #endif 264 #endif
269 265
270 } // namespace blink 266 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698