| 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/DisplayItemList.h" | 6 #include "platform/graphics/paint/DisplayItemList.h" |
| 7 | 7 |
| 8 #include "core/layout/LayoutTestHelper.h" | 8 #include "core/layout/LayoutTestHelper.h" |
| 9 #include "core/layout/LayoutText.h" | 9 #include "core/layout/LayoutText.h" |
| 10 #include "core/layout/LayoutView.h" | 10 #include "core/layout/LayoutView.h" |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 TestDisplayItem(layoutView, DisplayItem::BoxDecorationBackground), | 240 TestDisplayItem(layoutView, DisplayItem::BoxDecorationBackground), |
| 241 TestDisplayItem(firstTextBox, DisplayItem::paintPhaseToDrawingType(Paint
PhaseForeground))); | 241 TestDisplayItem(firstTextBox, DisplayItem::paintPhaseToDrawingType(Paint
PhaseForeground))); |
| 242 | 242 |
| 243 div.setAttribute(HTMLNames::styleAttr, "width: 10px; height: 200px"); | 243 div.setAttribute(HTMLNames::styleAttr, "width: 10px; height: 200px"); |
| 244 document().view()->updateAllLifecyclePhases(); | 244 document().view()->updateAllLifecyclePhases(); |
| 245 | 245 |
| 246 LayoutText& newText = *toLayoutText(divBlock.firstChild()); | 246 LayoutText& newText = *toLayoutText(divBlock.firstChild()); |
| 247 InlineTextBox& newFirstTextBox = *newText.firstTextBox(); | 247 InlineTextBox& newFirstTextBox = *newText.firstTextBox(); |
| 248 InlineTextBox& secondTextBox = *newText.firstTextBox()->nextTextBox(); | 248 InlineTextBox& secondTextBox = *newText.firstTextBox()->nextTextBox(); |
| 249 | 249 |
| 250 EXPECT_DISPLAY_LIST_WITH_RED_FILL_IN_DEBUG(rootDisplayItemList().displayItem
s(), 5, | 250 EXPECT_DISPLAY_LIST_WITH_RED_FILL_IN_DEBUG(rootDisplayItemList().displayItem
s(), 3, |
| 251 TestDisplayItem(layoutView, DisplayItem::BoxDecorationBackground), | 251 TestDisplayItem(layoutView, DisplayItem::BoxDecorationBackground), |
| 252 TestDisplayItem(divBlock, DisplayItem::paintPhaseToBeginSubtreeType(Pain
tPhaseForeground)), | |
| 253 TestDisplayItem(newFirstTextBox, DisplayItem::paintPhaseToDrawingType(Pa
intPhaseForeground)), | 252 TestDisplayItem(newFirstTextBox, DisplayItem::paintPhaseToDrawingType(Pa
intPhaseForeground)), |
| 254 TestDisplayItem(secondTextBox, DisplayItem::paintPhaseToDrawingType(Pain
tPhaseForeground)), | 253 TestDisplayItem(secondTextBox, DisplayItem::paintPhaseToDrawingType(Pain
tPhaseForeground))); |
| 255 TestDisplayItem(divBlock, DisplayItem::paintPhaseToEndSubtreeType(PaintP
haseForeground))); | |
| 256 } | 254 } |
| 257 | 255 |
| 258 } // namespace blink | 256 } // namespace blink |
| OLD | NEW |