| 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/ContiguousContainer.h" | 9 #include "platform/graphics/ContiguousContainer.h" |
| 10 #include "platform/graphics/paint/DisplayItemClient.h" | 10 #include "platform/graphics/paint/DisplayItemClient.h" |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 kEndTransform3DFirst + kTransform3DLast - kTransform3DFirst, | 175 kEndTransform3DFirst + kTransform3DLast - kTransform3DFirst, |
| 176 | 176 |
| 177 kBeginFilter, | 177 kBeginFilter, |
| 178 kEndFilter, | 178 kEndFilter, |
| 179 kBeginCompositing, | 179 kBeginCompositing, |
| 180 kEndCompositing, | 180 kEndCompositing, |
| 181 kBeginTransform, | 181 kBeginTransform, |
| 182 kEndTransform, | 182 kEndTransform, |
| 183 kBeginClipPath, | 183 kBeginClipPath, |
| 184 kEndClipPath, | 184 kEndClipPath, |
| 185 |
| 186 kSubsequence, |
| 187 kEndSubsequence, |
| 188 |
| 185 kUninitializedType, | 189 kUninitializedType, |
| 186 kTypeLast = kUninitializedType | 190 kTypeLast = kUninitializedType |
| 187 }; | 191 }; |
| 188 | 192 |
| 189 static_assert(kTableCollapsedBorderBase >= kTableCollapsedBorderUnalignedBase, | 193 static_assert(kTableCollapsedBorderBase >= kTableCollapsedBorderUnalignedBase, |
| 190 "TableCollapsedBorder types overlap with other types"); | 194 "TableCollapsedBorder types overlap with other types"); |
| 191 static_assert((kTableCollapsedBorderBase & 0xf) == 0, | 195 static_assert((kTableCollapsedBorderBase & 0xf) == 0, |
| 192 "The lowest 4 bits of TableCollapsedBorderBase should be zero"); | 196 "The lowest 4 bits of TableCollapsedBorderBase should be zero"); |
| 193 // Bits or'ed onto TableCollapsedBorderBase to generate a real table collapsed | 197 // Bits or'ed onto TableCollapsedBorderBase to generate a real table collapsed |
| 194 // border type. | 198 // border type. |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 DEFINE_PAINT_PHASE_CONVERSION_METHOD(ClipColumnBounds) | 307 DEFINE_PAINT_PHASE_CONVERSION_METHOD(ClipColumnBounds) |
| 304 | 308 |
| 305 DEFINE_PAIRED_CATEGORY_METHODS(FloatClip, floatClip) | 309 DEFINE_PAIRED_CATEGORY_METHODS(FloatClip, floatClip) |
| 306 DEFINE_PAINT_PHASE_CONVERSION_METHOD(FloatClip) | 310 DEFINE_PAINT_PHASE_CONVERSION_METHOD(FloatClip) |
| 307 | 311 |
| 308 DEFINE_PAIRED_CATEGORY_METHODS(Scroll, scroll) | 312 DEFINE_PAIRED_CATEGORY_METHODS(Scroll, scroll) |
| 309 DEFINE_PAINT_PHASE_CONVERSION_METHOD(Scroll) | 313 DEFINE_PAINT_PHASE_CONVERSION_METHOD(Scroll) |
| 310 | 314 |
| 311 DEFINE_PAIRED_CATEGORY_METHODS(Transform3D, transform3D) | 315 DEFINE_PAIRED_CATEGORY_METHODS(Transform3D, transform3D) |
| 312 | 316 |
| 313 static bool isCacheableType(Type type) { return isDrawingType(type); } | 317 static bool isCacheableType(Type type) { |
| 318 return isDrawingType(type) || type == kSubsequence; |
| 319 } |
| 314 bool isCacheable() const { | 320 bool isCacheable() const { |
| 315 return !skippedCache() && isCacheableType(m_type); | 321 return !skippedCache() && isCacheableType(m_type); |
| 316 } | 322 } |
| 317 | 323 |
| 318 virtual bool isBegin() const { return false; } | 324 virtual bool isBegin() const { return false; } |
| 319 virtual bool isEnd() const { return false; } | 325 virtual bool isEnd() const { return false; } |
| 320 | 326 |
| 321 #if DCHECK_IS_ON() | 327 #if DCHECK_IS_ON() |
| 322 virtual bool isEndAndPairedWith(DisplayItem::Type otherType) const { | 328 virtual bool isEndAndPairedWith(DisplayItem::Type otherType) const { |
| 323 return false; | 329 return false; |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 bool isEndAndPairedWith(DisplayItem::Type otherType) const override = 0; | 410 bool isEndAndPairedWith(DisplayItem::Type otherType) const override = 0; |
| 405 #endif | 411 #endif |
| 406 | 412 |
| 407 private: | 413 private: |
| 408 bool isEnd() const final { return true; } | 414 bool isEnd() const final { return true; } |
| 409 }; | 415 }; |
| 410 | 416 |
| 411 } // namespace blink | 417 } // namespace blink |
| 412 | 418 |
| 413 #endif // DisplayItem_h | 419 #endif // DisplayItem_h |
| OLD | NEW |