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

Unified Diff: Source/core/rendering/svg/RenderSVGResourceMasker.cpp

Issue 889563002: Make RenderObject::style() return a const object (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Blind fix for Mac. Created 5 years, 11 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/rendering/svg/RenderSVGResourceMasker.cpp
diff --git a/Source/core/rendering/svg/RenderSVGResourceMasker.cpp b/Source/core/rendering/svg/RenderSVGResourceMasker.cpp
index d39ac44b3cc02c866726aab02e08260c7718519b..527b01a558e7414fbdd1df5d280f0287da8d583a 100644
--- a/Source/core/rendering/svg/RenderSVGResourceMasker.cpp
+++ b/Source/core/rendering/svg/RenderSVGResourceMasker.cpp
@@ -134,7 +134,7 @@ void RenderSVGResourceMasker::createPicture(GraphicsContext* context)
RenderObject* renderer = childElement->renderer();
if (!renderer)
continue;
- RenderStyle* style = renderer->style();
+ const RenderStyle* style = renderer->style();
if (!style || style->display() == NONE || style->visibility() != VISIBLE)
continue;
@@ -149,7 +149,7 @@ void RenderSVGResourceMasker::calculateMaskContentPaintInvalidationRect()
RenderObject* renderer = childElement->renderer();
if (!renderer)
continue;
- RenderStyle* style = renderer->style();
+ const RenderStyle* style = renderer->style();
if (!style || style->display() == NONE || style->visibility() != VISIBLE)
continue;
m_maskContentBoundaries.unite(renderer->localToParentTransform().mapRect(renderer->paintInvalidationRectInLocalCoordinates()));

Powered by Google App Engine
This is Rietveld 408576698