OLD | NEW |
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 #ifndef NDEBUG | 10 #ifndef NDEBUG |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 | 147 |
148 switch (type) { | 148 switch (type) { |
149 case BeginFilter: return "BeginFilter"; | 149 case BeginFilter: return "BeginFilter"; |
150 case EndFilter: return "EndFilter"; | 150 case EndFilter: return "EndFilter"; |
151 case BeginCompositing: return "BeginCompositing"; | 151 case BeginCompositing: return "BeginCompositing"; |
152 case EndCompositing: return "EndCompositing"; | 152 case EndCompositing: return "EndCompositing"; |
153 case BeginTransform: return "BeginTransform"; | 153 case BeginTransform: return "BeginTransform"; |
154 case EndTransform: return "EndTransform"; | 154 case EndTransform: return "EndTransform"; |
155 case BeginClipPath: return "BeginClipPath"; | 155 case BeginClipPath: return "BeginClipPath"; |
156 case EndClipPath: return "EndClipPath"; | 156 case EndClipPath: return "EndClipPath"; |
157 case BeginFixedPosition: return "BeginFixedPosition"; | |
158 case EndFixedPosition: return "EndFixedPosition"; | |
159 case BeginFixedPositionContainer: return "BeginFixedPositionContainer"; | |
160 case EndFixedPositionContainer: return "EndFixedPositionContainer"; | |
161 default: | 157 default: |
162 ASSERT_NOT_REACHED(); | 158 ASSERT_NOT_REACHED(); |
163 return "Unknown"; | 159 return "Unknown"; |
164 } | 160 } |
165 } | 161 } |
166 | 162 |
167 WTF::String DisplayItem::asDebugString() const | 163 WTF::String DisplayItem::asDebugString() const |
168 { | 164 { |
169 WTF::StringBuilder stringBuilder; | 165 WTF::StringBuilder stringBuilder; |
170 stringBuilder.append('{'); | 166 stringBuilder.append('{'); |
(...skipping 12 matching lines...) Expand all Loading... |
183 stringBuilder.append("\", type: \""); | 179 stringBuilder.append("\", type: \""); |
184 stringBuilder.append(typeAsDebugString(type())); | 180 stringBuilder.append(typeAsDebugString(type())); |
185 stringBuilder.append('"'); | 181 stringBuilder.append('"'); |
186 if (m_id.scopeContainer) | 182 if (m_id.scopeContainer) |
187 stringBuilder.append(String::format(", scope: \"%p,%d\"", m_id.scopeCont
ainer, m_id.scopeId)); | 183 stringBuilder.append(String::format(", scope: \"%p,%d\"", m_id.scopeCont
ainer, m_id.scopeId)); |
188 } | 184 } |
189 | 185 |
190 #endif | 186 #endif |
191 | 187 |
192 } // namespace blink | 188 } // namespace blink |
OLD | NEW |