Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: third_party/WebKit/Source/core/paint/SVGRootInlineBoxPainter.cpp

Issue 1656743002: Removing more implicit LayoutUnit construction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698