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

Side by Side Diff: Source/core/svg/SVGSVGElement.cpp

Issue 1025213002: Begin tracking why layout is invalidated (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Rob Buis <buis@kde.org>
4 * Copyright (C) 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2007 Apple Inc. All rights reserved.
5 * Copyright (C) 2014 Google, Inc. 5 * Copyright (C) 2014 Google, Inc.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 199
200 void SVGSVGElement::setCurrentTranslate(const FloatPoint& point) 200 void SVGSVGElement::setCurrentTranslate(const FloatPoint& point)
201 { 201 {
202 m_translation->setValue(point); 202 m_translation->setValue(point);
203 updateCurrentTranslate(); 203 updateCurrentTranslate();
204 } 204 }
205 205
206 void SVGSVGElement::updateCurrentTranslate() 206 void SVGSVGElement::updateCurrentTranslate()
207 { 207 {
208 if (LayoutObject* object = layoutObject()) 208 if (LayoutObject* object = layoutObject())
209 object->setNeedsLayoutAndFullPaintInvalidation(); 209 object->setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationReason: :Unknown);
210 } 210 }
211 211
212 bool SVGSVGElement::zoomAndPanEnabled() const 212 bool SVGSVGElement::zoomAndPanEnabled() const
213 { 213 {
214 const SVGZoomAndPan* currentViewSpec = this; 214 const SVGZoomAndPan* currentViewSpec = this;
215 if (m_useCurrentView) 215 if (m_useCurrentView)
216 currentViewSpec = m_viewSpec.get(); 216 currentViewSpec = m_viewSpec.get();
217 return currentViewSpec && currentViewSpec->zoomAndPan() == SVGZoomAndPanMagn ify; 217 return currentViewSpec && currentViewSpec->zoomAndPan() == SVGZoomAndPanMagn ify;
218 } 218 }
219 219
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 visitor->trace(m_width); 783 visitor->trace(m_width);
784 visitor->trace(m_height); 784 visitor->trace(m_height);
785 visitor->trace(m_translation); 785 visitor->trace(m_translation);
786 visitor->trace(m_timeContainer); 786 visitor->trace(m_timeContainer);
787 visitor->trace(m_viewSpec); 787 visitor->trace(m_viewSpec);
788 SVGGraphicsElement::trace(visitor); 788 SVGGraphicsElement::trace(visitor);
789 SVGFitToViewBox::trace(visitor); 789 SVGFitToViewBox::trace(visitor);
790 } 790 }
791 791
792 } // namespace blink 792 } // namespace blink
OLDNEW
« Source/core/svg/SVGClipPathElement.cpp ('K') | « Source/core/svg/SVGPatternElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698