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

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

Issue 889563002: Make RenderObject::style() return a const object (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix a crashers (everything is building!) 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/RenderSVGForeignObject.cpp
diff --git a/Source/core/rendering/svg/RenderSVGForeignObject.cpp b/Source/core/rendering/svg/RenderSVGForeignObject.cpp
index c77c2752ca558c14849d9497c054ad6a8b96dcb6..08b9f5367e078b7c1551ed06081142490552e925 100644
--- a/Source/core/rendering/svg/RenderSVGForeignObject.cpp
+++ b/Source/core/rendering/svg/RenderSVGForeignObject.cpp
@@ -42,7 +42,7 @@ RenderSVGForeignObject::~RenderSVGForeignObject()
{
}
-bool RenderSVGForeignObject::isChildAllowed(RenderObject* child, RenderStyle* style) const
+bool RenderSVGForeignObject::isChildAllowed(RenderObject* child, const RenderStyle* style) const
{
// Disallow arbitary SVG content. Only allow proper <svg xmlns="svgNS"> subdocuments.
return !child->isSVG() || child->isSVGRoot();

Powered by Google App Engine
This is Rietveld 408576698