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

Unified Diff: Source/core/svg/SVGElement.cpp

Issue 889563002: Make RenderObject::style() return a const object (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated patch after splitting 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
Index: Source/core/svg/SVGElement.cpp
diff --git a/Source/core/svg/SVGElement.cpp b/Source/core/svg/SVGElement.cpp
index 2a831f05a709f94ed976b9a69fcf2121047f27b5..9ce9e60db5e010f709f3ddc73ec12a67d78dbe67 100644
--- a/Source/core/svg/SVGElement.cpp
+++ b/Source/core/svg/SVGElement.cpp
@@ -909,7 +909,7 @@ PassRefPtr<LayoutStyle> SVGElement::customStyleForRenderer()
if (!correspondingElement())
return document().ensureStyleResolver().styleForElement(this);
- LayoutStyle* style = 0;
+ const LayoutStyle* style = 0;
if (Element* parent = parentOrShadowHostElement()) {
if (LayoutObject* renderer = parent->renderer())
style = renderer->style();
@@ -941,7 +941,7 @@ LayoutStyle* SVGElement::computedStyle(PseudoId pseudoElementSpecifier)
if (!hasSVGRareData() || !svgRareData()->useOverrideComputedStyle())
return Element::computedStyle(pseudoElementSpecifier);
- LayoutStyle* parentStyle = 0;
+ const LayoutStyle* parentStyle = 0;
if (Element* parent = parentOrShadowHostElement()) {
if (LayoutObject* renderer = parent->renderer())
parentStyle = renderer->style();

Powered by Google App Engine
This is Rietveld 408576698