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

Unified Diff: trunk/Source/core/svg/SVGGraphicsElement.cpp

Issue 948053002: Revert 190605 "Make RenderObject::style() return a const object" (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « trunk/Source/core/svg/SVGFEFloodElement.cpp ('k') | trunk/Source/core/svg/SVGLengthContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/Source/core/svg/SVGGraphicsElement.cpp
===================================================================
--- trunk/Source/core/svg/SVGGraphicsElement.cpp (revision 190671)
+++ trunk/Source/core/svg/SVGGraphicsElement.cpp (working copy)
@@ -132,7 +132,7 @@
bool SVGGraphicsElement::hasAnimatedLocalTransform() const
{
- const LayoutStyle* style = renderer() ? renderer()->style() : nullptr;
+ LayoutStyle* style = renderer() ? renderer()->style() : 0;
// Each of these is used in SVGGraphicsElement::calculateAnimatedLocalTransform to create an animated local transform.
return (style && style->hasTransform()) || !m_transform->currentValue()->isEmpty() || hasSVGRareData();
@@ -141,7 +141,7 @@
AffineTransform SVGGraphicsElement::calculateAnimatedLocalTransform() const
{
AffineTransform matrix;
- const LayoutStyle* style = renderer() ? renderer()->style() : nullptr;
+ LayoutStyle* style = renderer() ? renderer()->style() : 0;
// If CSS property was set, use that, otherwise fallback to attribute (if set).
if (style && style->hasTransform()) {
« no previous file with comments | « trunk/Source/core/svg/SVGFEFloodElement.cpp ('k') | trunk/Source/core/svg/SVGLengthContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698