| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 PaintControllerPaintTest_h | 5 #ifndef PaintControllerPaintTest_h |
| 6 #define PaintControllerPaintTest_h | 6 #define PaintControllerPaintTest_h |
| 7 | 7 |
| 8 #include "core/frame/FrameView.h" | 8 #include "core/frame/FrameView.h" |
| 9 #include "core/layout/LayoutTestHelper.h" | 9 #include "core/layout/LayoutTestHelper.h" |
| 10 #include "core/layout/LayoutView.h" | 10 #include "core/layout/LayoutView.h" |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 EXPECT_EQ(expected[index].client(), actual[index].client()); \ | 134 EXPECT_EQ(expected[index].client(), actual[index].client()); \ |
| 135 EXPECT_EQ(expected[index].type(), actual[index].type()); \ | 135 EXPECT_EQ(expected[index].type(), actual[index].type()); \ |
| 136 } \ | 136 } \ |
| 137 } while (false); | 137 } while (false); |
| 138 | 138 |
| 139 // Shorter names for frequently used display item types in tests. | 139 // Shorter names for frequently used display item types in tests. |
| 140 const DisplayItem::Type backgroundType = DisplayItem::BoxDecorationBackground; | 140 const DisplayItem::Type backgroundType = DisplayItem::BoxDecorationBackground; |
| 141 const DisplayItem::Type cachedBackgroundType = DisplayItem::drawingTypeToCachedD
rawingType(backgroundType); | 141 const DisplayItem::Type cachedBackgroundType = DisplayItem::drawingTypeToCachedD
rawingType(backgroundType); |
| 142 const DisplayItem::Type foregroundType = DisplayItem::paintPhaseToDrawingType(Pa
intPhaseForeground); | 142 const DisplayItem::Type foregroundType = DisplayItem::paintPhaseToDrawingType(Pa
intPhaseForeground); |
| 143 const DisplayItem::Type cachedForegroundType = DisplayItem::drawingTypeToCachedD
rawingType(foregroundType); | 143 const DisplayItem::Type cachedForegroundType = DisplayItem::drawingTypeToCachedD
rawingType(foregroundType); |
| 144 const DisplayItem::Type subsequenceType = DisplayItem::SubsequenceNormalFlowAndP
ositiveZOrder; | |
| 145 const DisplayItem::Type endSubsequenceType = DisplayItem::subsequenceTypeToEndSu
bsequenceType(subsequenceType); | |
| 146 const DisplayItem::Type cachedSubsequenceType = DisplayItem::subsequenceTypeToCa
chedSubsequenceType(subsequenceType); | |
| 147 | 144 |
| 148 } // namespace blink | 145 } // namespace blink |
| 149 | 146 |
| 150 #endif // PaintControllerPaintTest_h | 147 #endif // PaintControllerPaintTest_h |
| OLD | NEW |