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

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

Issue 1448253002: Clip scrollbars to box bounds when they don't fit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix assertion in clipTypeAsDebugString Created 5 years 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 "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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 DEBUG_STRING_CASE(ClipFrameToVisibleContentRect); 133 DEBUG_STRING_CASE(ClipFrameToVisibleContentRect);
134 DEBUG_STRING_CASE(ClipFrameScrollbars); 134 DEBUG_STRING_CASE(ClipFrameScrollbars);
135 DEBUG_STRING_CASE(ClipLayerBackground); 135 DEBUG_STRING_CASE(ClipLayerBackground);
136 DEBUG_STRING_CASE(ClipLayerColumnBounds); 136 DEBUG_STRING_CASE(ClipLayerColumnBounds);
137 DEBUG_STRING_CASE(ClipLayerFilter); 137 DEBUG_STRING_CASE(ClipLayerFilter);
138 DEBUG_STRING_CASE(ClipLayerForeground); 138 DEBUG_STRING_CASE(ClipLayerForeground);
139 DEBUG_STRING_CASE(ClipLayerParent); 139 DEBUG_STRING_CASE(ClipLayerParent);
140 DEBUG_STRING_CASE(ClipLayerOverflowControls); 140 DEBUG_STRING_CASE(ClipLayerOverflowControls);
141 DEBUG_STRING_CASE(ClipNodeImage); 141 DEBUG_STRING_CASE(ClipNodeImage);
142 DEBUG_STRING_CASE(ClipPopupListBoxFrame); 142 DEBUG_STRING_CASE(ClipPopupListBoxFrame);
143 DEBUG_STRING_CASE(ClipScrollbarsToBoxBounds);
143 DEBUG_STRING_CASE(ClipSelectionImage); 144 DEBUG_STRING_CASE(ClipSelectionImage);
144 DEBUG_STRING_CASE(PageWidgetDelegateClip); 145 DEBUG_STRING_CASE(PageWidgetDelegateClip);
145 DEBUG_STRING_CASE(ClipPrintedPage); 146 DEBUG_STRING_CASE(ClipPrintedPage);
146 DEFAULT_CASE; 147 DEFAULT_CASE;
147 } 148 }
148 } 149 }
149 150
150 static String transform3DTypeAsDebugString(DisplayItem::Type type) 151 static String transform3DTypeAsDebugString(DisplayItem::Type type)
151 { 152 {
152 switch (type) { 153 switch (type) {
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 stringBuilder.append('"'); 233 stringBuilder.append('"');
233 if (m_skippedCache) 234 if (m_skippedCache)
234 stringBuilder.append(", skippedCache: true"); 235 stringBuilder.append(", skippedCache: true");
235 if (m_scope) 236 if (m_scope)
236 stringBuilder.append(String::format(", scope: %d", m_scope)); 237 stringBuilder.append(String::format(", scope: %d", m_scope));
237 } 238 }
238 239
239 #endif 240 #endif
240 241
241 } // namespace blink 242 } // 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