| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "core/paint/SVGInlineTextBoxPainter.h" | 5 #include "core/paint/SVGInlineTextBoxPainter.h" |
| 6 | 6 |
| 7 #include "core/dom/Document.h" | 7 #include "core/dom/Document.h" |
| 8 #include "core/dom/Range.h" | 8 #include "core/dom/Range.h" |
| 9 #include "core/editing/DOMSelection.h" | 9 #include "core/editing/DOMSelection.h" |
| 10 #include "core/frame/LocalDOMWindow.h" | 10 #include "core/frame/LocalDOMWindow.h" |
| 11 #include "core/layout/LayoutTestHelper.h" | 11 #include "core/layout/LayoutTestHelper.h" |
| 12 #include "core/layout/LayoutView.h" |
| 12 #include "core/layout/line/InlineTextBox.h" | 13 #include "core/layout/line/InlineTextBox.h" |
| 13 #include "core/layout/svg/LayoutSVGInlineText.h" | 14 #include "core/layout/svg/LayoutSVGInlineText.h" |
| 14 #include "core/layout/svg/LayoutSVGText.h" | 15 #include "core/layout/svg/LayoutSVGText.h" |
| 15 #include "core/paint/PaintLayer.h" | 16 #include "core/paint/PaintLayer.h" |
| 16 #include "platform/geometry/IntRectOutsets.h" | 17 #include "platform/geometry/IntRectOutsets.h" |
| 17 #include "platform/graphics/GraphicsLayer.h" | 18 #include "platform/graphics/GraphicsLayer.h" |
| 18 #include "platform/graphics/paint/DisplayItemList.h" | 19 #include "platform/graphics/paint/DisplayItemList.h" |
| 19 #include "platform/graphics/paint/DrawingDisplayItem.h" | 20 #include "platform/graphics/paint/DrawingDisplayItem.h" |
| 20 #include "platform/graphics/paint/PaintController.h" | 21 #include "platform/graphics/paint/PaintController.h" |
| 21 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 "</svg>"); | 144 "</svg>"); |
| 144 document().view()->updateAllLifecyclePhases(); | 145 document().view()->updateAllLifecyclePhases(); |
| 145 | 146 |
| 146 const DrawingDisplayItem* drawingDisplayItem = getDrawingForSVGTextById("tar
get"); | 147 const DrawingDisplayItem* drawingDisplayItem = getDrawingForSVGTextById("tar
get"); |
| 147 assertTextDrawingEquals(drawingDisplayItem, "x"); | 148 assertTextDrawingEquals(drawingDisplayItem, "x"); |
| 148 EXPECT_RECT_EQ(IntRect(50, 3, 220, 238), cullRectFromDrawing(*drawingDisplay
Item)); | 149 EXPECT_RECT_EQ(IntRect(50, 3, 220, 238), cullRectFromDrawing(*drawingDisplay
Item)); |
| 149 } | 150 } |
| 150 | 151 |
| 151 } // namespace | 152 } // namespace |
| 152 } // namespace blink | 153 } // namespace blink |
| OLD | NEW |