| 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/SVGRootInlineBoxPainter.h" | 5 #include "core/paint/SVGRootInlineBoxPainter.h" |
| 6 | 6 |
| 7 #include "core/layout/api/LineLayoutAPIShim.h" | 7 #include "core/layout/api/LineLayoutAPIShim.h" |
| 8 #include "core/layout/api/SelectionState.h" | 8 #include "core/layout/api/SelectionState.h" |
| 9 #include "core/layout/svg/line/SVGInlineFlowBox.h" | 9 #include "core/layout/svg/line/SVGInlineFlowBox.h" |
| 10 #include "core/layout/svg/line/SVGInlineTextBox.h" | 10 #include "core/layout/svg/line/SVGInlineTextBox.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 if (child->isSVGInlineTextBox()) | 32 if (child->isSVGInlineTextBox()) |
| 33 SVGInlineTextBoxPainter(*toSVGInlineTextBox(child)).paintSelecti
onBackground(paintInfoBeforeFiltering); | 33 SVGInlineTextBoxPainter(*toSVGInlineTextBox(child)).paintSelecti
onBackground(paintInfoBeforeFiltering); |
| 34 else if (child->isSVGInlineFlowBox()) | 34 else if (child->isSVGInlineFlowBox()) |
| 35 SVGInlineFlowBoxPainter(*toSVGInlineFlowBox(child)).paintSelecti
onBackground(paintInfoBeforeFiltering); | 35 SVGInlineFlowBoxPainter(*toSVGInlineFlowBox(child)).paintSelecti
onBackground(paintInfoBeforeFiltering); |
| 36 } | 36 } |
| 37 } | 37 } |
| 38 | 38 |
| 39 SVGPaintContext paintContext(*LineLayoutAPIShim::constLayoutObjectFrom(m_svg
RootInlineBox.lineLayoutItem()), paintInfoBeforeFiltering); | 39 SVGPaintContext paintContext(*LineLayoutAPIShim::constLayoutObjectFrom(m_svg
RootInlineBox.lineLayoutItem()), paintInfoBeforeFiltering); |
| 40 if (paintContext.applyClipMaskAndFilterIfNecessary()) { | 40 if (paintContext.applyClipMaskAndFilterIfNecessary()) { |
| 41 for (InlineBox* child = m_svgRootInlineBox.firstChild(); child; child =
child->nextOnLine()) | 41 for (InlineBox* child = m_svgRootInlineBox.firstChild(); child; child =
child->nextOnLine()) |
| 42 child->paint(paintContext.paintInfo(), paintOffset, 0, 0); | 42 child->paint(paintContext.paintInfo(), paintOffset, LayoutUnit(), La
youtUnit()); |
| 43 } | 43 } |
| 44 } | 44 } |
| 45 | 45 |
| 46 } // namespace blink | 46 } // namespace blink |
| OLD | NEW |