| Index: third_party/WebKit/Source/core/paint/PaintControllerPaintTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/PaintControllerPaintTest.cpp b/third_party/WebKit/Source/core/paint/PaintControllerPaintTest.cpp
|
| index 44364c9184e679f817d8692a5ab5fa1d0f298881..539517b8a53ceef5ff97ac3c3a684b26c3e20ebb 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintControllerPaintTest.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PaintControllerPaintTest.cpp
|
| @@ -4,6 +4,8 @@
|
|
|
| #include "core/paint/PaintControllerPaintTest.h"
|
|
|
| +#include "core/editing/FrameCaret.h"
|
| +#include "core/editing/FrameSelection.h"
|
| #include "core/layout/LayoutText.h"
|
| #include "core/layout/line/InlineTextBox.h"
|
| #include "core/page/FocusController.h"
|
| @@ -23,7 +25,6 @@ TEST_P(PaintControllerPaintTestForSlimmingPaintV1AndV2, FullDocumentPaintingWith
|
| document().page()->focusController().setActive(true);
|
| document().page()->focusController().setFocused(true);
|
| Element& div = *toElement(document().body()->firstChild());
|
| - LayoutObject& divLayoutObject = *document().body()->firstChild()->layoutObject();
|
| InlineTextBox& textInlineBox = *toLayoutText(div.firstChild()->layoutObject())->firstTextBox();
|
|
|
| EXPECT_DISPLAY_LIST(rootPaintController().getDisplayItemList(), 2,
|
| @@ -36,7 +37,7 @@ TEST_P(PaintControllerPaintTestForSlimmingPaintV1AndV2, FullDocumentPaintingWith
|
| EXPECT_DISPLAY_LIST(rootPaintController().getDisplayItemList(), 3,
|
| TestDisplayItem(layoutView(), documentBackgroundType),
|
| TestDisplayItem(textInlineBox, foregroundType),
|
| - TestDisplayItem(divLayoutObject, DisplayItem::kCaret)); // New!
|
| + TestDisplayItem(*document().frame()->selection().m_frameCaret, DisplayItem::kCaret)); // New!
|
| }
|
|
|
| TEST_P(PaintControllerPaintTestForSlimmingPaintV1AndV2, InlineRelayout)
|
|
|