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

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: Rebase Created 5 years, 8 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/svg/SVGPatternElement.cpp ('k') | no next file » | 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) 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 198
199 void SVGSVGElement::setCurrentTranslate(const FloatPoint& point) 199 void SVGSVGElement::setCurrentTranslate(const FloatPoint& point)
200 { 200 {
201 m_translation->setValue(point); 201 m_translation->setValue(point);
202 updateCurrentTranslate(); 202 updateCurrentTranslate();
203 } 203 }
204 204
205 void SVGSVGElement::updateCurrentTranslate() 205 void SVGSVGElement::updateCurrentTranslate()
206 { 206 {
207 if (LayoutObject* object = layoutObject()) 207 if (LayoutObject* object = layoutObject())
208 object->setNeedsLayoutAndFullPaintInvalidation(); 208 object->setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationReason: :Unknown);
209 } 209 }
210 210
211 bool SVGSVGElement::zoomAndPanEnabled() const 211 bool SVGSVGElement::zoomAndPanEnabled() const
212 { 212 {
213 const SVGZoomAndPan* currentViewSpec = this; 213 const SVGZoomAndPan* currentViewSpec = this;
214 if (m_useCurrentView) 214 if (m_useCurrentView)
215 currentViewSpec = m_viewSpec.get(); 215 currentViewSpec = m_viewSpec.get();
216 return currentViewSpec && currentViewSpec->zoomAndPan() == SVGZoomAndPanMagn ify; 216 return currentViewSpec && currentViewSpec->zoomAndPan() == SVGZoomAndPanMagn ify;
217 } 217 }
218 218
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
782 visitor->trace(m_width); 782 visitor->trace(m_width);
783 visitor->trace(m_height); 783 visitor->trace(m_height);
784 visitor->trace(m_translation); 784 visitor->trace(m_translation);
785 visitor->trace(m_timeContainer); 785 visitor->trace(m_timeContainer);
786 visitor->trace(m_viewSpec); 786 visitor->trace(m_viewSpec);
787 SVGGraphicsElement::trace(visitor); 787 SVGGraphicsElement::trace(visitor);
788 SVGFitToViewBox::trace(visitor); 788 SVGFitToViewBox::trace(visitor);
789 } 789 }
790 790
791 } // namespace blink 791 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPatternElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698