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 #ifndef DisplayItem_h | 5 #ifndef DisplayItem_h |
6 #define DisplayItem_h | 6 #define DisplayItem_h |
7 | 7 |
8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
9 #include "platform/graphics/paint/DisplayItemClient.h" | 9 #include "platform/graphics/paint/DisplayItemClient.h" |
10 #include "wtf/Assertions.h" | 10 #include "wtf/Assertions.h" |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 DEFINE_CONVERSION_METHODS(SubtreeCached, subtreeCached, EndSubtree, endSubtr
ee) | 227 DEFINE_CONVERSION_METHODS(SubtreeCached, subtreeCached, EndSubtree, endSubtr
ee) |
228 DEFINE_CONVERSION_METHODS(BeginSubtree, beginSubtree, EndSubtree, endSubtree
) | 228 DEFINE_CONVERSION_METHODS(BeginSubtree, beginSubtree, EndSubtree, endSubtree
) |
229 | 229 |
230 virtual bool isBegin() const { return false; } | 230 virtual bool isBegin() const { return false; } |
231 virtual bool isEnd() const { return false; } | 231 virtual bool isEnd() const { return false; } |
232 | 232 |
233 #if ENABLE(ASSERT) | 233 #if ENABLE(ASSERT) |
234 virtual bool isEndAndPairedWith(const DisplayItem& other) const { return fal
se; } | 234 virtual bool isEndAndPairedWith(const DisplayItem& other) const { return fal
se; } |
235 #endif | 235 #endif |
236 | 236 |
| 237 virtual bool drawsContent() const { return false; } |
| 238 |
237 #ifndef NDEBUG | 239 #ifndef NDEBUG |
238 static WTF::String typeAsDebugString(DisplayItem::Type); | 240 static WTF::String typeAsDebugString(DisplayItem::Type); |
239 | 241 |
240 void setClientDebugString(const WTF::String& clientDebugString) { m_clientDe
bugString = clientDebugString; } | 242 void setClientDebugString(const WTF::String& clientDebugString) { m_clientDe
bugString = clientDebugString; } |
241 const WTF::String& clientDebugString() const { return m_clientDebugString; } | 243 const WTF::String& clientDebugString() const { return m_clientDebugString; } |
242 | 244 |
243 WTF::String asDebugString() const; | 245 WTF::String asDebugString() const; |
244 virtual void dumpPropertiesAsDebugString(WTF::StringBuilder&) const; | 246 virtual void dumpPropertiesAsDebugString(WTF::StringBuilder&) const; |
245 #endif | 247 #endif |
246 | 248 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 virtual bool isEndAndPairedWith(const DisplayItem& other) const override = 0
; | 284 virtual bool isEndAndPairedWith(const DisplayItem& other) const override = 0
; |
283 #endif | 285 #endif |
284 | 286 |
285 private: | 287 private: |
286 virtual bool isEnd() const override final { return true; } | 288 virtual bool isEnd() const override final { return true; } |
287 }; | 289 }; |
288 | 290 |
289 } // namespace blink | 291 } // namespace blink |
290 | 292 |
291 #endif // DisplayItem_h | 293 #endif // DisplayItem_h |
OLD | NEW |