| 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 "core/paint/SVGForeignObjectPainter.h" | 6 #include "core/paint/SVGForeignObjectPainter.h" |
| 7 | 7 |
| 8 #include "core/layout/PaintInfo.h" | 8 #include "core/layout/PaintInfo.h" |
| 9 #include "core/layout/svg/LayoutSVGForeignObject.h" |
| 9 #include "core/layout/svg/SVGLayoutSupport.h" | 10 #include "core/layout/svg/SVGLayoutSupport.h" |
| 10 #include "core/paint/BlockPainter.h" | 11 #include "core/paint/BlockPainter.h" |
| 11 #include "core/paint/FloatClipRecorder.h" | 12 #include "core/paint/FloatClipRecorder.h" |
| 12 #include "core/paint/SVGPaintContext.h" | 13 #include "core/paint/SVGPaintContext.h" |
| 13 #include "core/paint/TransformRecorder.h" | 14 #include "core/paint/TransformRecorder.h" |
| 14 #include "core/rendering/svg/RenderSVGForeignObject.h" | |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 | 17 |
| 18 void SVGForeignObjectPainter::paint(const PaintInfo& paintInfo) | 18 void SVGForeignObjectPainter::paint(const PaintInfo& paintInfo) |
| 19 { | 19 { |
| 20 if (paintInfo.phase != PaintPhaseForeground && paintInfo.phase != PaintPhase
Selection) | 20 if (paintInfo.phase != PaintPhaseForeground && paintInfo.phase != PaintPhase
Selection) |
| 21 return; | 21 return; |
| 22 | 22 |
| 23 PaintInfo paintInfoBeforeFiltering(paintInfo); | 23 PaintInfo paintInfoBeforeFiltering(paintInfo); |
| 24 TransformRecorder transformRecorder(*paintInfoBeforeFiltering.context, m_ren
derSVGForeignObject.displayItemClient(), m_renderSVGForeignObject.localTransform
()); | 24 TransformRecorder transformRecorder(*paintInfoBeforeFiltering.context, m_ren
derSVGForeignObject.displayItemClient(), m_renderSVGForeignObject.localTransform
()); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 49 BlockPainter(m_renderSVGForeignObject).paint(paintContext.paintInfo(
), childPoint); | 49 BlockPainter(m_renderSVGForeignObject).paint(paintContext.paintInfo(
), childPoint); |
| 50 paintContext.paintInfo().phase = PaintPhaseForeground; | 50 paintContext.paintInfo().phase = PaintPhaseForeground; |
| 51 BlockPainter(m_renderSVGForeignObject).paint(paintContext.paintInfo(
), childPoint); | 51 BlockPainter(m_renderSVGForeignObject).paint(paintContext.paintInfo(
), childPoint); |
| 52 paintContext.paintInfo().phase = PaintPhaseOutline; | 52 paintContext.paintInfo().phase = PaintPhaseOutline; |
| 53 BlockPainter(m_renderSVGForeignObject).paint(paintContext.paintInfo(
), childPoint); | 53 BlockPainter(m_renderSVGForeignObject).paint(paintContext.paintInfo(
), childPoint); |
| 54 } | 54 } |
| 55 } | 55 } |
| 56 } | 56 } |
| 57 | 57 |
| 58 } // namespace blink | 58 } // namespace blink |
| OLD | NEW |