| 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 "core/paint/SVGInlineFlowBoxPainter.h" | 5 #include "core/paint/SVGInlineFlowBoxPainter.h" |
| 6 | 6 |
| 7 #include "core/layout/LayoutInline.h" | |
| 8 #include "core/layout/api/LineLayoutAPIShim.h" | 7 #include "core/layout/api/LineLayoutAPIShim.h" |
| 9 #include "core/layout/svg/line/SVGInlineFlowBox.h" | 8 #include "core/layout/svg/line/SVGInlineFlowBox.h" |
| 10 #include "core/layout/svg/line/SVGInlineTextBox.h" | 9 #include "core/layout/svg/line/SVGInlineTextBox.h" |
| 11 #include "core/paint/ObjectPainter.h" | |
| 12 #include "core/paint/PaintInfo.h" | 10 #include "core/paint/PaintInfo.h" |
| 13 #include "core/paint/SVGInlineTextBoxPainter.h" | 11 #include "core/paint/SVGInlineTextBoxPainter.h" |
| 14 #include "core/paint/SVGPaintContext.h" | 12 #include "core/paint/SVGPaintContext.h" |
| 15 | 13 |
| 16 namespace blink { | 14 namespace blink { |
| 17 | 15 |
| 18 void SVGInlineFlowBoxPainter::paintSelectionBackground(const PaintInfo& paintInf
o) | 16 void SVGInlineFlowBoxPainter::paintSelectionBackground(const PaintInfo& paintInf
o) |
| 19 { | 17 { |
| 20 ASSERT(paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPh
aseSelection); | 18 ASSERT(paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPh
aseSelection); |
| 21 | 19 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 33 ASSERT(paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPh
aseSelection); | 31 ASSERT(paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPh
aseSelection); |
| 34 | 32 |
| 35 SVGPaintContext paintContext(*LineLayoutAPIShim::constLayoutObjectFrom(m_svg
InlineFlowBox.getLineLayoutItem()), paintInfo); | 33 SVGPaintContext paintContext(*LineLayoutAPIShim::constLayoutObjectFrom(m_svg
InlineFlowBox.getLineLayoutItem()), paintInfo); |
| 36 if (paintContext.applyClipMaskAndFilterIfNecessary()) { | 34 if (paintContext.applyClipMaskAndFilterIfNecessary()) { |
| 37 for (InlineBox* child = m_svgInlineFlowBox.firstChild(); child; child =
child->nextOnLine()) | 35 for (InlineBox* child = m_svgInlineFlowBox.firstChild(); child; child =
child->nextOnLine()) |
| 38 child->paint(paintContext.paintInfo(), paintOffset, LayoutUnit(), La
youtUnit()); | 36 child->paint(paintContext.paintInfo(), paintOffset, LayoutUnit(), La
youtUnit()); |
| 39 } | 37 } |
| 40 } | 38 } |
| 41 | 39 |
| 42 } // namespace blink | 40 } // namespace blink |
| OLD | NEW |