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

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

Issue 23521004: Remove StackStats. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix Windows compile. Created 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> 2 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org>
3 * Copyright (C) 2006 Apple Computer, Inc. 3 * Copyright (C) 2006 Apple Computer, Inc.
4 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> 4 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
5 * Copyright (C) 2007, 2008, 2009 Rob Buis <buis@kde.org> 5 * Copyright (C) 2007, 2008, 2009 Rob Buis <buis@kde.org>
6 * Copyright (C) 2009 Google, Inc. 6 * Copyright (C) 2009 Google, Inc.
7 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 7 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
8 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com> 8 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com>
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 m_imageResource->setContainerSizeForRenderer(enclosingIntRect(m_obje ctBoundingBox).size()); 82 m_imageResource->setContainerSizeForRenderer(enclosingIntRect(m_obje ctBoundingBox).size());
83 updatedViewport = true; 83 updatedViewport = true;
84 m_needsBoundariesUpdate = true; 84 m_needsBoundariesUpdate = true;
85 } 85 }
86 86
87 return updatedViewport; 87 return updatedViewport;
88 } 88 }
89 89
90 void RenderSVGImage::layout() 90 void RenderSVGImage::layout()
91 { 91 {
92 StackStats::LayoutCheckPoint layoutCheckPoint;
93 ASSERT(needsLayout()); 92 ASSERT(needsLayout());
94 93
95 LayoutRepainter repainter(*this, SVGRenderSupport::checkForSVGRepaintDuringL ayout(this) && selfNeedsLayout()); 94 LayoutRepainter repainter(*this, SVGRenderSupport::checkForSVGRepaintDuringL ayout(this) && selfNeedsLayout());
96 updateImageViewport(); 95 updateImageViewport();
97 96
98 bool transformOrBoundariesUpdate = m_needsTransformUpdate || m_needsBoundari esUpdate; 97 bool transformOrBoundariesUpdate = m_needsTransformUpdate || m_needsBoundari esUpdate;
99 if (m_needsTransformUpdate) { 98 if (m_needsTransformUpdate) {
100 m_localTransform = toSVGImageElement(node())->animatedLocalTransform(); 99 m_localTransform = toSVGImageElement(node())->animatedLocalTransform();
101 m_needsTransformUpdate = false; 100 m_needsTransformUpdate = false;
102 } 101 }
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 220
222 void RenderSVGImage::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint &, const RenderLayerModelObject*) 221 void RenderSVGImage::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint &, const RenderLayerModelObject*)
223 { 222 {
224 // this is called from paint() after the localTransform has already been app lied 223 // this is called from paint() after the localTransform has already been app lied
225 IntRect contentRect = enclosingIntRect(repaintRectInLocalCoordinates()); 224 IntRect contentRect = enclosingIntRect(repaintRectInLocalCoordinates());
226 if (!contentRect.isEmpty()) 225 if (!contentRect.isEmpty())
227 rects.append(contentRect); 226 rects.append(contentRect);
228 } 227 }
229 228
230 } // namespace WebCore 229 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGHiddenContainer.cpp ('k') | Source/core/rendering/svg/RenderSVGResourceContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698