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

Side by Side Diff: Source/core/rendering/svg/RenderSVGForeignObject.cpp

Issue 332543002: Rename Repaint to Paint Invalidation Part 4 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Apple Computer, Inc. 2 * Copyright (C) 2006 Apple Computer, Inc.
3 * Copyright (C) 2009 Google, Inc. 3 * Copyright (C) 2009 Google, Inc.
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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 if (updateCachedBoundariesInParents) 152 if (updateCachedBoundariesInParents)
153 RenderSVGBlock::setNeedsBoundariesUpdate(); 153 RenderSVGBlock::setNeedsBoundariesUpdate();
154 154
155 // Invalidate all resources of this client if our layout changed. 155 // Invalidate all resources of this client if our layout changed.
156 if (layoutChanged) 156 if (layoutChanged)
157 SVGResourcesCache::clientLayoutChanged(this); 157 SVGResourcesCache::clientLayoutChanged(this);
158 158
159 repainter.repaintAfterLayout(); 159 repainter.repaintAfterLayout();
160 } 160 }
161 161
162 void RenderSVGForeignObject::mapRectToRepaintBacking(const RenderLayerModelObjec t* repaintContainer, 162 void RenderSVGForeignObject::mapRectToPaintInvalidationBacking(const RenderLayer ModelObject* paintInvalidationContainer,
163 LayoutRect& rect, bool fixed) const 163 LayoutRect& rect, bool fixed) const
164 { 164 {
165 FloatRect r(rect); 165 FloatRect r(rect);
166 SVGRenderSupport::computeFloatRectForRepaint(this, repaintContainer, r, fixe d); 166 SVGRenderSupport::computeFloatRectForRepaint(this, paintInvalidationContaine r, r, fixed);
167 rect = enclosingLayoutRect(r); 167 rect = enclosingLayoutRect(r);
168 } 168 }
169 169
170 bool RenderSVGForeignObject::nodeAtFloatPoint(const HitTestRequest& request, Hit TestResult& result, const FloatPoint& pointInParent, HitTestAction hitTestAction ) 170 bool RenderSVGForeignObject::nodeAtFloatPoint(const HitTestRequest& request, Hit TestResult& result, const FloatPoint& pointInParent, HitTestAction hitTestAction )
171 { 171 {
172 // Embedded content is drawn in the foreground phase. 172 // Embedded content is drawn in the foreground phase.
173 if (hitTestAction != HitTestForeground) 173 if (hitTestAction != HitTestForeground)
174 return false; 174 return false;
175 175
176 FloatPoint localPoint = localTransform().inverse().mapPoint(pointInParent); 176 FloatPoint localPoint = localTransform().inverse().mapPoint(pointInParent);
177 177
178 // Early exit if local point is not contained in clipped viewport area 178 // Early exit if local point is not contained in clipped viewport area
179 if (SVGRenderSupport::isOverflowHidden(this) && !m_viewport.contains(localPo int)) 179 if (SVGRenderSupport::isOverflowHidden(this) && !m_viewport.contains(localPo int))
180 return false; 180 return false;
181 181
182 // FOs establish a stacking context, so we need to hit-test all layers. 182 // FOs establish a stacking context, so we need to hit-test all layers.
183 HitTestLocation hitTestLocation(roundedLayoutPoint(localPoint)); 183 HitTestLocation hitTestLocation(roundedLayoutPoint(localPoint));
184 return RenderBlock::nodeAtPoint(request, result, hitTestLocation, LayoutPoin t(), HitTestForeground) 184 return RenderBlock::nodeAtPoint(request, result, hitTestLocation, LayoutPoin t(), HitTestForeground)
185 || RenderBlock::nodeAtPoint(request, result, hitTestLocation, LayoutPoin t(), HitTestFloat) 185 || RenderBlock::nodeAtPoint(request, result, hitTestLocation, LayoutPoin t(), HitTestFloat)
186 || RenderBlock::nodeAtPoint(request, result, hitTestLocation, LayoutPoin t(), HitTestChildBlockBackgrounds); 186 || RenderBlock::nodeAtPoint(request, result, hitTestLocation, LayoutPoin t(), HitTestChildBlockBackgrounds);
187 } 187 }
188 188
189 } 189 }
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGForeignObject.h ('k') | Source/core/rendering/svg/RenderSVGGradientStop.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698