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

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 change after Doug's review. 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 | « Source/core/rendering/RenderMenuList.cpp ('k') | Source/core/svg/SVGElementRareData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGElement.cpp
diff --git a/Source/core/svg/SVGElement.cpp b/Source/core/svg/SVGElement.cpp
index dfd66ff39efdcaa3bb54e3eb562e64d474f1f3c9..3ef30afde7b2cbda4aad57610e422cd15524cdf2 100644
--- a/Source/core/svg/SVGElement.cpp
+++ b/Source/core/svg/SVGElement.cpp
@@ -916,7 +916,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();
@@ -948,7 +948,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();
« no previous file with comments | « Source/core/rendering/RenderMenuList.cpp ('k') | Source/core/svg/SVGElementRareData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698