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

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

Issue 268223003: Move InvalidationGuard/InstanceUpdateBlocker out of SVGElementInstance (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Perform the renames Created 6 years, 7 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
« no previous file with comments | « Source/core/svg/SVGRectElement.cpp ('k') | Source/core/svg/SVGScriptElement.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) 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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 } 309 }
310 } 310 }
311 } 311 }
312 312
313 if (SVGFitToViewBox::isKnownAttribute(attrName)) { 313 if (SVGFitToViewBox::isKnownAttribute(attrName)) {
314 updateRelativeLengthsOrViewBox = true; 314 updateRelativeLengthsOrViewBox = true;
315 if (RenderObject* object = renderer()) 315 if (RenderObject* object = renderer())
316 object->setNeedsTransformUpdate(); 316 object->setNeedsTransformUpdate();
317 } 317 }
318 318
319 SVGElementInstance::InvalidationGuard invalidationGuard(this); 319 SVGElement::InvalidationGuard invalidationGuard(this);
320 320
321 if (updateRelativeLengthsOrViewBox 321 if (updateRelativeLengthsOrViewBox
322 || SVGZoomAndPan::isKnownAttribute(attrName)) { 322 || SVGZoomAndPan::isKnownAttribute(attrName)) {
323 if (renderer()) 323 if (renderer())
324 RenderSVGResource::markForLayoutAndParentResourceInvalidation(render er()); 324 RenderSVGResource::markForLayoutAndParentResourceInvalidation(render er());
325 return; 325 return;
326 } 326 }
327 327
328 SVGGraphicsElement::svgAttributeChanged(attrName); 328 SVGGraphicsElement::svgAttributeChanged(attrName);
329 } 329 }
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 view->preserveAspectRatio()->baseValue()->setMeetOrSlice(preserveAspectR atio()->currentValue()->meetOrSlice()); 764 view->preserveAspectRatio()->baseValue()->setMeetOrSlice(preserveAspectR atio()->currentValue()->meetOrSlice());
765 } 765 }
766 766
767 if (viewElement->hasAttribute(SVGNames::zoomAndPanAttr)) 767 if (viewElement->hasAttribute(SVGNames::zoomAndPanAttr))
768 view->setZoomAndPan(viewElement->zoomAndPan()); 768 view->setZoomAndPan(viewElement->zoomAndPan());
769 else 769 else
770 view->setZoomAndPan(zoomAndPan()); 770 view->setZoomAndPan(zoomAndPan());
771 } 771 }
772 772
773 } 773 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGRectElement.cpp ('k') | Source/core/svg/SVGScriptElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698