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

Side by Side Diff: Source/core/layout/svg/LayoutSVGBlock.cpp

Issue 1316163002: Make the LayoutRect->FloatRect constructor explicit. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/layout/LayoutInline.cpp ('k') | Source/core/paint/DeprecatedPaintLayer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Apple Computer, Inc. 2 * Copyright (C) 2006 Apple Computer, Inc.
3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 return SVGLayoutSupport::pushMappingToContainer(this, ancestorToStopAt, geom etryMap); 92 return SVGLayoutSupport::pushMappingToContainer(this, ancestorToStopAt, geom etryMap);
93 } 93 }
94 94
95 LayoutRect LayoutSVGBlock::clippedOverflowRectForPaintInvalidation(const LayoutB oxModelObject* paintInvalidationContainer, const PaintInvalidationState* paintIn validationState) const 95 LayoutRect LayoutSVGBlock::clippedOverflowRectForPaintInvalidation(const LayoutB oxModelObject* paintInvalidationContainer, const PaintInvalidationState* paintIn validationState) const
96 { 96 {
97 return SVGLayoutSupport::clippedOverflowRectForPaintInvalidation(*this, pain tInvalidationContainer, paintInvalidationState); 97 return SVGLayoutSupport::clippedOverflowRectForPaintInvalidation(*this, pain tInvalidationContainer, paintInvalidationState);
98 } 98 }
99 99
100 void LayoutSVGBlock::mapRectToPaintInvalidationBacking(const LayoutBoxModelObjec t* paintInvalidationContainer, LayoutRect& rect, const PaintInvalidationState* p aintInvalidationState) const 100 void LayoutSVGBlock::mapRectToPaintInvalidationBacking(const LayoutBoxModelObjec t* paintInvalidationContainer, LayoutRect& rect, const PaintInvalidationState* p aintInvalidationState) const
101 { 101 {
102 FloatRect paintInvalidationRect = rect; 102 FloatRect paintInvalidationRect(rect);
103 const LayoutSVGRoot& svgRoot = SVGLayoutSupport::mapRectToSVGRootForPaintInv alidation(*this, paintInvalidationRect, rect); 103 const LayoutSVGRoot& svgRoot = SVGLayoutSupport::mapRectToSVGRootForPaintInv alidation(*this, paintInvalidationRect, rect);
104 svgRoot.mapRectToPaintInvalidationBacking(paintInvalidationContainer, rect, paintInvalidationState); 104 svgRoot.mapRectToPaintInvalidationBacking(paintInvalidationContainer, rect, paintInvalidationState);
105 } 105 }
106 106
107 bool LayoutSVGBlock::nodeAtPoint(HitTestResult&, const HitTestLocation&, const L ayoutPoint&, HitTestAction) 107 bool LayoutSVGBlock::nodeAtPoint(HitTestResult&, const HitTestLocation&, const L ayoutPoint&, HitTestAction)
108 { 108 {
109 ASSERT_NOT_REACHED(); 109 ASSERT_NOT_REACHED();
110 return false; 110 return false;
111 } 111 }
112 112
113 void LayoutSVGBlock::invalidateTreeIfNeeded(PaintInvalidationState& paintInvalid ationState) 113 void LayoutSVGBlock::invalidateTreeIfNeeded(PaintInvalidationState& paintInvalid ationState)
114 { 114 {
115 if (!shouldCheckForPaintInvalidation(paintInvalidationState)) 115 if (!shouldCheckForPaintInvalidation(paintInvalidationState))
116 return; 116 return;
117 117
118 ForceHorriblySlowRectMapping slowRectMapping(&paintInvalidationState); 118 ForceHorriblySlowRectMapping slowRectMapping(&paintInvalidationState);
119 LayoutBlockFlow::invalidateTreeIfNeeded(paintInvalidationState); 119 LayoutBlockFlow::invalidateTreeIfNeeded(paintInvalidationState);
120 } 120 }
121 121
122 } 122 }
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutInline.cpp ('k') | Source/core/paint/DeprecatedPaintLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698